use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMedicationDispense.
protected void composeMedicationDispense(Complex parent, String parentType, String name, MedicationDispense element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "MedicationDispense", name, element, index);
if (element.hasIdentifier())
composeIdentifier(t, "MedicationDispense", "identifier", element.getIdentifier(), -1);
if (element.hasStatusElement())
composeEnum(t, "MedicationDispense", "status", element.getStatusElement(), -1);
if (element.hasMedication())
composeType(t, "MedicationDispense", "medication", element.getMedication(), -1);
if (element.hasPatient())
composeReference(t, "MedicationDispense", "patient", element.getPatient(), -1);
if (element.hasDispenser())
composeReference(t, "MedicationDispense", "dispenser", element.getDispenser(), -1);
for (int i = 0; i < element.getAuthorizingPrescription().size(); i++) composeReference(t, "MedicationDispense", "authorizingPrescription", element.getAuthorizingPrescription().get(i), i);
if (element.hasType())
composeCodeableConcept(t, "MedicationDispense", "type", element.getType(), -1);
if (element.hasQuantity())
composeQuantity(t, "MedicationDispense", "quantity", element.getQuantity(), -1);
if (element.hasDaysSupply())
composeQuantity(t, "MedicationDispense", "daysSupply", element.getDaysSupply(), -1);
if (element.hasWhenPreparedElement())
composeDateTime(t, "MedicationDispense", "whenPrepared", element.getWhenPreparedElement(), -1);
if (element.hasWhenHandedOverElement())
composeDateTime(t, "MedicationDispense", "whenHandedOver", element.getWhenHandedOverElement(), -1);
if (element.hasDestination())
composeReference(t, "MedicationDispense", "destination", element.getDestination(), -1);
for (int i = 0; i < element.getReceiver().size(); i++) composeReference(t, "MedicationDispense", "receiver", element.getReceiver().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "MedicationDispense", "note", element.getNote().get(i), i);
for (int i = 0; i < element.getDosageInstruction().size(); i++) composeMedicationDispenseMedicationDispenseDosageInstructionComponent(t, "MedicationDispense", "dosageInstruction", element.getDosageInstruction().get(i), i);
if (element.hasSubstitution())
composeMedicationDispenseMedicationDispenseSubstitutionComponent(t, "MedicationDispense", "substitution", element.getSubstitution(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTeardownActionComponent.
protected void composeTestScriptTeardownActionComponent(Complex parent, String parentType, String name, TestScript.TeardownActionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "action", name, element, index);
if (element.hasOperation())
composeTestScriptSetupActionOperationComponent(t, "TestScript", "operation", element.getOperation(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMeasure.
protected void composeMeasure(Complex parent, String parentType, String name, Measure element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Measure", name, element, index);
if (element.hasModuleMetadata())
composeModuleMetadata(t, "Measure", "moduleMetadata", element.getModuleMetadata(), -1);
for (int i = 0; i < element.getLibrary().size(); i++) composeReference(t, "Measure", "library", element.getLibrary().get(i), i);
if (element.hasDisclaimerElement())
composeMarkdown(t, "Measure", "disclaimer", element.getDisclaimerElement(), -1);
if (element.hasScoringElement())
composeEnum(t, "Measure", "scoring", element.getScoringElement(), -1);
for (int i = 0; i < element.getType().size(); i++) composeEnum(t, "Measure", "type", element.getType().get(i), i);
if (element.hasRiskAdjustmentElement())
composeString(t, "Measure", "riskAdjustment", element.getRiskAdjustmentElement(), -1);
if (element.hasRateAggregationElement())
composeString(t, "Measure", "rateAggregation", element.getRateAggregationElement(), -1);
if (element.hasRationaleElement())
composeMarkdown(t, "Measure", "rationale", element.getRationaleElement(), -1);
if (element.hasClinicalRecommendationStatementElement())
composeMarkdown(t, "Measure", "clinicalRecommendationStatement", element.getClinicalRecommendationStatementElement(), -1);
if (element.hasImprovementNotationElement())
composeString(t, "Measure", "improvementNotation", element.getImprovementNotationElement(), -1);
if (element.hasDefinitionElement())
composeMarkdown(t, "Measure", "definition", element.getDefinitionElement(), -1);
if (element.hasGuidanceElement())
composeMarkdown(t, "Measure", "guidance", element.getGuidanceElement(), -1);
if (element.hasSetElement())
composeString(t, "Measure", "set", element.getSetElement(), -1);
for (int i = 0; i < element.getGroup().size(); i++) composeMeasureMeasureGroupComponent(t, "Measure", "group", element.getGroup().get(i), i);
for (int i = 0; i < element.getSupplementalData().size(); i++) composeMeasureMeasureSupplementalDataComponent(t, "Measure", "supplementalData", element.getSupplementalData().get(i), i);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseAddedItemsDetailComponent.
protected void composeClaimResponseAddedItemsDetailComponent(Complex parent, String parentType, String name, ClaimResponse.AddedItemsDetailComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "detail", name, element, index);
if (element.hasService())
composeCoding(t, "ClaimResponse", "service", element.getService(), -1);
if (element.hasFee())
composeQuantity(t, "ClaimResponse", "fee", element.getFee(), -1);
for (int i = 0; i < element.getAdjudication().size(); i++) composeClaimResponseAddedItemDetailAdjudicationComponent(t, "ClaimResponse", "adjudication", element.getAdjudication().get(i), i);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseCoverageComponent.
protected void composeClaimResponseCoverageComponent(Complex parent, String parentType, String name, ClaimResponse.CoverageComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "coverage", name, element, index);
if (element.hasSequenceElement())
composePositiveInt(t, "ClaimResponse", "sequence", element.getSequenceElement(), -1);
if (element.hasFocalElement())
composeBoolean(t, "ClaimResponse", "focal", element.getFocalElement(), -1);
if (element.hasCoverage())
composeType(t, "ClaimResponse", "coverage", element.getCoverage(), -1);
if (element.hasBusinessArrangementElement())
composeString(t, "ClaimResponse", "businessArrangement", element.getBusinessArrangementElement(), -1);
for (int i = 0; i < element.getPreAuthRef().size(); i++) composeString(t, "ClaimResponse", "preAuthRef", element.getPreAuthRef().get(i), i);
if (element.hasClaimResponse())
composeReference(t, "ClaimResponse", "claimResponse", element.getClaimResponse(), -1);
}
Aggregations