PackagesCanonicalsLogsProblems
    Packages
    rs/bonsai.first.test.r4@0.1.6
    http://electronichealth.se/fhir/StructureDefinition/NLLProvenance
description: A profile of Provenance that is compatible with all scenarios in the Swedish National Medication List.
package_name: rs/bonsai.first.test.r4
derivation: constraint
name: NLLProvenance
type: Provenance
elements:
  id: {mustSupport: true, index: 0}
  target:
    type: Reference
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLAccessConsent', 'http://electronichealth.se/fhir/StructureDefinition/NLLDataLock', 'http://electronichealth.se/fhir/StructureDefinition/NLLDispensePaperPrescription', 'http://electronichealth.se/fhir/StructureDefinition/NLLMedicationDispense', 'http://electronichealth.se/fhir/StructureDefinition/NLLMedicationRequest', 'http://electronichealth.se/fhir/StructureDefinition/NLLMultiDoseDispConsent', 'http://electronichealth.se/fhir/StructureDefinition/NLLMultiDoseDispensingBasis']
    index: 1
  occurred:
    choices: [occurredDateTime]
    index: 3
  occurredDateTime: {type: dateTime, choiceOf: occurred, index: 4}
  recorded: {mustSupport: true, index: 5}
  reason:
    binding: {strength: extensible, valueSet: 'http://electronichealth.se/fhir/ValueSet/nll-reason-for-provenance'}
    mustSupport: true
    index: 6
    elements:
      coding:
        mustSupport: true
        index: 7
        elements:
          system: {mustSupport: true, index: 8}
          version: {mustSupport: true, index: 9}
          code: {mustSupport: true, index: 10}
        required: [code]
      text: {mustSupport: true, index: 11}
  activity:
    binding: {strength: required, valueSet: 'http://ehalsomyndigheten.se/fhir/ValueSet/provenance-activity-types'}
    mustSupport: true
    index: 12
    elements:
      coding:
        mustSupport: true
        index: 13
        elements:
          system: {mustSupport: true, index: 14}
          version: {mustSupport: true, index: 15}
          code: {mustSupport: true, index: 16}
        required: [code]
    required: [coding]
  agent:
    mustSupport: true
    index: 17
    elements:
      type:
        binding: {strength: extensible, valueSet: 'http://electronichealth.se/fhir/ValueSet/provenance-participant-types'}
        mustSupport: true
        index: 18
      who:
        type: Reference
        mustSupport: true
        refers: ['http://electronichealth.se/fhir/StructureDefinition/NLLPatient', 'http://electronichealth.se/fhir/StructureDefinition/NLLPractitioner']
        index: 19
    required: [type]
package_version: 0.1.6
class: profile
kind: resource
url: http://electronichealth.se/fhir/StructureDefinition/NLLProvenance
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 2.0.0
required: [activity]