use of org.hl7.fhir.r4.model.AuditEvent in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeAuditEvent.
protected void composeAuditEvent(Complex parent, String parentType, String name, AuditEvent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "AuditEvent", name, element, index);
if (element.hasType())
composeCoding(t, "AuditEvent", "type", element.getType(), -1);
for (int i = 0; i < element.getSubtype().size(); i++) composeCoding(t, "AuditEvent", "subtype", element.getSubtype().get(i), i);
if (element.hasActionElement())
composeEnum(t, "AuditEvent", "action", element.getActionElement(), -1);
if (element.hasRecordedElement())
composeInstant(t, "AuditEvent", "recorded", element.getRecordedElement(), -1);
if (element.hasOutcomeElement())
composeEnum(t, "AuditEvent", "outcome", element.getOutcomeElement(), -1);
if (element.hasOutcomeDescElement())
composeString(t, "AuditEvent", "outcomeDesc", element.getOutcomeDescElement(), -1);
for (int i = 0; i < element.getPurposeOfEvent().size(); i++) composeCoding(t, "AuditEvent", "purposeOfEvent", element.getPurposeOfEvent().get(i), i);
for (int i = 0; i < element.getAgent().size(); i++) composeAuditEventAuditEventAgentComponent(t, "AuditEvent", "agent", element.getAgent().get(i), i);
if (element.hasSource())
composeAuditEventAuditEventSourceComponent(t, "AuditEvent", "source", element.getSource(), -1);
for (int i = 0; i < element.getEntity().size(); i++) composeAuditEventAuditEventEntityComponent(t, "AuditEvent", "entity", element.getEntity().get(i), i);
}
use of org.hl7.fhir.r4.model.AuditEvent in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeAuditEventAuditEventEntityDetailComponent.
protected void composeAuditEventAuditEventEntityDetailComponent(Complex parent, String parentType, String name, AuditEvent.AuditEventEntityDetailComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "detail", name, element, index);
if (element.hasTypeElement())
composeString(t, "AuditEvent", "type", element.getTypeElement(), -1);
if (element.hasValueElement())
composeBase64Binary(t, "AuditEvent", "value", element.getValueElement(), -1);
}
Aggregations