use of org.hl7.fhir.dstu3.model.RelatedArtifact in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeRelatedArtifact.
protected void composeRelatedArtifact(Complex parent, String parentType, String name, RelatedArtifact element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeElement(t, "RelatedArtifact", name, element, index);
if (element.hasTypeElement())
composeEnum(t, "RelatedArtifact", "type", element.getTypeElement(), -1);
if (element.hasDisplayElement())
composeString(t, "RelatedArtifact", "display", element.getDisplayElement(), -1);
if (element.hasCitationElement())
composeString(t, "RelatedArtifact", "citation", element.getCitationElement(), -1);
if (element.hasUrlElement())
composeUri(t, "RelatedArtifact", "url", element.getUrlElement(), -1);
if (element.hasDocument())
composeAttachment(t, "RelatedArtifact", "document", element.getDocument(), -1);
if (element.hasResource())
composeReference(t, "RelatedArtifact", "resource", element.getResource(), -1);
}
use of org.hl7.fhir.dstu3.model.RelatedArtifact in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeLibrary.
protected void composeLibrary(Complex parent, String parentType, String name, Library element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Library", name, element, index);
if (element.hasUrlElement())
composeUri(t, "Library", "url", element.getUrlElement(), -1);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Library", "identifier", element.getIdentifier().get(i), i);
if (element.hasVersionElement())
composeString(t, "Library", "version", element.getVersionElement(), -1);
if (element.hasNameElement())
composeString(t, "Library", "name", element.getNameElement(), -1);
if (element.hasTitleElement())
composeString(t, "Library", "title", element.getTitleElement(), -1);
if (element.hasStatusElement())
composeEnum(t, "Library", "status", element.getStatusElement(), -1);
if (element.hasExperimentalElement())
composeBoolean(t, "Library", "experimental", element.getExperimentalElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "Library", "type", element.getType(), -1);
if (element.hasDateElement())
composeDateTime(t, "Library", "date", element.getDateElement(), -1);
if (element.hasPublisherElement())
composeString(t, "Library", "publisher", element.getPublisherElement(), -1);
if (element.hasDescriptionElement())
composeMarkdown(t, "Library", "description", element.getDescriptionElement(), -1);
if (element.hasPurposeElement())
composeMarkdown(t, "Library", "purpose", element.getPurposeElement(), -1);
if (element.hasUsageElement())
composeString(t, "Library", "usage", element.getUsageElement(), -1);
if (element.hasApprovalDateElement())
composeDate(t, "Library", "approvalDate", element.getApprovalDateElement(), -1);
if (element.hasLastReviewDateElement())
composeDate(t, "Library", "lastReviewDate", element.getLastReviewDateElement(), -1);
if (element.hasEffectivePeriod())
composePeriod(t, "Library", "effectivePeriod", element.getEffectivePeriod(), -1);
for (int i = 0; i < element.getUseContext().size(); i++) composeUsageContext(t, "Library", "useContext", element.getUseContext().get(i), i);
for (int i = 0; i < element.getJurisdiction().size(); i++) composeCodeableConcept(t, "Library", "jurisdiction", element.getJurisdiction().get(i), i);
for (int i = 0; i < element.getTopic().size(); i++) composeCodeableConcept(t, "Library", "topic", element.getTopic().get(i), i);
for (int i = 0; i < element.getContributor().size(); i++) composeContributor(t, "Library", "contributor", element.getContributor().get(i), i);
for (int i = 0; i < element.getContact().size(); i++) composeContactDetail(t, "Library", "contact", element.getContact().get(i), i);
if (element.hasCopyrightElement())
composeMarkdown(t, "Library", "copyright", element.getCopyrightElement(), -1);
for (int i = 0; i < element.getRelatedArtifact().size(); i++) composeRelatedArtifact(t, "Library", "relatedArtifact", element.getRelatedArtifact().get(i), i);
for (int i = 0; i < element.getParameter().size(); i++) composeParameterDefinition(t, "Library", "parameter", element.getParameter().get(i), i);
for (int i = 0; i < element.getDataRequirement().size(); i++) composeDataRequirement(t, "Library", "dataRequirement", element.getDataRequirement().get(i), i);
for (int i = 0; i < element.getContent().size(); i++) composeAttachment(t, "Library", "content", element.getContent().get(i), i);
}
use of org.hl7.fhir.dstu3.model.RelatedArtifact in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeResearchStudy.
protected void composeResearchStudy(Complex parent, String parentType, String name, ResearchStudy element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "ResearchStudy", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "ResearchStudy", "identifier", element.getIdentifier().get(i), i);
if (element.hasTitleElement())
composeString(t, "ResearchStudy", "title", element.getTitleElement(), -1);
for (int i = 0; i < element.getProtocol().size(); i++) composeReference(t, "ResearchStudy", "protocol", element.getProtocol().get(i), i);
for (int i = 0; i < element.getPartOf().size(); i++) composeReference(t, "ResearchStudy", "partOf", element.getPartOf().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "ResearchStudy", "status", element.getStatusElement(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "ResearchStudy", "category", element.getCategory().get(i), i);
for (int i = 0; i < element.getFocus().size(); i++) composeCodeableConcept(t, "ResearchStudy", "focus", element.getFocus().get(i), i);
for (int i = 0; i < element.getContact().size(); i++) composeContactDetail(t, "ResearchStudy", "contact", element.getContact().get(i), i);
for (int i = 0; i < element.getRelatedArtifact().size(); i++) composeRelatedArtifact(t, "ResearchStudy", "relatedArtifact", element.getRelatedArtifact().get(i), i);
for (int i = 0; i < element.getKeyword().size(); i++) composeCodeableConcept(t, "ResearchStudy", "keyword", element.getKeyword().get(i), i);
for (int i = 0; i < element.getJurisdiction().size(); i++) composeCodeableConcept(t, "ResearchStudy", "jurisdiction", element.getJurisdiction().get(i), i);
if (element.hasDescriptionElement())
composeMarkdown(t, "ResearchStudy", "description", element.getDescriptionElement(), -1);
for (int i = 0; i < element.getEnrollment().size(); i++) composeReference(t, "ResearchStudy", "enrollment", element.getEnrollment().get(i), i);
if (element.hasPeriod())
composePeriod(t, "ResearchStudy", "period", element.getPeriod(), -1);
if (element.hasSponsor())
composeReference(t, "ResearchStudy", "sponsor", element.getSponsor(), -1);
if (element.hasPrincipalInvestigator())
composeReference(t, "ResearchStudy", "principalInvestigator", element.getPrincipalInvestigator(), -1);
for (int i = 0; i < element.getSite().size(); i++) composeReference(t, "ResearchStudy", "site", element.getSite().get(i), i);
if (element.hasReasonStopped())
composeCodeableConcept(t, "ResearchStudy", "reasonStopped", element.getReasonStopped(), -1);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "ResearchStudy", "note", element.getNote().get(i), i);
for (int i = 0; i < element.getArm().size(); i++) composeResearchStudyResearchStudyArmComponent(t, "ResearchStudy", "arm", element.getArm().get(i), i);
}
use of org.hl7.fhir.dstu3.model.RelatedArtifact in project org.hl7.fhir.core by hapifhir.
the class Composition40_50 method convertComposition.
public static org.hl7.fhir.r4.model.Composition convertComposition(org.hl7.fhir.r5.model.Composition src) throws FHIRException {
if (src == null)
return null;
org.hl7.fhir.r4.model.Composition tgt = new org.hl7.fhir.r4.model.Composition();
ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyDomainResource(src, tgt);
if (src.hasIdentifier())
tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier()));
if (src.hasStatus())
tgt.setStatusElement(convertCompositionStatus(src.getStatusElement()));
if (src.hasType())
tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType()));
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(CodeableConcept40_50.convertCodeableConcept(t));
if (src.hasSubject())
tgt.setSubject(Reference40_50.convertReference(src.getSubject()));
if (src.hasEncounter())
tgt.setEncounter(Reference40_50.convertReference(src.getEncounter()));
if (src.hasDate())
tgt.setDateElement(DateTime40_50.convertDateTime(src.getDateElement()));
for (org.hl7.fhir.r5.model.Reference t : src.getAuthor()) tgt.addAuthor(Reference40_50.convertReference(t));
if (src.hasTitle())
tgt.setTitleElement(String40_50.convertString(src.getTitleElement()));
if (src.hasConfidentiality())
tgt.setConfidentialityElement(convertDocumentConfidentiality(src.getConfidentialityElement()));
for (org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t));
if (src.hasCustodian())
tgt.setCustodian(Reference40_50.convertReference(src.getCustodian()));
for (RelatedArtifact t : src.getRelatesTo()) tgt.addRelatesTo(convertCompositionRelatesToComponent(t));
for (org.hl7.fhir.r5.model.Composition.CompositionEventComponent t : src.getEvent()) tgt.addEvent(convertCompositionEventComponent(t));
for (org.hl7.fhir.r5.model.Composition.SectionComponent t : src.getSection()) tgt.addSection(convertSectionComponent(t));
return tgt;
}
use of org.hl7.fhir.dstu3.model.RelatedArtifact 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.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.hasDateElement())
composeDateTime(t, "PlanDefinition", "date", element.getDateElement(), -1);
if (element.hasPublisherElement())
composeString(t, "PlanDefinition", "publisher", element.getPublisherElement(), -1);
if (element.hasDescriptionElement())
composeMarkdown(t, "PlanDefinition", "description", element.getDescriptionElement(), -1);
if (element.hasPurposeElement())
composeMarkdown(t, "PlanDefinition", "purpose", element.getPurposeElement(), -1);
if (element.hasUsageElement())
composeString(t, "PlanDefinition", "usage", element.getUsageElement(), -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.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);
for (int i = 0; i < element.getTopic().size(); i++) composeCodeableConcept(t, "PlanDefinition", "topic", element.getTopic().get(i), i);
for (int i = 0; i < element.getContributor().size(); i++) composeContributor(t, "PlanDefinition", "contributor", element.getContributor().get(i), i);
for (int i = 0; i < element.getContact().size(); i++) composeContactDetail(t, "PlanDefinition", "contact", element.getContact().get(i), i);
if (element.hasCopyrightElement())
composeMarkdown(t, "PlanDefinition", "copyright", element.getCopyrightElement(), -1);
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++) composeReference(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);
}
Aggregations