Search in sources :

Example 96 with Procedure

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

the class RdfParser method composeProcedureProcedureFocalDeviceComponent.

protected void composeProcedureProcedureFocalDeviceComponent(Complex parent, String parentType, String name, Procedure.ProcedureFocalDeviceComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "focalDevice", name, element, index);
    if (element.hasAction())
        composeCodeableConcept(t, "Procedure", "action", element.getAction(), -1);
    if (element.hasManipulated())
        composeReference(t, "Procedure", "manipulated", element.getManipulated(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 97 with Procedure

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

the class RdfParser method composeClaim.

protected void composeClaim(Complex parent, String parentType, String name, Claim element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "Claim", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Claim", "identifier", element.getIdentifier().get(i), i);
    if (element.hasStatusElement())
        composeEnum(t, "Claim", "status", element.getStatusElement(), -1);
    if (element.hasType())
        composeCodeableConcept(t, "Claim", "type", element.getType(), -1);
    if (element.hasSubType())
        composeCodeableConcept(t, "Claim", "subType", element.getSubType(), -1);
    if (element.hasUseElement())
        composeEnum(t, "Claim", "use", element.getUseElement(), -1);
    if (element.hasPatient())
        composeReference(t, "Claim", "patient", element.getPatient(), -1);
    if (element.hasBillablePeriod())
        composePeriod(t, "Claim", "billablePeriod", element.getBillablePeriod(), -1);
    if (element.hasCreatedElement())
        composeDateTime(t, "Claim", "created", element.getCreatedElement(), -1);
    if (element.hasEnterer())
        composeReference(t, "Claim", "enterer", element.getEnterer(), -1);
    if (element.hasInsurer())
        composeReference(t, "Claim", "insurer", element.getInsurer(), -1);
    if (element.hasProvider())
        composeReference(t, "Claim", "provider", element.getProvider(), -1);
    if (element.hasPriority())
        composeCodeableConcept(t, "Claim", "priority", element.getPriority(), -1);
    if (element.hasFundsReserve())
        composeCodeableConcept(t, "Claim", "fundsReserve", element.getFundsReserve(), -1);
    for (int i = 0; i < element.getRelated().size(); i++) composeClaimRelatedClaimComponent(t, "Claim", "related", element.getRelated().get(i), i);
    if (element.hasPrescription())
        composeReference(t, "Claim", "prescription", element.getPrescription(), -1);
    if (element.hasOriginalPrescription())
        composeReference(t, "Claim", "originalPrescription", element.getOriginalPrescription(), -1);
    if (element.hasPayee())
        composeClaimPayeeComponent(t, "Claim", "payee", element.getPayee(), -1);
    if (element.hasReferral())
        composeReference(t, "Claim", "referral", element.getReferral(), -1);
    if (element.hasFacility())
        composeReference(t, "Claim", "facility", element.getFacility(), -1);
    for (int i = 0; i < element.getCareTeam().size(); i++) composeClaimCareTeamComponent(t, "Claim", "careTeam", element.getCareTeam().get(i), i);
    for (int i = 0; i < element.getSupportingInfo().size(); i++) composeClaimSupportingInformationComponent(t, "Claim", "supportingInfo", element.getSupportingInfo().get(i), i);
    for (int i = 0; i < element.getDiagnosis().size(); i++) composeClaimDiagnosisComponent(t, "Claim", "diagnosis", element.getDiagnosis().get(i), i);
    for (int i = 0; i < element.getProcedure().size(); i++) composeClaimProcedureComponent(t, "Claim", "procedure", element.getProcedure().get(i), i);
    for (int i = 0; i < element.getInsurance().size(); i++) composeClaimInsuranceComponent(t, "Claim", "insurance", element.getInsurance().get(i), i);
    if (element.hasAccident())
        composeClaimAccidentComponent(t, "Claim", "accident", element.getAccident(), -1);
    for (int i = 0; i < element.getItem().size(); i++) composeClaimItemComponent(t, "Claim", "item", element.getItem().get(i), i);
    if (element.hasTotal())
        composeMoney(t, "Claim", "total", element.getTotal(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 98 with Procedure

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

the class RdfParser method composeClaimProcedureComponent.

protected void composeClaimProcedureComponent(Complex parent, String parentType, String name, Claim.ProcedureComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "procedure", name, element, index);
    if (element.hasSequenceElement())
        composePositiveInt(t, "Claim", "sequence", element.getSequenceElement(), -1);
    for (int i = 0; i < element.getType().size(); i++) composeCodeableConcept(t, "Claim", "type", element.getType().get(i), i);
    if (element.hasDateElement())
        composeDateTime(t, "Claim", "date", element.getDateElement(), -1);
    if (element.hasProcedure())
        composeType(t, "Claim", "procedure", element.getProcedure(), -1);
    for (int i = 0; i < element.getUdi().size(); i++) composeReference(t, "Claim", "udi", element.getUdi().get(i), i);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 99 with Procedure

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

the class RdfParser method composeMedicinalProductAuthorization.

protected void composeMedicinalProductAuthorization(Complex parent, String parentType, String name, MedicinalProductAuthorization element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "MedicinalProductAuthorization", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "MedicinalProductAuthorization", "identifier", element.getIdentifier().get(i), i);
    if (element.hasSubject())
        composeReference(t, "MedicinalProductAuthorization", "subject", element.getSubject(), -1);
    for (int i = 0; i < element.getCountry().size(); i++) composeCodeableConcept(t, "MedicinalProductAuthorization", "country", element.getCountry().get(i), i);
    for (int i = 0; i < element.getJurisdiction().size(); i++) composeCodeableConcept(t, "MedicinalProductAuthorization", "jurisdiction", element.getJurisdiction().get(i), i);
    if (element.hasStatus())
        composeCodeableConcept(t, "MedicinalProductAuthorization", "status", element.getStatus(), -1);
    if (element.hasStatusDateElement())
        composeDateTime(t, "MedicinalProductAuthorization", "statusDate", element.getStatusDateElement(), -1);
    if (element.hasRestoreDateElement())
        composeDateTime(t, "MedicinalProductAuthorization", "restoreDate", element.getRestoreDateElement(), -1);
    if (element.hasValidityPeriod())
        composePeriod(t, "MedicinalProductAuthorization", "validityPeriod", element.getValidityPeriod(), -1);
    if (element.hasDataExclusivityPeriod())
        composePeriod(t, "MedicinalProductAuthorization", "dataExclusivityPeriod", element.getDataExclusivityPeriod(), -1);
    if (element.hasDateOfFirstAuthorizationElement())
        composeDateTime(t, "MedicinalProductAuthorization", "dateOfFirstAuthorization", element.getDateOfFirstAuthorizationElement(), -1);
    if (element.hasInternationalBirthDateElement())
        composeDateTime(t, "MedicinalProductAuthorization", "internationalBirthDate", element.getInternationalBirthDateElement(), -1);
    if (element.hasLegalBasis())
        composeCodeableConcept(t, "MedicinalProductAuthorization", "legalBasis", element.getLegalBasis(), -1);
    for (int i = 0; i < element.getJurisdictionalAuthorization().size(); i++) composeMedicinalProductAuthorizationMedicinalProductAuthorizationJurisdictionalAuthorizationComponent(t, "MedicinalProductAuthorization", "jurisdictionalAuthorization", element.getJurisdictionalAuthorization().get(i), i);
    if (element.hasHolder())
        composeReference(t, "MedicinalProductAuthorization", "holder", element.getHolder(), -1);
    if (element.hasRegulator())
        composeReference(t, "MedicinalProductAuthorization", "regulator", element.getRegulator(), -1);
    if (element.hasProcedure())
        composeMedicinalProductAuthorizationMedicinalProductAuthorizationProcedureComponent(t, "MedicinalProductAuthorization", "procedure", element.getProcedure(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 100 with Procedure

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

the class RdfParser method composeClaim.

protected void composeClaim(Complex parent, String parentType, String name, Claim element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "Claim", name, element, index);
    if (element.hasTypeElement())
        composeEnum(t, "Claim", "type", element.getTypeElement(), -1);
    for (int i = 0; i < element.getSubType().size(); i++) composeCoding(t, "Claim", "subType", element.getSubType().get(i), i);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Claim", "identifier", element.getIdentifier().get(i), i);
    if (element.hasRuleset())
        composeCoding(t, "Claim", "ruleset", element.getRuleset(), -1);
    if (element.hasOriginalRuleset())
        composeCoding(t, "Claim", "originalRuleset", element.getOriginalRuleset(), -1);
    if (element.hasCreatedElement())
        composeDateTime(t, "Claim", "created", element.getCreatedElement(), -1);
    if (element.hasBillablePeriod())
        composePeriod(t, "Claim", "billablePeriod", element.getBillablePeriod(), -1);
    if (element.hasTarget())
        composeType(t, "Claim", "target", element.getTarget(), -1);
    if (element.hasProvider())
        composeType(t, "Claim", "provider", element.getProvider(), -1);
    if (element.hasOrganization())
        composeType(t, "Claim", "organization", element.getOrganization(), -1);
    if (element.hasUseElement())
        composeEnum(t, "Claim", "use", element.getUseElement(), -1);
    if (element.hasPriority())
        composeCoding(t, "Claim", "priority", element.getPriority(), -1);
    if (element.hasFundsReserve())
        composeCoding(t, "Claim", "fundsReserve", element.getFundsReserve(), -1);
    if (element.hasEnterer())
        composeType(t, "Claim", "enterer", element.getEnterer(), -1);
    if (element.hasFacility())
        composeType(t, "Claim", "facility", element.getFacility(), -1);
    for (int i = 0; i < element.getRelated().size(); i++) composeClaimRelatedClaimsComponent(t, "Claim", "related", element.getRelated().get(i), i);
    if (element.hasPrescription())
        composeType(t, "Claim", "prescription", element.getPrescription(), -1);
    if (element.hasOriginalPrescription())
        composeType(t, "Claim", "originalPrescription", element.getOriginalPrescription(), -1);
    if (element.hasPayee())
        composeClaimPayeeComponent(t, "Claim", "payee", element.getPayee(), -1);
    if (element.hasReferral())
        composeType(t, "Claim", "referral", element.getReferral(), -1);
    for (int i = 0; i < element.getOccurrenceCode().size(); i++) composeCoding(t, "Claim", "occurrenceCode", element.getOccurrenceCode().get(i), i);
    for (int i = 0; i < element.getOccurenceSpanCode().size(); i++) composeCoding(t, "Claim", "occurenceSpanCode", element.getOccurenceSpanCode().get(i), i);
    for (int i = 0; i < element.getValueCode().size(); i++) composeCoding(t, "Claim", "valueCode", element.getValueCode().get(i), i);
    for (int i = 0; i < element.getDiagnosis().size(); i++) composeClaimDiagnosisComponent(t, "Claim", "diagnosis", element.getDiagnosis().get(i), i);
    for (int i = 0; i < element.getProcedure().size(); i++) composeClaimProcedureComponent(t, "Claim", "procedure", element.getProcedure().get(i), i);
    for (int i = 0; i < element.getSpecialCondition().size(); i++) composeCoding(t, "Claim", "specialCondition", element.getSpecialCondition().get(i), i);
    if (element.hasPatient())
        composeType(t, "Claim", "patient", element.getPatient(), -1);
    for (int i = 0; i < element.getCoverage().size(); i++) composeClaimCoverageComponent(t, "Claim", "coverage", element.getCoverage().get(i), i);
    if (element.hasAccidentDateElement())
        composeDate(t, "Claim", "accidentDate", element.getAccidentDateElement(), -1);
    if (element.hasAccidentType())
        composeCoding(t, "Claim", "accidentType", element.getAccidentType(), -1);
    if (element.hasAccidentLocation())
        composeType(t, "Claim", "accidentLocation", element.getAccidentLocation(), -1);
    for (int i = 0; i < element.getInterventionException().size(); i++) composeCoding(t, "Claim", "interventionException", element.getInterventionException().get(i), i);
    for (int i = 0; i < element.getOnset().size(); i++) composeClaimOnsetComponent(t, "Claim", "onset", element.getOnset().get(i), i);
    if (element.hasEmploymentImpacted())
        composePeriod(t, "Claim", "employmentImpacted", element.getEmploymentImpacted(), -1);
    if (element.hasHospitalization())
        composePeriod(t, "Claim", "hospitalization", element.getHospitalization(), -1);
    for (int i = 0; i < element.getItem().size(); i++) composeClaimItemsComponent(t, "Claim", "item", element.getItem().get(i), i);
    if (element.hasTotal())
        composeQuantity(t, "Claim", "total", element.getTotal(), -1);
    for (int i = 0; i < element.getAdditionalMaterial().size(); i++) composeCoding(t, "Claim", "additionalMaterial", element.getAdditionalMaterial().get(i), i);
    for (int i = 0; i < element.getMissingTeeth().size(); i++) composeClaimMissingTeethComponent(t, "Claim", "missingTeeth", element.getMissingTeeth().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Aggregations

Procedure (org.hl7.fhir.r4.model.Procedure)22 Test (org.junit.jupiter.api.Test)19 CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)14 Coding (org.hl7.fhir.r4.model.Coding)14 ArrayList (java.util.ArrayList)12 Bundle (org.hl7.fhir.r4.model.Bundle)11 Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)11 Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)9 Reference (org.hl7.fhir.r4.model.Reference)9 ExplanationOfBenefit (org.hl7.fhir.dstu3.model.ExplanationOfBenefit)8 Turtle (org.hl7.fhir.dstu3.utils.formats.Turtle)8 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)8 CCWProcedure (gov.cms.bfd.server.war.commons.CCWProcedure)7 CodeableConcept (org.hl7.fhir.dstu3.model.CodeableConcept)7 Coding (org.hl7.fhir.dstu3.model.Coding)7 Date (java.util.Date)6 List (java.util.List)6 BundleEntryComponent (org.hl7.fhir.r4.model.Bundle.BundleEntryComponent)6 Diagnosis (gov.cms.bfd.server.war.commons.Diagnosis)5 Collectors (java.util.stream.Collectors)5