PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.res.medication.r4@1.0.0
    http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListList
description: Lääkityslistan palautuksessa käytettävä MedicationListList-profiili.
package_name: fi.kela.kanta.res.medication.r4
derivation: constraint
name: MedicationListList
type: List
elements:
  date: {index: 15}
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListList'}
        index: 1
    required: [profile]
  encounter: {index: 14}
  orderedBy: {index: 17}
  mode:
    pattern: {type: Code, value: working}
    index: 10
  source: {index: 16}
  title: {index: 11}
  note: {index: 18}
  emptyReason: {index: 29}
  extension:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        continuum:
          match: {url: null}
          schema:
            isModifier: false
            short: Käytössä olevan lääkkeen tunniste ja lääkejatkumon osatunniste
            type: Extension
            url: http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum
            index: 3
            extensions:
              medicineId: {url: null, min: 1, max: 1, _required: true, index: 5}
              medicineIdPart: {url: null, min: 1, max: 1, _required: true, index: 6}
              newest: {url: null, min: 0, max: 0, index: 7}
            elements:
              extension:
                array: true
                min: 2
                index: 4
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 2
                  slices:
                    medicineId:
                      match: {url: null}
                      schema: {_required: true, index: 5}
                      min: 1
                      max: 1
                    medicineIdPart:
                      match: {url: null}
                      schema: {_required: true, index: 6}
                      min: 1
                      max: 1
                    newest:
                      match: {url: null}
                      schema: {index: 7}
                      min: 0
                      max: 0
  status:
    pattern: {type: Code, value: current}
    index: 9
  code: {index: 12}
  identifier: {index: 8}
  entry:
    elements:
      item:
        short: Viittaus resurssi-instanssiin, johon List liittyy
        index: 19
        slicing:
          rules: open
          discriminator:
          - {path: reference, type: value}
          min: null
          slices:
            ItemMedicationRequest:
              match: {reference: 'http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest'}
              schema:
                type: Reference
                short: Viittaus lääkemääräykseen
                refers: ['http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest']
                index: 20
                elements:
                  reference:
                    short: MedicationListMedicationRequest profiilin URL
                    pattern: {type: String, value: 'http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationRequest'}
                    index: 21
                  type:
                    short: MedicationRequest
                    pattern: {type: Uri, value: MedicationRequest}
                    index: 22
                required: [reference, type]
            ItemMedicationDispense:
              match: {reference: 'http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationDispense'}
              schema:
                type: Reference
                short: Viittaus lääkemääräyksen toimitukseen
                refers: ['http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationDispense']
                index: 23
                elements:
                  reference:
                    short: MedicationListMedicationDispense profiilin URL
                    pattern: {type: String, value: 'http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedicationDispense'}
                    index: 24
                  type:
                    short: MedicationDispense
                    pattern: {type: Uri, value: MedicationDispense}
                    index: 25
                required: [reference, type]
            ItemDiscontinuationMedicationRequest:
              match: {reference: 'http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListDiscontinuationMedicationRequest'}
              schema:
                type: Reference
                short: Viittaus lääkkeen lopettamismerkintään
                refers: ['http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListDiscontinuationMedicationRequest']
                index: 26
                elements:
                  reference:
                    short: MedicationListDiscontinuationMedicationRequest profiilin URL
                    pattern: {type: String, value: 'http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListDiscontinuationMedicationRequest'}
                    index: 27
                  type:
                    short: MedicationRequest
                    pattern: {type: Uri, value: MedicationRequest}
                    index: 28
                required: [reference, type]
  subject: {index: 13}
package_version: 1.0.0
extensions:
  continuum:
    url: http://resepti.kanta.fi/fhir/StructureDefinition/extension/continuum
    isModifier: false
    short: Käytössä olevan lääkkeen tunniste ja lääkejatkumon osatunniste
    type: Extension
    index: 3
    extensions:
      medicineId: {url: null, min: 1, max: 1, _required: true, index: 5}
      medicineIdPart: {url: null, min: 1, max: 1, _required: true, index: 6}
      newest: {url: null, min: 0, max: 0, index: 7}
    elements:
      extension:
        array: true
        min: 2
        index: 4
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 2
          slices:
            medicineId:
              match: {url: null}
              schema: {_required: true, index: 5}
              min: 1
              max: 1
            medicineIdPart:
              match: {url: null}
              schema: {_required: true, index: 6}
              min: 1
              max: 1
            newest:
              match: {url: null}
              schema: {index: 7}
              min: 0
              max: 0
class: profile
kind: resource
url: http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListList
base: http://hl7.org/fhir/StructureDefinition/List
version: 0,1
required: [extension]