use of org.hl7.fhir.dstu3.model.Device in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeObservation.
protected void composeObservation(Complex parent, String parentType, String name, Observation element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Observation", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Observation", "identifier", element.getIdentifier().get(i), i);
for (int i = 0; i < element.getBasedOn().size(); i++) composeReference(t, "Observation", "basedOn", element.getBasedOn().get(i), i);
for (int i = 0; i < element.getPartOf().size(); i++) composeReference(t, "Observation", "partOf", element.getPartOf().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "Observation", "status", element.getStatusElement(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "Observation", "category", element.getCategory().get(i), i);
if (element.hasCode())
composeCodeableConcept(t, "Observation", "code", element.getCode(), -1);
if (element.hasSubject())
composeReference(t, "Observation", "subject", element.getSubject(), -1);
for (int i = 0; i < element.getFocus().size(); i++) composeReference(t, "Observation", "focus", element.getFocus().get(i), i);
if (element.hasEncounter())
composeReference(t, "Observation", "encounter", element.getEncounter(), -1);
if (element.hasEffective())
composeType(t, "Observation", "effective", element.getEffective(), -1);
if (element.hasIssuedElement())
composeInstant(t, "Observation", "issued", element.getIssuedElement(), -1);
for (int i = 0; i < element.getPerformer().size(); i++) composeReference(t, "Observation", "performer", element.getPerformer().get(i), i);
if (element.hasValue())
composeType(t, "Observation", "value", element.getValue(), -1);
if (element.hasDataAbsentReason())
composeCodeableConcept(t, "Observation", "dataAbsentReason", element.getDataAbsentReason(), -1);
for (int i = 0; i < element.getInterpretation().size(); i++) composeCodeableConcept(t, "Observation", "interpretation", element.getInterpretation().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "Observation", "note", element.getNote().get(i), i);
if (element.hasBodySite())
composeCodeableConcept(t, "Observation", "bodySite", element.getBodySite(), -1);
if (element.hasMethod())
composeCodeableConcept(t, "Observation", "method", element.getMethod(), -1);
if (element.hasSpecimen())
composeReference(t, "Observation", "specimen", element.getSpecimen(), -1);
if (element.hasDevice())
composeReference(t, "Observation", "device", element.getDevice(), -1);
for (int i = 0; i < element.getReferenceRange().size(); i++) composeObservationObservationReferenceRangeComponent(t, "Observation", "referenceRange", element.getReferenceRange().get(i), i);
for (int i = 0; i < element.getHasMember().size(); i++) composeReference(t, "Observation", "hasMember", element.getHasMember().get(i), i);
for (int i = 0; i < element.getDerivedFrom().size(); i++) composeReference(t, "Observation", "derivedFrom", element.getDerivedFrom().get(i), i);
for (int i = 0; i < element.getComponent().size(); i++) composeObservationObservationComponentComponent(t, "Observation", "component", element.getComponent().get(i), i);
}
use of org.hl7.fhir.dstu3.model.Device 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.dstu3.model.Device in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDeviceDeviceVersionComponent.
protected void composeDeviceDeviceVersionComponent(Complex parent, String parentType, String name, Device.DeviceVersionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "version", name, element, index);
if (element.hasType())
composeCodeableConcept(t, "Device", "type", element.getType(), -1);
if (element.hasComponent())
composeIdentifier(t, "Device", "component", element.getComponent(), -1);
if (element.hasValueElement())
composeString(t, "Device", "value", element.getValueElement(), -1);
}
use of org.hl7.fhir.dstu3.model.Device in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDeviceDeviceUdiCarrierComponent.
protected void composeDeviceDeviceUdiCarrierComponent(Complex parent, String parentType, String name, Device.DeviceUdiCarrierComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "udiCarrier", name, element, index);
if (element.hasDeviceIdentifierElement())
composeString(t, "Device", "deviceIdentifier", element.getDeviceIdentifierElement(), -1);
if (element.hasIssuerElement())
composeUri(t, "Device", "issuer", element.getIssuerElement(), -1);
if (element.hasJurisdictionElement())
composeUri(t, "Device", "jurisdiction", element.getJurisdictionElement(), -1);
if (element.hasCarrierAIDCElement())
composeBase64Binary(t, "Device", "carrierAIDC", element.getCarrierAIDCElement(), -1);
if (element.hasCarrierHRFElement())
composeString(t, "Device", "carrierHRF", element.getCarrierHRFElement(), -1);
if (element.hasEntryTypeElement())
composeEnum(t, "Device", "entryType", element.getEntryTypeElement(), -1);
}
use of org.hl7.fhir.dstu3.model.Device in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDeviceDevicePropertyComponent.
protected void composeDeviceDevicePropertyComponent(Complex parent, String parentType, String name, Device.DevicePropertyComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "property", name, element, index);
if (element.hasType())
composeCodeableConcept(t, "Device", "type", element.getType(), -1);
for (int i = 0; i < element.getValueQuantity().size(); i++) composeQuantity(t, "Device", "valueQuantity", element.getValueQuantity().get(i), i);
for (int i = 0; i < element.getValueCode().size(); i++) composeCodeableConcept(t, "Device", "valueCode", element.getValueCode().get(i), i);
}
Aggregations