PackagesCanonicalsLogsProblems
    Packages
    SUPPORT.R4@3.0.0
    http://phr.kanta.fi/StructureDefinition/fiphr-sd-medicationstatement-r4
description: Finnish PHR profile for MedicationStatement Resource. Record of medication being taken by a patient.
package_name: SUPPORT.R4
derivation: constraint
name: FIPHRSDMedicationStatementR4
type: MedicationStatement
elements:
  category: {index: 21}
  meta:
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://phr.kanta.fi/StructureDefinition/fiphr-sd-medicationstatement-r4'}
        index: 0
    required: [profile]
  dosage:
    elements:
      site: {index: 53}
      method: {index: 55}
      maxDosePerLifetime: {index: 63}
      maxDosePerAdministration: {index: 62}
      route: {index: 54}
      timing: {index: 52}
      additionalInstruction:
        index: 50
        elements:
          coding: {index: 51}
      maxDosePerPeriod: {index: 61}
      doseAndRate:
        index: 56
        elements:
          dose:
            choices: []
            index: 58
          rate:
            choices: []
            index: 60
        required: [dose]
    required: [doseAndRate]
  derivedFrom: {index: 43}
  medication[x]:
    elements:
      coding:
        short: 'Finnish PHR: VNR coded medication'
        index: 25
        elements:
          system:
            short: 'Finnish PHR: VNR code system'
            pattern: {type: Uri, value: 'urn:oid:1.2.246.537.6.55'}
            index: 26
          version: {index: 27}
          code: {short: 'Finnish PHR: VNR code defined by VNR code system', index: 28}
          display: {index: 29}
          userSelected: {index: 30}
        required: [display, system, code]
      text: {short: 'Finnish PHR: Name of the medication', index: 31}
    required: [text]
  reasonCode:
    index: 44
    elements:
      coding: {index: 45}
  medicationCodeableConcept:
    type: CodeableConcept
    short: 'Finnish PHR: What medication was taken'
    choiceOf: medication
    index: 24
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, short: 'Finnish PHR: What medication was taken', choiceOf: medication, index: 24}
  statusReason:
    short: Reason why medication was not given
    binding: {strength: required, valueSet: 'http://phr.kanta.fi/ValueSet/fiphr-vs-reasonnottaken'}
    index: 15
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'urn:oid:1.2.246.537.6.600'}
            index: 16
          version: {index: 17}
          code: {index: 18}
          display: {index: 19}
          userSelected: {index: 20}
        required: [display, system, code]
  note:
    index: 47
    elements:
      author:
        choices: []
        index: 49
  extension:
    index: 3
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        creatingApplication:
          match: {url: null}
          schema: {type: Extension, url: 'http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication', index: 4}
  status: {short: 'FinnishPHR: A code representing the patient or other source''s judgment about the state of the medication used that this statement is about', index: 14}
  language: {index: 1}
  effective:
    short: The date/time period when the medication was taken
    choices: []
    index: 36
  identifier:
    index: 5
    elements:
      use: {index: 6}
      type: {index: 7}
      system: {index: 8}
      value: {index: 9}
      period: {index: 10}
      assigner: {index: 11}
    required: [value, system]
  dateAsserted: {index: 37}
  basedOn: {index: 12}
  partOf: {index: 13}
  informationSource:
    type: Reference
    refers: ['http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient']
    index: 38
    elements:
      reference: {index: 39}
      type: {index: 40}
      identifier: {index: 41}
      display: {index: 42}
    required: [reference]
  subject:
    type: Reference
    short: 'FinnishPHR: The person who is/was taking the medication.'
    refers: ['http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient']
    index: 32
    elements:
      reference: {index: 33}
      type: {index: 34}
    required: [reference]
  medication:
    short: 'Finnish PHR: What medication was taken'
    choices: [medicationCodeableConcept]
    index: 23
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            short: 'Finnish PHR: What medication was taken'
            choices: [medicationCodeableConcept]
            index: 23
  reasonReference: {index: 46}
  text: {index: 2}
package_version: 3.0.0
extensions:
  creatingApplication: {url: 'http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication', type: Extension, index: 4}
class: profile
kind: resource
url: http://phr.kanta.fi/StructureDefinition/fiphr-sd-medicationstatement-r4
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: '0.1'
required: [text, identifier, dateAsserted, language, effective]