use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDetectedIssue.
protected void composeDetectedIssue(Complex parent, String parentType, String name, DetectedIssue element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "DetectedIssue", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "DetectedIssue", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "DetectedIssue", "status", element.getStatusElement(), -1);
if (element.hasCode())
composeCodeableConcept(t, "DetectedIssue", "code", element.getCode(), -1);
if (element.hasSeverityElement())
composeEnum(t, "DetectedIssue", "severity", element.getSeverityElement(), -1);
if (element.hasPatient())
composeReference(t, "DetectedIssue", "patient", element.getPatient(), -1);
if (element.hasIdentified())
composeType(t, "DetectedIssue", "identified", element.getIdentified(), -1);
if (element.hasAuthor())
composeReference(t, "DetectedIssue", "author", element.getAuthor(), -1);
for (int i = 0; i < element.getImplicated().size(); i++) composeReference(t, "DetectedIssue", "implicated", element.getImplicated().get(i), i);
for (int i = 0; i < element.getEvidence().size(); i++) composeDetectedIssueDetectedIssueEvidenceComponent(t, "DetectedIssue", "evidence", element.getEvidence().get(i), i);
if (element.hasDetailElement())
composeString(t, "DetectedIssue", "detail", element.getDetailElement(), -1);
if (element.hasReferenceElement())
composeUri(t, "DetectedIssue", "reference", element.getReferenceElement(), -1);
for (int i = 0; i < element.getMitigation().size(); i++) composeDetectedIssueDetectedIssueMitigationComponent(t, "DetectedIssue", "mitigation", element.getMitigation().get(i), i);
}
use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMedicationRequest.
protected void composeMedicationRequest(Complex parent, String parentType, String name, MedicationRequest element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "MedicationRequest", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "MedicationRequest", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "MedicationRequest", "status", element.getStatusElement(), -1);
if (element.hasStatusReason())
composeCodeableConcept(t, "MedicationRequest", "statusReason", element.getStatusReason(), -1);
if (element.hasIntentElement())
composeEnum(t, "MedicationRequest", "intent", element.getIntentElement(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "MedicationRequest", "category", element.getCategory().get(i), i);
if (element.hasPriorityElement())
composeEnum(t, "MedicationRequest", "priority", element.getPriorityElement(), -1);
if (element.hasDoNotPerformElement())
composeBoolean(t, "MedicationRequest", "doNotPerform", element.getDoNotPerformElement(), -1);
if (element.hasReported())
composeType(t, "MedicationRequest", "reported", element.getReported(), -1);
if (element.hasMedication())
composeType(t, "MedicationRequest", "medication", element.getMedication(), -1);
if (element.hasSubject())
composeReference(t, "MedicationRequest", "subject", element.getSubject(), -1);
if (element.hasEncounter())
composeReference(t, "MedicationRequest", "encounter", element.getEncounter(), -1);
for (int i = 0; i < element.getSupportingInformation().size(); i++) composeReference(t, "MedicationRequest", "supportingInformation", element.getSupportingInformation().get(i), i);
if (element.hasAuthoredOnElement())
composeDateTime(t, "MedicationRequest", "authoredOn", element.getAuthoredOnElement(), -1);
if (element.hasRequester())
composeReference(t, "MedicationRequest", "requester", element.getRequester(), -1);
if (element.hasPerformer())
composeReference(t, "MedicationRequest", "performer", element.getPerformer(), -1);
if (element.hasPerformerType())
composeCodeableConcept(t, "MedicationRequest", "performerType", element.getPerformerType(), -1);
if (element.hasRecorder())
composeReference(t, "MedicationRequest", "recorder", element.getRecorder(), -1);
for (int i = 0; i < element.getReasonCode().size(); i++) composeCodeableConcept(t, "MedicationRequest", "reasonCode", element.getReasonCode().get(i), i);
for (int i = 0; i < element.getReasonReference().size(); i++) composeReference(t, "MedicationRequest", "reasonReference", element.getReasonReference().get(i), i);
for (int i = 0; i < element.getInstantiatesCanonical().size(); i++) composeCanonical(t, "MedicationRequest", "instantiatesCanonical", element.getInstantiatesCanonical().get(i), i);
for (int i = 0; i < element.getInstantiatesUri().size(); i++) composeUri(t, "MedicationRequest", "instantiatesUri", element.getInstantiatesUri().get(i), i);
for (int i = 0; i < element.getBasedOn().size(); i++) composeReference(t, "MedicationRequest", "basedOn", element.getBasedOn().get(i), i);
if (element.hasGroupIdentifier())
composeIdentifier(t, "MedicationRequest", "groupIdentifier", element.getGroupIdentifier(), -1);
if (element.hasCourseOfTherapyType())
composeCodeableConcept(t, "MedicationRequest", "courseOfTherapyType", element.getCourseOfTherapyType(), -1);
for (int i = 0; i < element.getInsurance().size(); i++) composeReference(t, "MedicationRequest", "insurance", element.getInsurance().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "MedicationRequest", "note", element.getNote().get(i), i);
for (int i = 0; i < element.getDosageInstruction().size(); i++) composeDosage(t, "MedicationRequest", "dosageInstruction", element.getDosageInstruction().get(i), i);
if (element.hasDispenseRequest())
composeMedicationRequestMedicationRequestDispenseRequestComponent(t, "MedicationRequest", "dispenseRequest", element.getDispenseRequest(), -1);
if (element.hasSubstitution())
composeMedicationRequestMedicationRequestSubstitutionComponent(t, "MedicationRequest", "substitution", element.getSubstitution(), -1);
if (element.hasPriorPrescription())
composeReference(t, "MedicationRequest", "priorPrescription", element.getPriorPrescription(), -1);
for (int i = 0; i < element.getDetectedIssue().size(); i++) composeReference(t, "MedicationRequest", "detectedIssue", element.getDetectedIssue().get(i), i);
for (int i = 0; i < element.getEventHistory().size(); i++) composeReference(t, "MedicationRequest", "eventHistory", element.getEventHistory().get(i), i);
}
use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDetectedIssueDetectedIssueEvidenceComponent.
protected void composeDetectedIssueDetectedIssueEvidenceComponent(Complex parent, String parentType, String name, DetectedIssue.DetectedIssueEvidenceComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "evidence", name, element, index);
for (int i = 0; i < element.getCode().size(); i++) composeCodeableConcept(t, "DetectedIssue", "code", element.getCode().get(i), i);
for (int i = 0; i < element.getDetail().size(); i++) composeReference(t, "DetectedIssue", "detail", element.getDetail().get(i), i);
}
use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_detectedissue_example.
@Test
public void test_detectedissue_example() throws FileNotFoundException, IOException, Exception {
System.out.println("detectedissue-example.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\detectedissue-example.ttl"));
}
use of org.hl7.fhir.r4.model.DetectedIssue in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_detectedissue_example_allergy.
@Test
public void test_detectedissue_example_allergy() throws FileNotFoundException, IOException, Exception {
System.out.println("detectedissue-example-allergy.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\detectedissue-example-allergy.ttl"));
}
Aggregations