PackagesCanonicalsLogsProblems
    Packages
    maccabi.maccabident.medicationrequest.r4@1.0.5
    http://fhir.maccabi-dent.com/StructureDefinition/maccabi-dent-medication-request
description: Maccabi Dent MedicationRequest
package_name: maccabi.maccabident.medicationrequest.r4
derivation: constraint
name: MaccabiDentMedicationRequest
type: MedicationRequest
elements:
  category:
    index: 5
    slicing:
      slices:
        il-core:
          match: {}
          schema:
            index: 5
            elements:
              coding:
                elements:
                  code:
                    pattern: {type: Code, value: community-hmo}
                    index: 6
                  display:
                    pattern: {type: String, value: Community Care/HMO}
                    index: 7
  encounter:
    elements:
      reference: {index: 16}
    required: [reference]
  medication[x]:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://yarpa.co.il/catalog'}
            index: 11
          code: {index: 12}
          userSelected:
            pattern: {type: Boolean, value: true}
            index: 13
        required: [system, code]
  dispenseRequest:
    elements:
      validityPeriod:
        index: 45
        elements:
          start: {index: 46}
        required: [start]
    required: [validityPeriod]
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 10
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 10}
  requester:
    elements:
      reference: {index: 17}
      type:
        pattern: {type: Uri, value: Practitioner}
        index: 18
    required: [reference, type]
  status:
    short: active | cancelled
    binding: {strength: required, valueSet: 'http://fhir.maccabi-dent.com/ValueSet/status-of-med-req'}
    index: 3
  id: {index: 0}
  dosageInstruction:
    index: 19
    elements:
      timing:
        index: 20
        elements:
          repeat:
            index: 21
            elements:
              bounds:
                choices: []
                index: 23
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    boundsDuration:
                      match: {}
                      schema:
                        choices: [boundsDuration]
                        index: 25
                      min: 0
                      max: 1
              boundsDuration:
                type: Duration
                choiceOf: bounds
                index: 26
                slicing:
                  slices:
                    boundsDuration:
                      match: {}
                      schema: {type: Duration, choiceOf: bounds, index: 26}
                      min: 0
                      max: 1
              bounds[x]:
                elements:
                  value: {index: 27}
                  system:
                    pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                    index: 28
                  code: {index: 29}
                required: [value, system, code]
              frequency: {index: 30}
              period:
                pattern: {type: Decimal, value: 1}
                index: 31
              periodUnit:
                pattern: {type: Code, value: d}
                index: 32
            required: [periodUnit, period, frequency]
        required: [repeat]
      site:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 33
      route:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 34
      method:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 35
      doseAndRate:
        index: 36
        elements:
          dose:
            choices: []
            index: 38
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: $this, type: type}
              min: 1
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    _required: true
                    index: 40
                  min: 1
                  max: 1
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 41
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, _required: true, index: 41}
                  min: 1
                  max: 1
          dose[x]:
            elements:
              value: {index: 42}
              system: {index: 43}
              code: {index: 44}
            required: [value, system, code]
        required: [doseQuantity, dose]
    required: [doseAndRate, timing]
  identifier:
    elements:
      system:
        pattern: {type: Uri, value: 'http://fhir.maccabi-dent.com/identifier/madication-request'}
        index: 1
      value: {index: 2}
    required: [value, system]
  intent:
    pattern: {type: Code, value: order}
    index: 4
  subject:
    elements:
      type:
        pattern: {type: Uri, value: Patient}
        index: 14
      identifier:
        elements:
          system:
            binding: {strength: required, valueSet: 'http://fhir.maccabi-dent.com/ValueSet/subjects-of-encounter'}
            index: 15
    required: [type]
  medication:
    choices: [medicationCodeableConcept]
    index: 9
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 9
package_version: 1.0.5
class: profile
kind: resource
url: http://fhir.maccabi-dent.com/StructureDefinition/maccabi-dent-medication-request
base: http://fhir.health.gov.il/StructureDefinition/il-core-medication-request
version: null
required: [dosageInstruction, id]