PackagesCanonicalsLogsProblems
    Packages
    maccabi.maccabident.medicationrequest.r4@1.0.2
    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: 4
    slicing:
      slices:
        il-core:
          match: {}
          schema:
            index: 4
            elements:
              coding:
                elements:
                  code:
                    pattern: {type: Code, value: community-hmo}
                    index: 5
                  display:
                    pattern: {type: String, value: Community Care/HMO}
                    index: 6
  encounter:
    elements:
      reference: {index: 15}
    required: [reference]
  medication[x]:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://yarpa.co.il/catalog'}
            index: 10
          code: {index: 11}
          userSelected:
            pattern: {type: Boolean, value: true}
            index: 12
        required: [system, code]
  dispenseRequest:
    elements:
      validityPeriod: {index: 43}
    required: [validityPeriod]
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 9
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 9}
  requester:
    elements:
      reference: {index: 16}
      type:
        pattern: {type: Uri, value: Practitioner}
        index: 17
    required: [reference, type]
  id: {index: 0}
  dosageInstruction:
    index: 18
    elements:
      timing:
        index: 19
        elements:
          repeat:
            index: 20
            elements:
              bounds:
                choices: []
                index: 22
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    boundsDuration:
                      match: {}
                      schema:
                        choices: [boundsDuration]
                        index: 24
                      min: 0
                      max: 1
              boundsDuration:
                type: Duration
                choiceOf: bounds
                index: 25
                slicing:
                  slices:
                    boundsDuration:
                      match: {}
                      schema: {type: Duration, choiceOf: bounds, index: 25}
                      min: 0
                      max: 1
              bounds[x]:
                elements:
                  value: {index: 26}
                  code:
                    pattern: {type: Code, value: d}
                    index: 27
                required: [value, code]
              frequency: {index: 28}
              period:
                pattern: {type: Decimal, value: 1}
                index: 29
              periodUnit:
                pattern: {type: Code, value: d}
                index: 30
            required: [periodUnit, period, frequency]
        required: [repeat]
      site:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 31
      route:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 32
      method:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                index: 33
      doseAndRate:
        index: 34
        elements:
          dose:
            choices: []
            index: 36
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: $this, type: type}
              min: 1
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    _required: true
                    index: 38
                  min: 1
                  max: 1
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 39
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, _required: true, index: 39}
                  min: 1
                  max: 1
          dose[x]:
            elements:
              value: {index: 40}
              system: {index: 41}
              code: {index: 42}
            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: 3
  subject:
    elements:
      type:
        pattern: {type: Uri, value: Patient}
        index: 13
      identifier:
        elements:
          system:
            binding: {strength: required, valueSet: 'http://fhir.maccabi-dent.com/ValueSet/subjects-of-encounter'}
            index: 14
    required: [type]
  medication:
    choices: [medicationCodeableConcept]
    index: 8
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 8
package_version: 1.0.2
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]