use of org.hl7.fhir.r4.model.Specimen in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeSequence.
protected void composeSequence(Complex parent, String parentType, String name, Sequence element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Sequence", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Sequence", "identifier", element.getIdentifier().get(i), i);
if (element.hasTypeElement())
composeEnum(t, "Sequence", "type", element.getTypeElement(), -1);
if (element.hasCoordinateSystemElement())
composeInteger(t, "Sequence", "coordinateSystem", element.getCoordinateSystemElement(), -1);
if (element.hasPatient())
composeReference(t, "Sequence", "patient", element.getPatient(), -1);
if (element.hasSpecimen())
composeReference(t, "Sequence", "specimen", element.getSpecimen(), -1);
if (element.hasDevice())
composeReference(t, "Sequence", "device", element.getDevice(), -1);
if (element.hasPerformer())
composeReference(t, "Sequence", "performer", element.getPerformer(), -1);
if (element.hasQuantity())
composeQuantity(t, "Sequence", "quantity", element.getQuantity(), -1);
if (element.hasReferenceSeq())
composeSequenceSequenceReferenceSeqComponent(t, "Sequence", "referenceSeq", element.getReferenceSeq(), -1);
for (int i = 0; i < element.getVariant().size(); i++) composeSequenceSequenceVariantComponent(t, "Sequence", "variant", element.getVariant().get(i), i);
if (element.hasObservedSeqElement())
composeString(t, "Sequence", "observedSeq", element.getObservedSeqElement(), -1);
for (int i = 0; i < element.getQuality().size(); i++) composeSequenceSequenceQualityComponent(t, "Sequence", "quality", element.getQuality().get(i), i);
if (element.hasReadCoverageElement())
composeInteger(t, "Sequence", "readCoverage", element.getReadCoverageElement(), -1);
for (int i = 0; i < element.getRepository().size(); i++) composeSequenceSequenceRepositoryComponent(t, "Sequence", "repository", element.getRepository().get(i), i);
for (int i = 0; i < element.getPointer().size(); i++) composeReference(t, "Sequence", "pointer", element.getPointer().get(i), i);
}
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);
if (element.hasStatusElement())
composeEnum(t, "Observation", "status", element.getStatusElement(), -1);
if (element.hasCategory())
composeCodeableConcept(t, "Observation", "category", element.getCategory(), -1);
if (element.hasCode())
composeCodeableConcept(t, "Observation", "code", element.getCode(), -1);
if (element.hasSubject())
composeReference(t, "Observation", "subject", element.getSubject(), -1);
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);
if (element.hasInterpretation())
composeCodeableConcept(t, "Observation", "interpretation", element.getInterpretation(), -1);
if (element.hasCommentElement())
composeString(t, "Observation", "comment", element.getCommentElement(), -1);
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.getRelated().size(); i++) composeObservationObservationRelatedComponent(t, "Observation", "related", element.getRelated().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);
if (element.hasCollection())
composeSpecimenSpecimenCollectionComponent(t, "Specimen", "collection", element.getCollection(), -1);
for (int i = 0; i < element.getTreatment().size(); i++) composeSpecimenSpecimenTreatmentComponent(t, "Specimen", "treatment", element.getTreatment().get(i), i);
for (int i = 0; i < element.getContainer().size(); i++) composeSpecimenSpecimenContainerComponent(t, "Specimen", "container", element.getContainer().get(i), i);
}
use of org.hl7.fhir.r4.model.Specimen in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDiagnosticOrder.
protected void composeDiagnosticOrder(Complex parent, String parentType, String name, DiagnosticOrder element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "DiagnosticOrder", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "DiagnosticOrder", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "DiagnosticOrder", "status", element.getStatusElement(), -1);
if (element.hasPriorityElement())
composeEnum(t, "DiagnosticOrder", "priority", element.getPriorityElement(), -1);
if (element.hasSubject())
composeReference(t, "DiagnosticOrder", "subject", element.getSubject(), -1);
if (element.hasEncounter())
composeReference(t, "DiagnosticOrder", "encounter", element.getEncounter(), -1);
if (element.hasOrderer())
composeReference(t, "DiagnosticOrder", "orderer", element.getOrderer(), -1);
for (int i = 0; i < element.getReason().size(); i++) composeCodeableConcept(t, "DiagnosticOrder", "reason", element.getReason().get(i), i);
for (int i = 0; i < element.getSupportingInformation().size(); i++) composeReference(t, "DiagnosticOrder", "supportingInformation", element.getSupportingInformation().get(i), i);
for (int i = 0; i < element.getSpecimen().size(); i++) composeReference(t, "DiagnosticOrder", "specimen", element.getSpecimen().get(i), i);
for (int i = 0; i < element.getEvent().size(); i++) composeDiagnosticOrderDiagnosticOrderEventComponent(t, "DiagnosticOrder", "event", element.getEvent().get(i), i);
for (int i = 0; i < element.getItem().size(); i++) composeDiagnosticOrderDiagnosticOrderItemComponent(t, "DiagnosticOrder", "item", element.getItem().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "DiagnosticOrder", "note", element.getNote().get(i), i);
}
Aggregations