PackagesCanonicalsLogsProblems
    Packages
    bonsai.first.test.r4@0.1.3
    http://electronichealth.se/fhir/StructureDefinition/NLLMedicationRequest
description: null
package_name: bonsai.first.test.r4
derivation: constraint
name: NLLMedicationRequest
type: MedicationRequest
elements:
  meta:
    mustSupport: true
    index: 1
    elements:
      versionId: {mustSupport: true, index: 2}
      security:
        binding: {strength: extensible, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/security-labels'}
        mustSupport: true
        index: 3
        elements:
          system: {mustSupport: true, index: 4}
          version: {mustSupport: true, index: 5}
          code: {mustSupport: true, index: 6}
  substitution:
    mustSupport: true
    index: 121
    elements:
      allowed:
        mustSupport: true
        meaningWhenMissing: A missing value is the same as substitution allowed
        choices: [allowedBoolean]
        index: 123
      allowedBoolean: {type: boolean, mustSupport: true, meaningWhenMissing: A missing value is the same as substitution allowed, choiceOf: allowed, index: 124}
  detectedIssue:
    type: Reference
    short: Automatic Format and Constitution Control warning (AFF-varning)
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLDetectedIssue']
    index: 126
  medication[x]:
    elements:
      coding:
        mustSupport: true
        index: 43
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            nplid:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/nplid'}
              schema:
                short: NPL-id
                mustSupport: true
                index: 44
                elements:
                  system:
                    pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplid'}
                    mustSupport: true
                    type: uri
                    index: 45
                  code: {mustSupport: true, index: 46}
                required: [code, system]
            nplpackid:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'}
              schema:
                short: NPL-pack-id
                mustSupport: true
                index: 47
                elements:
                  system:
                    pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/nplpackid'}
                    mustSupport: true
                    type: uri
                    index: 48
                  code: {mustSupport: true, index: 49}
                required: [code, system]
            varunr:
              match: {system: 'http://electronichealth.se/fhir/NamingSystem/varunr'}
              schema:
                short: Varunummer
                mustSupport: true
                index: 50
                elements:
                  system:
                    pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/varunr'}
                    mustSupport: true
                    type: uri
                    index: 51
                  code: {mustSupport: true, index: 52}
                required: [code, system]
      text: {short: Information about the prescribed article, maxLength: 255, mustSupport: true, index: 53}
    required: [coding]
  dispenseRequest:
    mustSupport: true
    index: 74
    extensions:
      nllNumberOfFillsRemaining: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfFillsRemaining', max: 1, short: Number of fills remaining, type: Extension, mustSupport: true, index: 94}
      nllReceivingPharmacy: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPharmacyReference', max: 1, short: Receiving Pharmacy, type: Extension, mustSupport: true, index: 95}
      nllBenefitDetails:
        url: http://electronichealth.se/fhir/StructureDefinition/NLLBenefitDetails
        type: Extension
        short: Benefit calculation information
        mustSupport: true
        index: 90
        extensions:
          dailyBenefitQuantityUnfeasible: {url: null, short: Indication if daily quantity can't be calculated, mustSupport: true, index: 91}
          dailyBenefitQuantity: {url: null, mustSupport: true, index: 92}
          nextDispenseWithinBenefit: {url: null, mustSupport: true, index: 93}
        elements:
          extension:
            short: Indication if daily quantity can't be calculated
            mustSupport: true
            index: 91
            slicing:
              slices:
                dailyBenefitQuantityUnfeasible:
                  match: {}
                  schema: {short: Indication if daily quantity can't be calculated, mustSupport: true, index: 91}
                dailyBenefitQuantity:
                  match: {}
                  schema: {mustSupport: true, index: 92}
                nextDispenseWithinBenefit:
                  match: {}
                  schema: {mustSupport: true, index: 93}
      nllNumberOfDispensesAllowed: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfDispensesAllowed', max: 1, short: Number of dispenses allowed, type: Extension, mustSupport: true, index: 101}
      nllPrescriptionCommunicableDiseasesAct: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionCommunicableDiseasesAct', type: Extension, short: Prescription according to the Communicable Diseases Act, mustSupport: true, index: 78}
      nllConditionsPharmaceuticalBenefitsAct: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLConditionsPharmaceuticalBenefitsAct', type: Extension, short: Pharmaceutical benefits act conditions, mustSupport: true, index: 80}
      nllTotalQuantity:
        url: http://electronichealth.se/fhir/StructureDefinition/NLLTotalQuantity
        type: Extension
        short: Amount of medication to supply in total
        mustSupport: true
        index: 81
        extensions:
          prescribed:
            url: null
            short: Total amount prescribed
            mustSupport: true
            index: 82
            elements:
              value:
                choices: []
                index: 84
              value[x]:
                elements:
                  value: {mustSupport: true, index: 85}
            required: [value]
          remaining:
            url: null
            short: Quantity remaining
            mustSupport: true
            index: 86
            elements:
              value:
                choices: []
                index: 88
              value[x]:
                elements:
                  value: {mustSupport: true, index: 89}
            required: [value]
        elements:
          extension:
            short: Total amount prescribed
            mustSupport: true
            index: 82
            slicing:
              slices:
                prescribed:
                  match: {}
                  schema:
                    short: Total amount prescribed
                    mustSupport: true
                    index: 82
                    elements:
                      value:
                        choices: []
                        index: 84
                      value[x]:
                        elements:
                          value: {mustSupport: true, index: 85}
                    required: [value]
                remaining:
                  match: {}
                  schema:
                    short: Quantity remaining
                    mustSupport: true
                    index: 86
                    elements:
                      value:
                        choices: []
                        index: 88
                      value[x]:
                        elements:
                          value: {mustSupport: true, index: 89}
                    required: [value]
      nllNumberOfPackagesPrescribed: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesPrescribed', max: 1, short: Number of packages prescribed per dispense, type: Extension, mustSupport: true, index: 76}
      nllPrescriberCostCenter:
        url: http://electronichealth.se/fhir/StructureDefinition/NLLPrescriberCostCenter
        short: The prescribers cost center
        type: Extension
        mustSupport: true
        index: 96
        elements:
          value:
            choices: []
            index: 98
          value[x]:
            elements:
              value: {maxLength: 13, index: 99}
      nllNextDateDispenseInterval:
        url: http://electronichealth.se/fhir/StructureDefinition/NLLNextDateDispenseInterval
        type: Extension
        isModifier: false
        mustSupport: true
        index: 102
        elements:
          url:
            pattern: {type: uri, value: 'http://electronichealth.se/fhir/StructureDefinition/nllNextDateDispenseInterval'}
            type: uri
            index: 103
      nllDosePackaging: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDosePackaging', min: 1, short: Dose dispensed prescription, type: Extension, mustSupport: true, index: 77}
      nllSubstitutionOpposed:
        url: http://electronichealth.se/fhir/StructureDefinition/NLLSubstitutionOpposed
        short: Substitution opposed
        type: Extension
        mustSupport: true
        binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/substitution-opposition-types'}
        index: 100
      nllPatientPharmaceuticalBenefitsAct: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPatientPharmaceuticalBenefitsAct', min: 1, short: Patient eligible to benefits, type: Extension, mustSupport: true, index: 79}
    elements:
      extension:
        array: true
        min: 3
        index: 75
        slicing:
          slices:
            nllNumberOfFillsRemaining:
              match: {}
              schema: {short: Number of fills remaining, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfFillsRemaining', index: 94}
              max: 1
            nllReceivingPharmacy:
              match: {}
              schema: {short: Receiving Pharmacy, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPharmacyReference', index: 95}
              max: 1
            nllBenefitDetails:
              match: {}
              schema:
                type: Extension
                short: Benefit calculation information
                mustSupport: true
                url: http://electronichealth.se/fhir/StructureDefinition/NLLBenefitDetails
                index: 90
                extensions:
                  dailyBenefitQuantityUnfeasible: {url: null, short: Indication if daily quantity can't be calculated, mustSupport: true, index: 91}
                  dailyBenefitQuantity: {url: null, mustSupport: true, index: 92}
                  nextDispenseWithinBenefit: {url: null, mustSupport: true, index: 93}
                elements:
                  extension:
                    short: Indication if daily quantity can't be calculated
                    mustSupport: true
                    index: 91
                    slicing:
                      slices:
                        dailyBenefitQuantityUnfeasible:
                          match: {}
                          schema: {short: Indication if daily quantity can't be calculated, mustSupport: true, index: 91}
                        dailyBenefitQuantity:
                          match: {}
                          schema: {mustSupport: true, index: 92}
                        nextDispenseWithinBenefit:
                          match: {}
                          schema: {mustSupport: true, index: 93}
            nllNumberOfDispensesAllowed:
              match: {}
              schema: {short: Number of dispenses allowed, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfDispensesAllowed', index: 101}
              max: 1
            nllPrescriptionCommunicableDiseasesAct:
              match: {}
              schema: {type: Extension, short: Prescription according to the Communicable Diseases Act, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionCommunicableDiseasesAct', index: 78}
            nllConditionsPharmaceuticalBenefitsAct:
              match: {}
              schema: {type: Extension, short: Pharmaceutical benefits act conditions, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLConditionsPharmaceuticalBenefitsAct', index: 80}
            nllTotalQuantity:
              match: {}
              schema:
                type: Extension
                short: Amount of medication to supply in total
                mustSupport: true
                url: http://electronichealth.se/fhir/StructureDefinition/NLLTotalQuantity
                index: 81
                extensions:
                  prescribed:
                    url: null
                    short: Total amount prescribed
                    mustSupport: true
                    index: 82
                    elements:
                      value:
                        choices: []
                        index: 84
                      value[x]:
                        elements:
                          value: {mustSupport: true, index: 85}
                    required: [value]
                  remaining:
                    url: null
                    short: Quantity remaining
                    mustSupport: true
                    index: 86
                    elements:
                      value:
                        choices: []
                        index: 88
                      value[x]:
                        elements:
                          value: {mustSupport: true, index: 89}
                    required: [value]
                elements:
                  extension:
                    short: Total amount prescribed
                    mustSupport: true
                    index: 82
                    slicing:
                      slices:
                        prescribed:
                          match: {}
                          schema:
                            short: Total amount prescribed
                            mustSupport: true
                            index: 82
                            elements:
                              value:
                                choices: []
                                index: 84
                              value[x]:
                                elements:
                                  value: {mustSupport: true, index: 85}
                            required: [value]
                        remaining:
                          match: {}
                          schema:
                            short: Quantity remaining
                            mustSupport: true
                            index: 86
                            elements:
                              value:
                                choices: []
                                index: 88
                              value[x]:
                                elements:
                                  value: {mustSupport: true, index: 89}
                            required: [value]
            nllNumberOfPackagesPrescribed:
              match: {}
              schema: {short: Number of packages prescribed per dispense, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesPrescribed', index: 76}
              max: 1
            nllPrescriberCostCenter:
              match: {}
              schema:
                short: The prescribers cost center
                type: Extension
                mustSupport: true
                url: http://electronichealth.se/fhir/StructureDefinition/NLLPrescriberCostCenter
                index: 96
                elements:
                  value:
                    choices: []
                    index: 98
                  value[x]:
                    elements:
                      value: {maxLength: 13, index: 99}
            nllNextDateDispenseInterval:
              match: {}
              schema:
                type: Extension
                isModifier: false
                mustSupport: true
                url: http://electronichealth.se/fhir/StructureDefinition/NLLNextDateDispenseInterval
                index: 102
                elements:
                  url:
                    pattern: {type: uri, value: 'http://electronichealth.se/fhir/StructureDefinition/nllNextDateDispenseInterval'}
                    type: uri
                    index: 103
            nllDosePackaging:
              match: {}
              schema: {short: Dose dispensed prescription, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLDosePackaging', index: 77}
              min: 1
            nllSubstitutionOpposed:
              match: {}
              schema:
                short: Substitution opposed
                type: Extension
                mustSupport: true
                binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/substitution-opposition-types'}
                url: http://electronichealth.se/fhir/StructureDefinition/NLLSubstitutionOpposed
                index: 100
            nllPatientPharmaceuticalBenefitsAct:
              match: {}
              schema: {short: Patient eligible to benefits, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPatientPharmaceuticalBenefitsAct', index: 79}
              min: 1
      initialFill:
        short: Indication for Trial Fill
        mustSupport: true
        index: 104
        elements:
          quantity:
            short: Trial fill quantity, one package
            mustSupport: true
            index: 105
            elements:
              value:
                mustSupport: true
                pattern: {type: decimal, value: 1}
                type: decimal
                index: 106
              unit:
                pattern: {type: string, value: Package}
                mustSupport: true
                type: string
                index: 107
              system:
                pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                mustSupport: true
                type: uri
                index: 108
              code:
                pattern: {type: code, value: '{Package}'}
                mustSupport: true
                type: code
                index: 109
            required: [code, value]
          duration: {index: 110}
        required: [quantity]
      dispenseInterval:
        mustSupport: true
        index: 111
        elements:
          value: {mustSupport: true, index: 112}
          system: {mustSupport: true, index: 113}
          code:
            binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/dispense-interval-units'}
            mustSupport: true
            index: 114
        required: [code, value]
      validityPeriod:
        mustSupport: true
        index: 115
        extensions:
          nllFirstDispenseBefore: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLFirstDispenseBefore', max: 1, short: First dispense must occur before, type: Extension, mustSupport: true, index: 116}
        elements:
          extension:
            short: First dispense must occur before
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/StructureDefinition/NLLFirstDispenseBefore
            index: 116
            slicing:
              slices:
                nllFirstDispenseBefore:
                  match: {}
                  schema: {short: First dispense must occur before, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLFirstDispenseBefore', index: 116}
                  max: 1
          end: {short: Last date when dispensing is allowed, mustSupport: true, index: 117}
      numberOfRepeatsAllowed: {mustSupport: true, index: 118}
      quantity:
        mustSupport: true
        index: 119
        elements:
          value: {mustSupport: true, index: 120}
  reasonCode:
    short: Reason for the treatment
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/nll-snomed-behandlingsorsak'}
    mustSupport: true
    index: 57
    extensions:
      nlldataAbsentReason:
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
        isModifier: false
        short: masked
        type: Extension
        mustSupport: true
        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
        index: 58
        elements:
          value:
            short: Masked
            choices: []
            index: 60
    elements:
      extension:
        isModifier: false
        short: masked
        type: Extension
        mustSupport: true
        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
        index: 58
        slicing:
          slices:
            nlldataAbsentReason:
              match: {}
              schema:
                isModifier: false
                short: masked
                type: Extension
                mustSupport: true
                binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/data-absent-reason'}
                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                index: 58
                elements:
                  value:
                    short: Masked
                    choices: []
                    index: 60
      coding:
        mustSupport: true
        index: 61
        elements:
          system: {mustSupport: true, index: 62}
          version: {mustSupport: true, index: 63}
          code: {mustSupport: true, index: 64}
        required: [code]
      text: {short: Other reason, mustSupport: true, index: 65}
    required: [coding]
  medicationCodeableConcept: {type: CodeableConcept, short: Prescribed article, mustSupport: true, choiceOf: medication, index: 42}
  statusReason:
    binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/medication-request-status-reasons'}
    mustSupport: true
    index: 33
    elements:
      coding:
        mustSupport: true
        index: 34
        elements:
          system: {mustSupport: true, index: 35}
          version: {mustSupport: true, index: 36}
          code: {mustSupport: true, index: 37}
        required: [code, system]
  authoredOn: {short: When prescription was initially authored, mustSupport: true, index: 55}
  note:
    type: Annotation
    mustSupport: true
    array: true
    max: 4
    index: 66
    extensions:
      nllMedReqNoteType: {url: null, short: Type of note, index: 67}
    elements:
      extension:
        short: Type of note
        index: 67
        slicing:
          slices:
            nllMedReqNoteType:
              match: {}
              schema: {short: Type of note, index: 67}
      text: {index: 68}
  extension:
    array: true
    min: 2
    index: 7
    slicing:
      slices:
        nllPatientTreatmentReason:
          match: {}
          schema: {short: The treatment reason described for the patient, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPatientTreatmentReason', index: 8}
          max: 1
        nllPrescriptionChain:
          match: {}
          schema: {short: Prescription chain id, type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionChain', index: 9}
          max: 1
        nllRegistrationBasis:
          match: {}
          schema:
            short: Format when the prescription was registered
            type: Extension
            mustSupport: true
            binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/registration-basis'}
            url: http://electronichealth.se/fhir/StructureDefinition/NLLRegistrationBasis
            index: 14
          min: 1
          max: 1
        nllTidigareOrdinationsid:
          match: {}
          schema: {short: Tidigare OrdinationsId OR (Receptdepå human), type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLTidigareOrdinationsid', index: 21}
          max: 1
        nllUsageDates:
          match: {}
          schema:
            type: Extension
            short: Usage dates
            mustSupport: true
            url: http://electronichealth.se/fhir/StructureDefinition/NLLUsageDates
            index: 15
            extensions:
              usageStartDate: {url: null, short: When the patient should start using the medication., mustSupport: true, index: 16}
              usageEndDate: {url: null, short: When the patient should stop using the medication., mustSupport: true, index: 17}
              scheduleStartDate: {url: null, mustSupport: true, index: 18}
            elements:
              extension:
                short: When the patient should start using the medication.
                mustSupport: true
                index: 16
                slicing:
                  slices:
                    usageStartDate:
                      match: {}
                      schema: {short: When the patient should start using the medication., mustSupport: true, index: 16}
                    usageEndDate:
                      match: {}
                      schema: {short: When the patient should stop using the medication., mustSupport: true, index: 17}
                    scheduleStartDate:
                      match: {}
                      schema: {mustSupport: true, index: 18}
        nllPrescriptionFormat:
          match: {}
          schema:
            short: Current prescription format
            type: Extension
            mustSupport: true
            binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/prescription-formats'}
            url: http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionFormat
            index: 10
          min: 1
          max: 1
        nllTreatmentDates:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://electronichealth.se/fhir/StructureDefinition/NLLTreatmentDates
            index: 11
            extensions:
              treatmentReviewDate: {url: null, short: Treatment review date, mustSupport: true, index: 12}
              treatmentEndDate: {url: null, short: Treatment end date, mustSupport: true, index: 13}
            elements:
              extension:
                short: Treatment review date
                mustSupport: true
                index: 12
                slicing:
                  slices:
                    treatmentReviewDate:
                      match: {}
                      schema: {short: Treatment review date, mustSupport: true, index: 12}
                    treatmentEndDate:
                      match: {}
                      schema: {short: Treatment end date, mustSupport: true, index: 13}
        nllOrdinationsId:
          match: {}
          schema: {short: OrdinationsId from OR (Receptdepå human), type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/StructureDefinition/NLLOrdinationsId', index: 20}
          max: 1
        nllCompletePrescriptionChoice:
          match: {}
          schema:
            short: Prescription completion descision
            type: Extension
            mustSupport: true
            binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/complete-prescription-choices'}
            url: http://electronichealth.se/fhir/StructureDefinition/NLLCompletePrescriptionChoice
            index: 19
          max: 1
  requester:
    short: The practitioner who prescribed the article
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLPractitioner']
    type: Reference
    mustSupport: true
    index: 56
  priority:
    short: urgent
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/medication-request-priority'}
    mustSupport: true
    index: 39
  status:
    short: active | on-hold | cancelled | completed | stopped
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/ValueSet/medication-request-status'}
    mustSupport: true
    index: 32
  id: {mustSupport: true, index: 0}
  dosageInstruction:
    type: Dosage
    short: How the medication should be taken
    mustSupport: true
    index: 69
    extensions:
      nllAdministeringInstruction:
        url: null
        index: 70
        elements:
          value:
            choices: []
            index: 72
    elements:
      extension:
        index: 70
        slicing:
          slices:
            nllAdministeringInstruction:
              match: {}
              schema:
                index: 70
                elements:
                  value:
                    choices: []
                    index: 72
      patientInstruction: {index: 73}
  identifier:
    mustSupport: true
    index: 22
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        NEF:
          match: {system: 'http://electronichealth.se/fhir/NamingSystem/NEFId'}
          schema:
            short: Legacy ids used in NEF and OR
            mustSupport: true
            index: 23
            extensions:
              NEFIdParts:
                url: http://electronichealth.se/fhir/StructureDefinition/NLLNEFId
                type: Extension
                mustSupport: true
                index: 24
                extensions:
                  PrescriptionSetId:
                    url: null
                    mustSupport: true
                    index: 25
                    elements:
                      value:
                        maxLength: 36
                        choices: []
                        index: 27
                  RowId: {url: null, mustSupport: true, index: 28}
                  ProductRowId: {url: null, mustSupport: true, index: 29}
                elements:
                  extension:
                    mustSupport: true
                    index: 25
                    slicing:
                      slices:
                        PrescriptionSetId:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 25
                            elements:
                              value:
                                maxLength: 36
                                choices: []
                                index: 27
                        RowId:
                          match: {}
                          schema: {mustSupport: true, index: 28}
                        ProductRowId:
                          match: {}
                          schema: {mustSupport: true, index: 29}
            elements:
              extension:
                type: Extension
                mustSupport: true
                url: http://electronichealth.se/fhir/StructureDefinition/NLLNEFId
                index: 24
                slicing:
                  slices:
                    NEFIdParts:
                      match: {}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://electronichealth.se/fhir/StructureDefinition/NLLNEFId
                        index: 24
                        extensions:
                          PrescriptionSetId:
                            url: null
                            mustSupport: true
                            index: 25
                            elements:
                              value:
                                maxLength: 36
                                choices: []
                                index: 27
                          RowId: {url: null, mustSupport: true, index: 28}
                          ProductRowId: {url: null, mustSupport: true, index: 29}
                        elements:
                          extension:
                            mustSupport: true
                            index: 25
                            slicing:
                              slices:
                                PrescriptionSetId:
                                  match: {}
                                  schema:
                                    mustSupport: true
                                    index: 25
                                    elements:
                                      value:
                                        maxLength: 36
                                        choices: []
                                        index: 27
                                RowId:
                                  match: {}
                                  schema: {mustSupport: true, index: 28}
                                ProductRowId:
                                  match: {}
                                  schema: {mustSupport: true, index: 29}
              system:
                pattern: {type: uri, value: 'http://electronichealth.se/fhir/NamingSystem/NEFId'}
                mustSupport: true
                type: uri
                index: 30
              value: {short: The complete NEFid, mustSupport: true, index: 31}
            required: [system]
  intent:
    short: order
    pattern: {type: code, value: order}
    mustSupport: true
    type: code
    index: 38
  priorPrescription:
    type: Reference
    short: A prescription that is being/has been replaced/renewed
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLMedicationRequest']
    index: 125
  subject:
    type: Reference
    short: Who the prescription is for
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLPatient']
    index: 54
  medication:
    short: Prescribed article
    mustSupport: true
    choices: [medicationCodeableConcept]
    index: 41
package_version: 0.1.3
extensions:
  nllPatientTreatmentReason: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPatientTreatmentReason', max: 1, short: The treatment reason described for the patient, type: Extension, mustSupport: true, index: 8}
  nllPrescriptionChain: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionChain', max: 1, short: Prescription chain id, type: Extension, mustSupport: true, index: 9}
  nllRegistrationBasis:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLRegistrationBasis
    min: 1
    max: 1
    short: Format when the prescription was registered
    type: Extension
    mustSupport: true
    binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/registration-basis'}
    index: 14
  nllTidigareOrdinationsid: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLTidigareOrdinationsid', max: 1, short: Tidigare OrdinationsId OR (Receptdepå human), type: Extension, mustSupport: true, index: 21}
  nllUsageDates:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLUsageDates
    type: Extension
    short: Usage dates
    mustSupport: true
    index: 15
    extensions:
      usageStartDate: {url: null, short: When the patient should start using the medication., mustSupport: true, index: 16}
      usageEndDate: {url: null, short: When the patient should stop using the medication., mustSupport: true, index: 17}
      scheduleStartDate: {url: null, mustSupport: true, index: 18}
    elements:
      extension:
        short: When the patient should start using the medication.
        mustSupport: true
        index: 16
        slicing:
          slices:
            usageStartDate:
              match: {}
              schema: {short: When the patient should start using the medication., mustSupport: true, index: 16}
            usageEndDate:
              match: {}
              schema: {short: When the patient should stop using the medication., mustSupport: true, index: 17}
            scheduleStartDate:
              match: {}
              schema: {mustSupport: true, index: 18}
  nllPrescriptionFormat:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionFormat
    min: 1
    max: 1
    short: Current prescription format
    type: Extension
    mustSupport: true
    binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/prescription-formats'}
    index: 10
  nllTreatmentDates:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLTreatmentDates
    type: Extension
    mustSupport: true
    index: 11
    extensions:
      treatmentReviewDate: {url: null, short: Treatment review date, mustSupport: true, index: 12}
      treatmentEndDate: {url: null, short: Treatment end date, mustSupport: true, index: 13}
    elements:
      extension:
        short: Treatment review date
        mustSupport: true
        index: 12
        slicing:
          slices:
            treatmentReviewDate:
              match: {}
              schema: {short: Treatment review date, mustSupport: true, index: 12}
            treatmentEndDate:
              match: {}
              schema: {short: Treatment end date, mustSupport: true, index: 13}
  nllOrdinationsId: {url: 'http://electronichealth.se/fhir/StructureDefinition/NLLOrdinationsId', max: 1, short: OrdinationsId from OR (Receptdepå human), type: Extension, mustSupport: true, index: 20}
  nllCompletePrescriptionChoice:
    url: http://electronichealth.se/fhir/StructureDefinition/NLLCompletePrescriptionChoice
    max: 1
    short: Prescription completion descision
    type: Extension
    mustSupport: true
    binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/complete-prescription-choices'}
    index: 19
class: profile
kind: resource
url: http://electronichealth.se/fhir/StructureDefinition/NLLMedicationRequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.4.1
required: [authoredOn, dispenseRequest, requester]