use of org.hl7.fhir.r4.model.Specimen 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.r4.model.Specimen in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeSpecimenSpecimenContainerComponent.
protected void composeSpecimenSpecimenContainerComponent(Complex parent, String parentType, String name, Specimen.SpecimenContainerComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "container", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Specimen", "identifier", element.getIdentifier().get(i), i);
if (element.hasDescriptionElement())
composeString(t, "Specimen", "description", element.getDescriptionElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "Specimen", "type", element.getType(), -1);
if (element.hasCapacity())
composeQuantity(t, "Specimen", "capacity", element.getCapacity(), -1);
if (element.hasSpecimenQuantity())
composeQuantity(t, "Specimen", "specimenQuantity", element.getSpecimenQuantity(), -1);
if (element.hasAdditive())
composeType(t, "Specimen", "additive", element.getAdditive(), -1);
}
use of org.hl7.fhir.r4.model.Specimen in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeSpecimen.
protected void composeSpecimen(Complex parent, String parentType, String name, Specimen element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Specimen", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Specimen", "identifier", element.getIdentifier().get(i), i);
if (element.hasAccessionIdentifier())
composeIdentifier(t, "Specimen", "accessionIdentifier", element.getAccessionIdentifier(), -1);
if (element.hasStatusElement())
composeEnum(t, "Specimen", "status", element.getStatusElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "Specimen", "type", element.getType(), -1);
if (element.hasSubject())
composeReference(t, "Specimen", "subject", element.getSubject(), -1);
if (element.hasReceivedTimeElement())
composeDateTime(t, "Specimen", "receivedTime", element.getReceivedTimeElement(), -1);
for (int i = 0; i < element.getParent().size(); i++) composeReference(t, "Specimen", "parent", element.getParent().get(i), i);
for (int i = 0; i < element.getRequest().size(); i++) composeReference(t, "Specimen", "request", element.getRequest().get(i), i);
if (element.hasCollection())
composeSpecimenSpecimenCollectionComponent(t, "Specimen", "collection", element.getCollection(), -1);
for (int i = 0; i < element.getProcessing().size(); i++) composeSpecimenSpecimenProcessingComponent(t, "Specimen", "processing", element.getProcessing().get(i), i);
for (int i = 0; i < element.getContainer().size(); i++) composeSpecimenSpecimenContainerComponent(t, "Specimen", "container", element.getContainer().get(i), i);
for (int i = 0; i < element.getCondition().size(); i++) composeCodeableConcept(t, "Specimen", "condition", element.getCondition().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "Specimen", "note", element.getNote().get(i), i);
}
use of org.hl7.fhir.r4.model.Specimen in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeSpecimenSpecimenProcessingComponent.
protected void composeSpecimenSpecimenProcessingComponent(Complex parent, String parentType, String name, Specimen.SpecimenProcessingComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "processing", name, element, index);
if (element.hasDescriptionElement())
composeString(t, "Specimen", "description", element.getDescriptionElement(), -1);
if (element.hasProcedure())
composeCodeableConcept(t, "Specimen", "procedure", element.getProcedure(), -1);
for (int i = 0; i < element.getAdditive().size(); i++) composeReference(t, "Specimen", "additive", element.getAdditive().get(i), i);
if (element.hasTime())
composeType(t, "Specimen", "time", element.getTime(), -1);
}
use of org.hl7.fhir.r4.model.Specimen in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeSpecimenSpecimenCollectionComponent.
protected void composeSpecimenSpecimenCollectionComponent(Complex parent, String parentType, String name, Specimen.SpecimenCollectionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "collection", name, element, index);
if (element.hasCollector())
composeReference(t, "Specimen", "collector", element.getCollector(), -1);
if (element.hasCollected())
composeType(t, "Specimen", "collected", element.getCollected(), -1);
if (element.hasDuration())
composeDuration(t, "Specimen", "duration", element.getDuration(), -1);
if (element.hasQuantity())
composeQuantity(t, "Specimen", "quantity", element.getQuantity(), -1);
if (element.hasMethod())
composeCodeableConcept(t, "Specimen", "method", element.getMethod(), -1);
if (element.hasBodySite())
composeCodeableConcept(t, "Specimen", "bodySite", element.getBodySite(), -1);
if (element.hasFastingStatus())
composeType(t, "Specimen", "fastingStatus", element.getFastingStatus(), -1);
}
Aggregations