use of org.hl7.fhir.r4.model.Goal in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeGoal.
protected void composeGoal(Complex parent, String parentType, String name, Goal element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Goal", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Goal", "identifier", element.getIdentifier().get(i), i);
if (element.hasSubject())
composeReference(t, "Goal", "subject", element.getSubject(), -1);
if (element.hasStart())
composeType(t, "Goal", "start", element.getStart(), -1);
if (element.hasTarget())
composeType(t, "Goal", "target", element.getTarget(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "Goal", "category", element.getCategory().get(i), i);
if (element.hasDescriptionElement())
composeString(t, "Goal", "description", element.getDescriptionElement(), -1);
if (element.hasStatusElement())
composeEnum(t, "Goal", "status", element.getStatusElement(), -1);
if (element.hasStatusDateElement())
composeDate(t, "Goal", "statusDate", element.getStatusDateElement(), -1);
if (element.hasStatusReason())
composeCodeableConcept(t, "Goal", "statusReason", element.getStatusReason(), -1);
if (element.hasAuthor())
composeReference(t, "Goal", "author", element.getAuthor(), -1);
if (element.hasPriority())
composeCodeableConcept(t, "Goal", "priority", element.getPriority(), -1);
for (int i = 0; i < element.getAddresses().size(); i++) composeReference(t, "Goal", "addresses", element.getAddresses().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "Goal", "note", element.getNote().get(i), i);
for (int i = 0; i < element.getOutcome().size(); i++) composeGoalGoalOutcomeComponent(t, "Goal", "outcome", element.getOutcome().get(i), i);
}
use of org.hl7.fhir.r4.model.Goal in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePlanDefinition.
protected void composePlanDefinition(Complex parent, String parentType, String name, PlanDefinition element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "PlanDefinition", name, element, index);
if (element.hasUrlElement())
composeUri(t, "PlanDefinition", "url", element.getUrlElement(), -1);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "PlanDefinition", "identifier", element.getIdentifier().get(i), i);
if (element.hasVersionElement())
composeString(t, "PlanDefinition", "version", element.getVersionElement(), -1);
if (element.hasNameElement())
composeString(t, "PlanDefinition", "name", element.getNameElement(), -1);
if (element.hasTitleElement())
composeString(t, "PlanDefinition", "title", element.getTitleElement(), -1);
if (element.hasSubtitleElement())
composeString(t, "PlanDefinition", "subtitle", element.getSubtitleElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "PlanDefinition", "type", element.getType(), -1);
if (element.hasStatusElement())
composeEnum(t, "PlanDefinition", "status", element.getStatusElement(), -1);
if (element.hasExperimentalElement())
composeBoolean(t, "PlanDefinition", "experimental", element.getExperimentalElement(), -1);
if (element.hasSubject())
composeType(t, "PlanDefinition", "subject", element.getSubject(), -1);
if (element.hasDateElement())
composeDateTime(t, "PlanDefinition", "date", element.getDateElement(), -1);
if (element.hasPublisherElement())
composeString(t, "PlanDefinition", "publisher", element.getPublisherElement(), -1);
for (int i = 0; i < element.getContact().size(); i++) composeContactDetail(t, "PlanDefinition", "contact", element.getContact().get(i), i);
if (element.hasDescriptionElement())
composeMarkdown(t, "PlanDefinition", "description", element.getDescriptionElement(), -1);
for (int i = 0; i < element.getUseContext().size(); i++) composeUsageContext(t, "PlanDefinition", "useContext", element.getUseContext().get(i), i);
for (int i = 0; i < element.getJurisdiction().size(); i++) composeCodeableConcept(t, "PlanDefinition", "jurisdiction", element.getJurisdiction().get(i), i);
if (element.hasPurposeElement())
composeMarkdown(t, "PlanDefinition", "purpose", element.getPurposeElement(), -1);
if (element.hasUsageElement())
composeString(t, "PlanDefinition", "usage", element.getUsageElement(), -1);
if (element.hasCopyrightElement())
composeMarkdown(t, "PlanDefinition", "copyright", element.getCopyrightElement(), -1);
if (element.hasApprovalDateElement())
composeDate(t, "PlanDefinition", "approvalDate", element.getApprovalDateElement(), -1);
if (element.hasLastReviewDateElement())
composeDate(t, "PlanDefinition", "lastReviewDate", element.getLastReviewDateElement(), -1);
if (element.hasEffectivePeriod())
composePeriod(t, "PlanDefinition", "effectivePeriod", element.getEffectivePeriod(), -1);
for (int i = 0; i < element.getTopic().size(); i++) composeCodeableConcept(t, "PlanDefinition", "topic", element.getTopic().get(i), i);
for (int i = 0; i < element.getAuthor().size(); i++) composeContactDetail(t, "PlanDefinition", "author", element.getAuthor().get(i), i);
for (int i = 0; i < element.getEditor().size(); i++) composeContactDetail(t, "PlanDefinition", "editor", element.getEditor().get(i), i);
for (int i = 0; i < element.getReviewer().size(); i++) composeContactDetail(t, "PlanDefinition", "reviewer", element.getReviewer().get(i), i);
for (int i = 0; i < element.getEndorser().size(); i++) composeContactDetail(t, "PlanDefinition", "endorser", element.getEndorser().get(i), i);
for (int i = 0; i < element.getRelatedArtifact().size(); i++) composeRelatedArtifact(t, "PlanDefinition", "relatedArtifact", element.getRelatedArtifact().get(i), i);
for (int i = 0; i < element.getLibrary().size(); i++) composeCanonical(t, "PlanDefinition", "library", element.getLibrary().get(i), i);
for (int i = 0; i < element.getGoal().size(); i++) composePlanDefinitionPlanDefinitionGoalComponent(t, "PlanDefinition", "goal", element.getGoal().get(i), i);
for (int i = 0; i < element.getAction().size(); i++) composePlanDefinitionPlanDefinitionActionComponent(t, "PlanDefinition", "action", element.getAction().get(i), i);
}
use of org.hl7.fhir.r4.model.Goal in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeCarePlan.
protected void composeCarePlan(Complex parent, String parentType, String name, CarePlan element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "CarePlan", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "CarePlan", "identifier", element.getIdentifier().get(i), i);
for (int i = 0; i < element.getInstantiatesCanonical().size(); i++) composeCanonical(t, "CarePlan", "instantiatesCanonical", element.getInstantiatesCanonical().get(i), i);
for (int i = 0; i < element.getInstantiatesUri().size(); i++) composeUri(t, "CarePlan", "instantiatesUri", element.getInstantiatesUri().get(i), i);
for (int i = 0; i < element.getBasedOn().size(); i++) composeReference(t, "CarePlan", "basedOn", element.getBasedOn().get(i), i);
for (int i = 0; i < element.getReplaces().size(); i++) composeReference(t, "CarePlan", "replaces", element.getReplaces().get(i), i);
for (int i = 0; i < element.getPartOf().size(); i++) composeReference(t, "CarePlan", "partOf", element.getPartOf().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "CarePlan", "status", element.getStatusElement(), -1);
if (element.hasIntentElement())
composeEnum(t, "CarePlan", "intent", element.getIntentElement(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "CarePlan", "category", element.getCategory().get(i), i);
if (element.hasTitleElement())
composeString(t, "CarePlan", "title", element.getTitleElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "CarePlan", "description", element.getDescriptionElement(), -1);
if (element.hasSubject())
composeReference(t, "CarePlan", "subject", element.getSubject(), -1);
if (element.hasEncounter())
composeReference(t, "CarePlan", "encounter", element.getEncounter(), -1);
if (element.hasPeriod())
composePeriod(t, "CarePlan", "period", element.getPeriod(), -1);
if (element.hasCreatedElement())
composeDateTime(t, "CarePlan", "created", element.getCreatedElement(), -1);
if (element.hasAuthor())
composeReference(t, "CarePlan", "author", element.getAuthor(), -1);
for (int i = 0; i < element.getContributor().size(); i++) composeReference(t, "CarePlan", "contributor", element.getContributor().get(i), i);
for (int i = 0; i < element.getCareTeam().size(); i++) composeReference(t, "CarePlan", "careTeam", element.getCareTeam().get(i), i);
for (int i = 0; i < element.getAddresses().size(); i++) composeReference(t, "CarePlan", "addresses", element.getAddresses().get(i), i);
for (int i = 0; i < element.getSupportingInfo().size(); i++) composeReference(t, "CarePlan", "supportingInfo", element.getSupportingInfo().get(i), i);
for (int i = 0; i < element.getGoal().size(); i++) composeReference(t, "CarePlan", "goal", element.getGoal().get(i), i);
for (int i = 0; i < element.getActivity().size(); i++) composeCarePlanCarePlanActivityComponent(t, "CarePlan", "activity", element.getActivity().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "CarePlan", "note", element.getNote().get(i), i);
}
use of org.hl7.fhir.r4.model.Goal in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeGoal.
protected void composeGoal(Complex parent, String parentType, String name, Goal element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Goal", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Goal", "identifier", element.getIdentifier().get(i), i);
if (element.hasLifecycleStatusElement())
composeEnum(t, "Goal", "lifecycleStatus", element.getLifecycleStatusElement(), -1);
if (element.hasAchievementStatus())
composeCodeableConcept(t, "Goal", "achievementStatus", element.getAchievementStatus(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "Goal", "category", element.getCategory().get(i), i);
if (element.hasPriority())
composeCodeableConcept(t, "Goal", "priority", element.getPriority(), -1);
if (element.hasDescription())
composeCodeableConcept(t, "Goal", "description", element.getDescription(), -1);
if (element.hasSubject())
composeReference(t, "Goal", "subject", element.getSubject(), -1);
if (element.hasStart())
composeType(t, "Goal", "start", element.getStart(), -1);
for (int i = 0; i < element.getTarget().size(); i++) composeGoalGoalTargetComponent(t, "Goal", "target", element.getTarget().get(i), i);
if (element.hasStatusDateElement())
composeDate(t, "Goal", "statusDate", element.getStatusDateElement(), -1);
if (element.hasStatusReasonElement())
composeString(t, "Goal", "statusReason", element.getStatusReasonElement(), -1);
if (element.hasExpressedBy())
composeReference(t, "Goal", "expressedBy", element.getExpressedBy(), -1);
for (int i = 0; i < element.getAddresses().size(); i++) composeReference(t, "Goal", "addresses", element.getAddresses().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "Goal", "note", element.getNote().get(i), i);
for (int i = 0; i < element.getOutcomeCode().size(); i++) composeCodeableConcept(t, "Goal", "outcomeCode", element.getOutcomeCode().get(i), i);
for (int i = 0; i < element.getOutcomeReference().size(); i++) composeReference(t, "Goal", "outcomeReference", element.getOutcomeReference().get(i), i);
}
use of org.hl7.fhir.r4.model.Goal in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_goal_example.
@Test
public void test_goal_example() throws FileNotFoundException, IOException, Exception {
System.out.println("goal-example.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\goal-example.ttl"));
}
Aggregations