PackagesCanonicalsLogsProblems
    Packages
    HL7Norway.STU3.no.basis@1.0.2
    http://hl7.no/fhir/StructureDefinition/no-basis-MedicationStatement
description: null
package_name: HL7Norway.STU3.no.basis
derivation: constraint
name: no-basis-MedicationStatement
type: MedicationStatement
elements:
  identifier:
    index: 0
    slicing:
      rules: openAtEnd
      ordered: true
      discriminator:
      - {path: type.text, type: value}
      min: null
      slices:
        PLL-id:
          match:
            type: {text: PLL}
          schema:
            index: 1
            elements:
              use: {index: 2}
              type:
                pattern:
                  type: CodeableConcept
                  value: {text: PLL}
                index: 3
                elements:
                  text:
                    pattern: {type: String, value: PLL}
                    index: 4
                required: [text]
              system: {index: 5}
              value: {index: 6}
              period: {index: 7}
              assigner: {index: 8}
            required: [value, type]
  status: {index: 9}
  medication:
    choices: [medicationCodeableConcept, medicationReference, medicationReference]
    index: 11
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 12}
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    index: 13
  subject:
    type: Reference
    refers: ['http://ehelse.no/fhir/StructureDefinition/no-basis-Patient', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 15
  reasonCode:
    index: 16
    slicing:
      rules: open
      discriminator:
      - {path: coding.system, type: value}
      min: null
      slices:
        ICPC2:
          match:
            coding: {system: 'http://ehelse.no/volven/7170'}
          schema:
            index: 17
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://ehelse.no/volven/7170'}
                    index: 18
                  code: {index: 19}
                  display: {index: 20}
                required: [display, system, code]
        ICD10:
          match:
            coding: {system: 'http://ehelse.no/volven/7110'}
          schema:
            index: 21
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://ehelse.no/volven/7110'}
                    index: 22
                  code: {index: 23}
                  display: {index: 24}
                required: [display, system, code]
package_version: 1.0.2
class: profile
kind: resource
url: http://hl7.no/fhir/StructureDefinition/no-basis-MedicationStatement
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: '0.1'