use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeProcedureProcedurePerformerComponent.
protected void composeProcedureProcedurePerformerComponent(Complex parent, String parentType, String name, Procedure.ProcedurePerformerComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "performer", name, element, index);
if (element.hasFunction())
composeCodeableConcept(t, "Procedure", "function", element.getFunction(), -1);
if (element.hasActor())
composeReference(t, "Procedure", "actor", element.getActor(), -1);
if (element.hasOnBehalfOf())
composeReference(t, "Procedure", "onBehalfOf", element.getOnBehalfOf(), -1);
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeBiologicallyDerivedProductBiologicallyDerivedProductProcessingComponent.
protected void composeBiologicallyDerivedProductBiologicallyDerivedProductProcessingComponent(Complex parent, String parentType, String name, BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent 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, "BiologicallyDerivedProduct", "description", element.getDescriptionElement(), -1);
if (element.hasProcedure())
composeCodeableConcept(t, "BiologicallyDerivedProduct", "procedure", element.getProcedure(), -1);
if (element.hasAdditive())
composeReference(t, "BiologicallyDerivedProduct", "additive", element.getAdditive(), -1);
if (element.hasTime())
composeType(t, "BiologicallyDerivedProduct", "time", element.getTime(), -1);
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE 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.codesystems.ResourceTypes.PROCEDURE in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_procedure_example.
@Test
public void test_procedure_example() throws FileNotFoundException, IOException, Exception {
System.out.println("procedure-example.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\procedure-example.ttl"));
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.PROCEDURE in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_procedure_example_f002_lung.
@Test
public void test_procedure_example_f002_lung() throws FileNotFoundException, IOException, Exception {
System.out.println("procedure-example-f002-lung.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\procedure-example-f002-lung.ttl"));
}
Aggregations