Search in sources :

Example 56 with Contract

use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeEligibilityResponse.

protected void composeEligibilityResponse(Complex parent, String parentType, String name, EligibilityResponse element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "EligibilityResponse", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "EligibilityResponse", "identifier", element.getIdentifier().get(i), i);
    if (element.hasRequest())
        composeType(t, "EligibilityResponse", "request", element.getRequest(), -1);
    if (element.hasOutcomeElement())
        composeEnum(t, "EligibilityResponse", "outcome", element.getOutcomeElement(), -1);
    if (element.hasDispositionElement())
        composeString(t, "EligibilityResponse", "disposition", element.getDispositionElement(), -1);
    if (element.hasRuleset())
        composeCoding(t, "EligibilityResponse", "ruleset", element.getRuleset(), -1);
    if (element.hasOriginalRuleset())
        composeCoding(t, "EligibilityResponse", "originalRuleset", element.getOriginalRuleset(), -1);
    if (element.hasCreatedElement())
        composeDateTime(t, "EligibilityResponse", "created", element.getCreatedElement(), -1);
    if (element.hasOrganization())
        composeType(t, "EligibilityResponse", "organization", element.getOrganization(), -1);
    if (element.hasRequestProvider())
        composeType(t, "EligibilityResponse", "requestProvider", element.getRequestProvider(), -1);
    if (element.hasRequestOrganization())
        composeType(t, "EligibilityResponse", "requestOrganization", element.getRequestOrganization(), -1);
    if (element.hasInforceElement())
        composeBoolean(t, "EligibilityResponse", "inforce", element.getInforceElement(), -1);
    if (element.hasContract())
        composeReference(t, "EligibilityResponse", "contract", element.getContract(), -1);
    if (element.hasForm())
        composeCoding(t, "EligibilityResponse", "form", element.getForm(), -1);
    for (int i = 0; i < element.getBenefitBalance().size(); i++) composeEligibilityResponseBenefitsComponent(t, "EligibilityResponse", "benefitBalance", element.getBenefitBalance().get(i), i);
    for (int i = 0; i < element.getError().size(); i++) composeEligibilityResponseErrorsComponent(t, "EligibilityResponse", "error", element.getError().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 57 with Contract

use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeContractTermComponent.

protected void composeContractTermComponent(Complex parent, String parentType, String name, Contract.TermComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "term", name, element, index);
    if (element.hasIdentifier())
        composeIdentifier(t, "Contract", "identifier", element.getIdentifier(), -1);
    if (element.hasIssuedElement())
        composeDateTime(t, "Contract", "issued", element.getIssuedElement(), -1);
    if (element.hasApplies())
        composePeriod(t, "Contract", "applies", element.getApplies(), -1);
    if (element.hasType())
        composeCodeableConcept(t, "Contract", "type", element.getType(), -1);
    if (element.hasSubType())
        composeCodeableConcept(t, "Contract", "subType", element.getSubType(), -1);
    for (int i = 0; i < element.getTopic().size(); i++) composeReference(t, "Contract", "topic", element.getTopic().get(i), i);
    for (int i = 0; i < element.getAction().size(); i++) composeCodeableConcept(t, "Contract", "action", element.getAction().get(i), i);
    for (int i = 0; i < element.getActionReason().size(); i++) composeCodeableConcept(t, "Contract", "actionReason", element.getActionReason().get(i), i);
    for (int i = 0; i < element.getAgent().size(); i++) composeContractTermAgentComponent(t, "Contract", "agent", element.getAgent().get(i), i);
    if (element.hasTextElement())
        composeString(t, "Contract", "text", element.getTextElement(), -1);
    for (int i = 0; i < element.getValuedItem().size(); i++) composeContractTermValuedItemComponent(t, "Contract", "valuedItem", element.getValuedItem().get(i), i);
    for (int i = 0; i < element.getGroup().size(); i++) composeContractTermComponent(t, "Contract", "group", element.getGroup().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 58 with Contract

use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeContractAssetContextComponent.

protected void composeContractAssetContextComponent(Complex parent, String parentType, String name, Contract.AssetContextComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "context", name, element, index);
    if (element.hasReference())
        composeReference(t, "Contract", "reference", element.getReference(), -1);
    for (int i = 0; i < element.getCode().size(); i++) composeCodeableConcept(t, "Contract", "code", element.getCode().get(i), i);
    if (element.hasTextElement())
        composeString(t, "Contract", "text", element.getTextElement(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 59 with Contract

use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeContractTermComponent.

protected void composeContractTermComponent(Complex parent, String parentType, String name, Contract.TermComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "term", name, element, index);
    if (element.hasIdentifier())
        composeIdentifier(t, "Contract", "identifier", element.getIdentifier(), -1);
    if (element.hasIssuedElement())
        composeDateTime(t, "Contract", "issued", element.getIssuedElement(), -1);
    if (element.hasApplies())
        composePeriod(t, "Contract", "applies", element.getApplies(), -1);
    if (element.hasTopic())
        composeType(t, "Contract", "topic", element.getTopic(), -1);
    if (element.hasType())
        composeCodeableConcept(t, "Contract", "type", element.getType(), -1);
    if (element.hasSubType())
        composeCodeableConcept(t, "Contract", "subType", element.getSubType(), -1);
    if (element.hasTextElement())
        composeString(t, "Contract", "text", element.getTextElement(), -1);
    for (int i = 0; i < element.getSecurityLabel().size(); i++) composeContractSecurityLabelComponent(t, "Contract", "securityLabel", element.getSecurityLabel().get(i), i);
    if (element.hasOffer())
        composeContractContractOfferComponent(t, "Contract", "offer", element.getOffer(), -1);
    for (int i = 0; i < element.getAsset().size(); i++) composeContractContractAssetComponent(t, "Contract", "asset", element.getAsset().get(i), i);
    for (int i = 0; i < element.getAction().size(); i++) composeContractActionComponent(t, "Contract", "action", element.getAction().get(i), i);
    for (int i = 0; i < element.getGroup().size(); i++) composeContractTermComponent(t, "Contract", "group", element.getGroup().get(i), i);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Aggregations

Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)17 Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)12 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)12 Timer (com.codahale.metrics.Timer)6 Test (org.junit.jupiter.api.Test)6 ContractDTO (gov.cms.ab2d.common.dto.ContractDTO)4 CoverageMapping (gov.cms.ab2d.coverage.model.CoverageMapping)4 CoverageSearch (gov.cms.ab2d.coverage.model.CoverageSearch)4 ContractToContractCoverageMapping (gov.cms.ab2d.worker.config.ContractToContractCoverageMapping)4 ArrayList (java.util.ArrayList)4 CoveragePeriod (gov.cms.ab2d.coverage.model.CoveragePeriod)3 CoverageSearchEvent (gov.cms.ab2d.coverage.model.CoverageSearchEvent)3 Coverage (org.hl7.fhir.dstu3.model.Coverage)3 Job (gov.cms.ab2d.common.model.Job)2 PdpClient (gov.cms.ab2d.common.model.PdpClient)2 Identifiers (gov.cms.ab2d.coverage.model.Identifiers)2 LogManager (gov.cms.ab2d.eventlogger.LogManager)2 BundleUtils.createPatient (gov.cms.ab2d.worker.processor.BundleUtils.createPatient)2 CcwCodebookVariable (gov.cms.bfd.model.codebook.data.CcwCodebookVariable)2 HashMap (java.util.HashMap)2