use of org.hl7.fhir.r4.model.Endpoint in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMessageHeaderMessageSourceComponent.
protected void composeMessageHeaderMessageSourceComponent(Complex parent, String parentType, String name, MessageHeader.MessageSourceComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "source", name, element, index);
if (element.hasNameElement())
composeString(t, "MessageHeader", "name", element.getNameElement(), -1);
if (element.hasSoftwareElement())
composeString(t, "MessageHeader", "software", element.getSoftwareElement(), -1);
if (element.hasVersionElement())
composeString(t, "MessageHeader", "version", element.getVersionElement(), -1);
if (element.hasContact())
composeContactPoint(t, "MessageHeader", "contact", element.getContact(), -1);
if (element.hasEndpointElement())
composeUri(t, "MessageHeader", "endpoint", element.getEndpointElement(), -1);
}
use of org.hl7.fhir.r4.model.Endpoint in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeLocation.
protected void composeLocation(Complex parent, String parentType, String name, Location element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Location", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Location", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "Location", "status", element.getStatusElement(), -1);
if (element.hasOperationalStatus())
composeCoding(t, "Location", "operationalStatus", element.getOperationalStatus(), -1);
if (element.hasNameElement())
composeString(t, "Location", "name", element.getNameElement(), -1);
for (int i = 0; i < element.getAlias().size(); i++) composeString(t, "Location", "alias", element.getAlias().get(i), i);
if (element.hasDescriptionElement())
composeString(t, "Location", "description", element.getDescriptionElement(), -1);
if (element.hasModeElement())
composeEnum(t, "Location", "mode", element.getModeElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "Location", "type", element.getType(), -1);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "Location", "telecom", element.getTelecom().get(i), i);
if (element.hasAddress())
composeAddress(t, "Location", "address", element.getAddress(), -1);
if (element.hasPhysicalType())
composeCodeableConcept(t, "Location", "physicalType", element.getPhysicalType(), -1);
if (element.hasPosition())
composeLocationLocationPositionComponent(t, "Location", "position", element.getPosition(), -1);
if (element.hasManagingOrganization())
composeReference(t, "Location", "managingOrganization", element.getManagingOrganization(), -1);
if (element.hasPartOf())
composeReference(t, "Location", "partOf", element.getPartOf(), -1);
for (int i = 0; i < element.getEndpoint().size(); i++) composeReference(t, "Location", "endpoint", element.getEndpoint().get(i), i);
}
use of org.hl7.fhir.r4.model.Endpoint in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeImagingManifestSeriesComponent.
protected void composeImagingManifestSeriesComponent(Complex parent, String parentType, String name, ImagingManifest.SeriesComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "series", name, element, index);
if (element.hasUidElement())
composeOid(t, "ImagingManifest", "uid", element.getUidElement(), -1);
for (int i = 0; i < element.getEndpoint().size(); i++) composeReference(t, "ImagingManifest", "endpoint", element.getEndpoint().get(i), i);
for (int i = 0; i < element.getInstance().size(); i++) composeImagingManifestInstanceComponent(t, "ImagingManifest", "instance", element.getInstance().get(i), i);
}
use of org.hl7.fhir.r4.model.Endpoint in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeImagingStudy.
protected void composeImagingStudy(Complex parent, String parentType, String name, ImagingStudy element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "ImagingStudy", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "ImagingStudy", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "ImagingStudy", "status", element.getStatusElement(), -1);
for (int i = 0; i < element.getModality().size(); i++) composeCoding(t, "ImagingStudy", "modality", element.getModality().get(i), i);
if (element.hasSubject())
composeReference(t, "ImagingStudy", "subject", element.getSubject(), -1);
if (element.hasEncounter())
composeReference(t, "ImagingStudy", "encounter", element.getEncounter(), -1);
if (element.hasStartedElement())
composeDateTime(t, "ImagingStudy", "started", element.getStartedElement(), -1);
for (int i = 0; i < element.getBasedOn().size(); i++) composeReference(t, "ImagingStudy", "basedOn", element.getBasedOn().get(i), i);
if (element.hasReferrer())
composeReference(t, "ImagingStudy", "referrer", element.getReferrer(), -1);
for (int i = 0; i < element.getInterpreter().size(); i++) composeReference(t, "ImagingStudy", "interpreter", element.getInterpreter().get(i), i);
for (int i = 0; i < element.getEndpoint().size(); i++) composeReference(t, "ImagingStudy", "endpoint", element.getEndpoint().get(i), i);
if (element.hasNumberOfSeriesElement())
composeUnsignedInt(t, "ImagingStudy", "numberOfSeries", element.getNumberOfSeriesElement(), -1);
if (element.hasNumberOfInstancesElement())
composeUnsignedInt(t, "ImagingStudy", "numberOfInstances", element.getNumberOfInstancesElement(), -1);
if (element.hasProcedureReference())
composeReference(t, "ImagingStudy", "procedureReference", element.getProcedureReference(), -1);
for (int i = 0; i < element.getProcedureCode().size(); i++) composeCodeableConcept(t, "ImagingStudy", "procedureCode", element.getProcedureCode().get(i), i);
if (element.hasLocation())
composeReference(t, "ImagingStudy", "location", element.getLocation(), -1);
for (int i = 0; i < element.getReasonCode().size(); i++) composeCodeableConcept(t, "ImagingStudy", "reasonCode", element.getReasonCode().get(i), i);
for (int i = 0; i < element.getReasonReference().size(); i++) composeReference(t, "ImagingStudy", "reasonReference", element.getReasonReference().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "ImagingStudy", "note", element.getNote().get(i), i);
if (element.hasDescriptionElement())
composeString(t, "ImagingStudy", "description", element.getDescriptionElement(), -1);
for (int i = 0; i < element.getSeries().size(); i++) composeImagingStudyImagingStudySeriesComponent(t, "ImagingStudy", "series", element.getSeries().get(i), i);
}
use of org.hl7.fhir.r4.model.Endpoint in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeCapabilityStatementCapabilityStatementMessagingEndpointComponent.
protected void composeCapabilityStatementCapabilityStatementMessagingEndpointComponent(Complex parent, String parentType, String name, CapabilityStatement.CapabilityStatementMessagingEndpointComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "endpoint", name, element, index);
if (element.hasProtocol())
composeCoding(t, "CapabilityStatement", "protocol", element.getProtocol(), -1);
if (element.hasAddressElement())
composeUrl(t, "CapabilityStatement", "address", element.getAddressElement(), -1);
}
Aggregations