PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci@drug-formulary-2.1.0
    http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PayerInsurancePlanBulkDataGraphDefinition
description: A GraphDefinition defining a graph of resources to return in a query for a Formulary related Payer Insurance Plan Bulk Data request.
package_name: hl7.fhir.us.davinci
derivation: constraint
name: PayerInsurancePlanBulkDataGraphDefinition
type: GraphDefinition
elements:
  name:
    pattern: {type: String, value: PayerInsurancePlanGraphDefinition}
    index: 0
  status:
    pattern: {type: Code, value: active}
    index: 1
  start:
    pattern: {type: Code, value: InsurancePlan}
    index: 2
  profile:
    pattern: {type: Canonical, value: 'http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PayerInsurancePlan'}
    index: 3
  link:
    index: 4
    slicing:
      rules: open
      ordered: false
      description: Slice based on path pattern
      discriminator:
      - {path: path, type: pattern}
      min: null
      slices:
        location:
          match: {path: InsurancePlan.coverageArea}
          schema:
            array: true
            index: 5
            elements:
              path:
                pattern: {type: String, value: InsurancePlan.coverageArea}
                index: 6
              target:
                elements:
                  type:
                    pattern: {type: Code, value: Location}
                    index: 7
                  profile:
                    pattern: {type: Canonical, value: 'http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-InsurancePlanLocation'}
                    index: 8
            required: [path]
        formulary:
          match: {path: 'InsurancePlan.coverage.extension.where(url=http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyReference-extension).valueReference'}
          schema:
            array: true
            index: 9
            elements:
              path:
                pattern: {type: String, value: 'InsurancePlan.coverage.extension.where(url=http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyReference-extension).valueReference'}
                index: 10
              target:
                elements:
                  type:
                    pattern: {type: Code, value: InsurancePlan}
                    index: 11
                  profile:
                    pattern: {type: Canonical, value: 'http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Formulary'}
                    index: 12
                  link:
                    type: BackboneElement
                    index: 13
                    elements:
                      target:
                        elements:
                          type:
                            pattern: {type: Code, value: Basic}
                            index: 14
                          params:
                            pattern: {type: String, value: 'formulary={ref}'}
                            index: 15
                          profile:
                            pattern: {type: Canonical, value: 'http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyItem'}
                            index: 16
                          link:
                            type: BackboneElement
                            index: 17
                            elements:
                              path:
                                pattern: {type: String, value: Basic.subject}
                                index: 18
                              target:
                                elements:
                                  type:
                                    pattern: {type: Code, value: MedicationKnowledge}
                                    index: 19
                                  profile:
                                    pattern: {type: Canonical, value: 'http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug'}
                                    index: 20
            required: [path]
package_version: drug-formulary-2.1.0
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PayerInsurancePlanBulkDataGraphDefinition
base: http://hl7.org/fhir/StructureDefinition/GraphDefinition
version: 2.1.0