Search in sources :

Example 6 with DataRequirement

use of org.hl7.fhir.r5.model.DataRequirement in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeDataRequirementDataRequirementCodeFilterComponent.

protected void composeDataRequirementDataRequirementCodeFilterComponent(Complex parent, String parentType, String name, DataRequirement.DataRequirementCodeFilterComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeElement(t, "codeFilter", name, element, index);
    if (element.hasPathElement())
        composeString(t, "DataRequirement", "path", element.getPathElement(), -1);
    if (element.hasValueSet())
        composeType(t, "DataRequirement", "valueSet", element.getValueSet(), -1);
    for (int i = 0; i < element.getValueCode().size(); i++) composeCode(t, "DataRequirement", "valueCode", element.getValueCode().get(i), i);
    for (int i = 0; i < element.getValueCoding().size(); i++) composeCoding(t, "DataRequirement", "valueCoding", element.getValueCoding().get(i), i);
    for (int i = 0; i < element.getValueCodeableConcept().size(); i++) composeCodeableConcept(t, "DataRequirement", "valueCodeableConcept", element.getValueCodeableConcept().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 7 with DataRequirement

use of org.hl7.fhir.r5.model.DataRequirement in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeGuidanceResponse.

protected void composeGuidanceResponse(Complex parent, String parentType, String name, GuidanceResponse element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "GuidanceResponse", name, element, index);
    if (element.hasRequestIdElement())
        composeString(t, "GuidanceResponse", "requestId", element.getRequestIdElement(), -1);
    if (element.hasModule())
        composeReference(t, "GuidanceResponse", "module", element.getModule(), -1);
    if (element.hasStatusElement())
        composeEnum(t, "GuidanceResponse", "status", element.getStatusElement(), -1);
    for (int i = 0; i < element.getEvaluationMessage().size(); i++) composeReference(t, "GuidanceResponse", "evaluationMessage", element.getEvaluationMessage().get(i), i);
    if (element.hasOutputParameters())
        composeReference(t, "GuidanceResponse", "outputParameters", element.getOutputParameters(), -1);
    for (int i = 0; i < element.getAction().size(); i++) composeGuidanceResponseGuidanceResponseActionComponent(t, "GuidanceResponse", "action", element.getAction().get(i), i);
    for (int i = 0; i < element.getDataRequirement().size(); i++) composeDataRequirement(t, "GuidanceResponse", "dataRequirement", element.getDataRequirement().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 8 with DataRequirement

use of org.hl7.fhir.r5.model.DataRequirement in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeDataRequirementDataRequirementCodeFilterComponent.

protected void composeDataRequirementDataRequirementCodeFilterComponent(Complex parent, String parentType, String name, DataRequirement.DataRequirementCodeFilterComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeElement(t, "codeFilter", name, element, index);
    if (element.hasPathElement())
        composeString(t, "DataRequirement", "path", element.getPathElement(), -1);
    if (element.hasSearchParamElement())
        composeString(t, "DataRequirement", "searchParam", element.getSearchParamElement(), -1);
    if (element.hasValueSetElement())
        composeCanonical(t, "DataRequirement", "valueSet", element.getValueSetElement(), -1);
    for (int i = 0; i < element.getCode().size(); i++) composeCoding(t, "DataRequirement", "code", element.getCode().get(i), i);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 9 with DataRequirement

use of org.hl7.fhir.r5.model.DataRequirement in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeDataRequirementDataRequirementSortComponent.

protected void composeDataRequirementDataRequirementSortComponent(Complex parent, String parentType, String name, DataRequirement.DataRequirementSortComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeElement(t, "sort", name, element, index);
    if (element.hasPathElement())
        composeString(t, "DataRequirement", "path", element.getPathElement(), -1);
    if (element.hasDirectionElement())
        composeEnum(t, "DataRequirement", "direction", element.getDirectionElement(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 10 with DataRequirement

use of org.hl7.fhir.r5.model.DataRequirement 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.hasSubtitleElement())
        composeString(t, "Library", "subtitle", element.getSubtitleElement(), -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.hasSubject())
        composeType(t, "Library", "subject", element.getSubject(), -1);
    if (element.hasDateElement())
        composeDateTime(t, "Library", "date", element.getDateElement(), -1);
    if (element.hasPublisherElement())
        composeString(t, "Library", "publisher", element.getPublisherElement(), -1);
    for (int i = 0; i < element.getContact().size(); i++) composeContactDetail(t, "Library", "contact", element.getContact().get(i), i);
    if (element.hasDescriptionElement())
        composeMarkdown(t, "Library", "description", element.getDescriptionElement(), -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);
    if (element.hasPurposeElement())
        composeMarkdown(t, "Library", "purpose", element.getPurposeElement(), -1);
    if (element.hasUsageElement())
        composeString(t, "Library", "usage", element.getUsageElement(), -1);
    if (element.hasCopyrightElement())
        composeMarkdown(t, "Library", "copyright", element.getCopyrightElement(), -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.getTopic().size(); i++) composeCodeableConcept(t, "Library", "topic", element.getTopic().get(i), i);
    for (int i = 0; i < element.getAuthor().size(); i++) composeContactDetail(t, "Library", "author", element.getAuthor().get(i), i);
    for (int i = 0; i < element.getEditor().size(); i++) composeContactDetail(t, "Library", "editor", element.getEditor().get(i), i);
    for (int i = 0; i < element.getReviewer().size(); i++) composeContactDetail(t, "Library", "reviewer", element.getReviewer().get(i), i);
    for (int i = 0; i < element.getEndorser().size(); i++) composeContactDetail(t, "Library", "endorser", element.getEndorser().get(i), i);
    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);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Aggregations

DataRequirement (org.hl7.fhir.r4.model.DataRequirement)7 Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)6 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)6 Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)6 XhtmlNode (org.hl7.fhir.utilities.xhtml.XhtmlNode)6 FhirContext (ca.uhn.fhir.context.FhirContext)4 IParser (ca.uhn.fhir.parser.IParser)4 IOException (java.io.IOException)4 Library (org.hl7.fhir.r4.model.Library)4 org.hl7.fhir.r5.model (org.hl7.fhir.r5.model)4 FHIRFormatError (org.hl7.fhir.exceptions.FHIRFormatError)3 Bundle (org.hl7.fhir.r4.model.Bundle)3 IdType (org.hl7.fhir.r4.model.IdType)3 Parameters (org.hl7.fhir.r4.model.Parameters)3 StringType (org.hl7.fhir.r4.model.StringType)3 Attachment (org.hl7.fhir.r4b.model.Attachment)3 ContactPoint (org.hl7.fhir.r4b.model.ContactPoint)3 Attachment (org.hl7.fhir.r5.model.Attachment)3 ContactPoint (org.hl7.fhir.r5.model.ContactPoint)3 Test (org.junit.jupiter.api.Test)3