use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMedicationMedicationProductBatchComponent.
protected void composeMedicationMedicationProductBatchComponent(Complex parent, String parentType, String name, Medication.MedicationProductBatchComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "batch", name, element, index);
if (element.hasLotNumberElement())
composeString(t, "Medication", "lotNumber", element.getLotNumberElement(), -1);
if (element.hasExpirationDateElement())
composeDateTime(t, "Medication", "expirationDate", element.getExpirationDateElement(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseItemAdjudicationComponent.
protected void composeClaimResponseItemAdjudicationComponent(Complex parent, String parentType, String name, ClaimResponse.ItemAdjudicationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "adjudication", name, element, index);
if (element.hasCategory())
composeCoding(t, "ClaimResponse", "category", element.getCategory(), -1);
if (element.hasReason())
composeCoding(t, "ClaimResponse", "reason", element.getReason(), -1);
if (element.hasAmount())
composeQuantity(t, "ClaimResponse", "amount", element.getAmount(), -1);
if (element.hasValueElement())
composeDecimal(t, "ClaimResponse", "value", element.getValueElement(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimPayeeComponent.
protected void composeClaimPayeeComponent(Complex parent, String parentType, String name, Claim.PayeeComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "payee", name, element, index);
if (element.hasType())
composeCoding(t, "Claim", "type", element.getType(), -1);
if (element.hasParty())
composeType(t, "Claim", "party", element.getParty(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeImplementationGuideImplementationGuidePackageComponent.
protected void composeImplementationGuideImplementationGuidePackageComponent(Complex parent, String parentType, String name, ImplementationGuide.ImplementationGuidePackageComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "package", name, element, index);
if (element.hasNameElement())
composeString(t, "ImplementationGuide", "name", element.getNameElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "ImplementationGuide", "description", element.getDescriptionElement(), -1);
for (int i = 0; i < element.getResource().size(); i++) composeImplementationGuideImplementationGuidePackageResourceComponent(t, "ImplementationGuide", "resource", element.getResource().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 composeVisionPrescriptionVisionPrescriptionDispenseComponent.
protected void composeVisionPrescriptionVisionPrescriptionDispenseComponent(Complex parent, String parentType, String name, VisionPrescription.VisionPrescriptionDispenseComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "dispense", name, element, index);
if (element.hasProduct())
composeCoding(t, "VisionPrescription", "product", element.getProduct(), -1);
if (element.hasEyeElement())
composeEnum(t, "VisionPrescription", "eye", element.getEyeElement(), -1);
if (element.hasSphereElement())
composeDecimal(t, "VisionPrescription", "sphere", element.getSphereElement(), -1);
if (element.hasCylinderElement())
composeDecimal(t, "VisionPrescription", "cylinder", element.getCylinderElement(), -1);
if (element.hasAxisElement())
composeInteger(t, "VisionPrescription", "axis", element.getAxisElement(), -1);
if (element.hasPrismElement())
composeDecimal(t, "VisionPrescription", "prism", element.getPrismElement(), -1);
if (element.hasBaseElement())
composeEnum(t, "VisionPrescription", "base", element.getBaseElement(), -1);
if (element.hasAddElement())
composeDecimal(t, "VisionPrescription", "add", element.getAddElement(), -1);
if (element.hasPowerElement())
composeDecimal(t, "VisionPrescription", "power", element.getPowerElement(), -1);
if (element.hasBackCurveElement())
composeDecimal(t, "VisionPrescription", "backCurve", element.getBackCurveElement(), -1);
if (element.hasDiameterElement())
composeDecimal(t, "VisionPrescription", "diameter", element.getDiameterElement(), -1);
if (element.hasDuration())
composeQuantity(t, "VisionPrescription", "duration", element.getDuration(), -1);
if (element.hasColorElement())
composeString(t, "VisionPrescription", "color", element.getColorElement(), -1);
if (element.hasBrandElement())
composeString(t, "VisionPrescription", "brand", element.getBrandElement(), -1);
if (element.hasNotesElement())
composeString(t, "VisionPrescription", "notes", element.getNotesElement(), -1);
}
Aggregations