use of org.hl7.fhir.r4.model.Media in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeAuditEventAuditEventAgentComponent.
protected void composeAuditEventAuditEventAgentComponent(Complex parent, String parentType, String name, AuditEvent.AuditEventAgentComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "agent", name, element, index);
for (int i = 0; i < element.getRole().size(); i++) composeCodeableConcept(t, "AuditEvent", "role", element.getRole().get(i), i);
if (element.hasReference())
composeReference(t, "AuditEvent", "reference", element.getReference(), -1);
if (element.hasUserId())
composeIdentifier(t, "AuditEvent", "userId", element.getUserId(), -1);
if (element.hasAltIdElement())
composeString(t, "AuditEvent", "altId", element.getAltIdElement(), -1);
if (element.hasNameElement())
composeString(t, "AuditEvent", "name", element.getNameElement(), -1);
if (element.hasRequestorElement())
composeBoolean(t, "AuditEvent", "requestor", element.getRequestorElement(), -1);
if (element.hasLocation())
composeReference(t, "AuditEvent", "location", element.getLocation(), -1);
for (int i = 0; i < element.getPolicy().size(); i++) composeUri(t, "AuditEvent", "policy", element.getPolicy().get(i), i);
if (element.hasMedia())
composeCoding(t, "AuditEvent", "media", element.getMedia(), -1);
if (element.hasNetwork())
composeAuditEventAuditEventAgentNetworkComponent(t, "AuditEvent", "network", element.getNetwork(), -1);
for (int i = 0; i < element.getPurposeOfUse().size(); i++) composeCoding(t, "AuditEvent", "purposeOfUse", element.getPurposeOfUse().get(i), i);
}
use of org.hl7.fhir.r4.model.Media in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDiagnosticReportDiagnosticReportMediaComponent.
protected void composeDiagnosticReportDiagnosticReportMediaComponent(Complex parent, String parentType, String name, DiagnosticReport.DiagnosticReportMediaComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "media", name, element, index);
if (element.hasCommentElement())
composeString(t, "DiagnosticReport", "comment", element.getCommentElement(), -1);
if (element.hasLink())
composeReference(t, "DiagnosticReport", "link", element.getLink(), -1);
}
use of org.hl7.fhir.r4.model.Media in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMedia.
protected void composeMedia(Complex parent, String parentType, String name, Media element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Media", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Media", "identifier", element.getIdentifier().get(i), i);
for (int i = 0; i < element.getBasedOn().size(); i++) composeReference(t, "Media", "basedOn", element.getBasedOn().get(i), i);
for (int i = 0; i < element.getPartOf().size(); i++) composeReference(t, "Media", "partOf", element.getPartOf().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "Media", "status", element.getStatusElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "Media", "type", element.getType(), -1);
if (element.hasModality())
composeCodeableConcept(t, "Media", "modality", element.getModality(), -1);
if (element.hasView())
composeCodeableConcept(t, "Media", "view", element.getView(), -1);
if (element.hasSubject())
composeReference(t, "Media", "subject", element.getSubject(), -1);
if (element.hasEncounter())
composeReference(t, "Media", "encounter", element.getEncounter(), -1);
if (element.hasCreated())
composeType(t, "Media", "created", element.getCreated(), -1);
if (element.hasIssuedElement())
composeInstant(t, "Media", "issued", element.getIssuedElement(), -1);
if (element.hasOperator())
composeReference(t, "Media", "operator", element.getOperator(), -1);
for (int i = 0; i < element.getReasonCode().size(); i++) composeCodeableConcept(t, "Media", "reasonCode", element.getReasonCode().get(i), i);
if (element.hasBodySite())
composeCodeableConcept(t, "Media", "bodySite", element.getBodySite(), -1);
if (element.hasDeviceNameElement())
composeString(t, "Media", "deviceName", element.getDeviceNameElement(), -1);
if (element.hasDevice())
composeReference(t, "Media", "device", element.getDevice(), -1);
if (element.hasHeightElement())
composePositiveInt(t, "Media", "height", element.getHeightElement(), -1);
if (element.hasWidthElement())
composePositiveInt(t, "Media", "width", element.getWidthElement(), -1);
if (element.hasFramesElement())
composePositiveInt(t, "Media", "frames", element.getFramesElement(), -1);
if (element.hasDurationElement())
composeDecimal(t, "Media", "duration", element.getDurationElement(), -1);
if (element.hasContent())
composeAttachment(t, "Media", "content", element.getContent(), -1);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "Media", "note", element.getNote().get(i), i);
}
use of org.hl7.fhir.r4.model.Media in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_media_example_dicom.
@Test
public void test_media_example_dicom() throws FileNotFoundException, IOException, Exception {
System.out.println("media-example-dicom.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\media-example-dicom.ttl"));
}
use of org.hl7.fhir.r4.model.Media in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_media_example.
@Test
public void test_media_example() throws FileNotFoundException, IOException, Exception {
System.out.println("media-example.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\media-example.ttl"));
}
Aggregations