PackagesCanonicalsLogsProblems
    Packages
    ca.on.mi.r4@1.0.0-snapshot6
    http://ontariohealth.ca/fhir/mi/StructureDefinition/ca-on-mi-profile-provenance
description: null
package_name: ca.on.mi.r4
derivation: constraint
name: Provenance
type: Provenance
elements:
  meta:
    mustSupport: true
    index: 0
    elements:
      tag:
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/cdf-data-domain'}
        mustSupport: true
        index: 1
        elements:
          system:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/CodeSystem/cdf-data-domains'}
            mustSupport: true
            index: 2
          code:
            pattern: {type: Code, value: mi}
            mustSupport: true
            index: 3
          display: {mustSupport: true, index: 4}
        required: [system, code]
    required: [tag]
  target:
    mustSupport: true
    index: 5
    elements:
      identifier:
        mustSupport: true
        index: 6
        elements:
          system: {mustSupport: true, index: 7}
          value: {mustSupport: true, index: 8}
        required: [value, system]
    required: [identifier]
  recorded: {mustSupport: true, index: 9}
  policy:
    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/provenance-policy/ocinet'}
    mustSupport: true
    index: 10
  activity:
    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/provenance-activity-type'}
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: transform, system: 'http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle', display: Transform/Translate Record Lifecycle Event}
    index: 11
    elements:
      coding:
        mustSupport: true
        index: 12
        elements:
          system: {mustSupport: true, index: 13}
          code: {mustSupport: true, index: 14}
          display: {mustSupport: true, index: 15}
        required: [display, system, code]
    required: [coding]
  agent:
    mustSupport: true
    index: 16
    slicing:
      rules: open
      discriminator:
      - {path: type.coding, type: pattern}
      min: null
      slices:
        sliceAgent-composer:
          match:
            type:
              coding: {code: composer, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type', display: Composer}
          schema:
            mustSupport: true
            _required: true
            index: 17
            elements:
              type:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/provenance-agent-type'}
                mustSupport: true
                index: 18
                elements:
                  coding:
                    mustSupport: true
                    pattern:
                      type: Coding
                      value: {code: composer, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type', display: Composer}
                    index: 19
                    elements:
                      system: {mustSupport: true, index: 20}
                      code: {mustSupport: true, index: 21}
                      display: {mustSupport: true, index: 22}
                    required: [display, system, code]
                required: [coding]
              who:
                mustSupport: true
                index: 23
                elements:
                  identifier:
                    mustSupport: true
                    index: 24
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/NamingSystem/id-oneid-clientid'}
                        mustSupport: true
                        index: 25
                      value: {mustSupport: true, index: 26}
                    required: [value, system]
                required: [identifier]
            required: [type]
        sliceAgent-transformer:
          match:
            type:
              coding: {code: transformer, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type', display: Transformer}
          schema:
            mustSupport: true
            index: 27
            elements:
              type:
                mustSupport: true
                index: 28
                elements:
                  coding:
                    mustSupport: true
                    pattern:
                      type: Coding
                      value: {code: transformer, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type', display: Transformer}
                    index: 29
                    elements:
                      system: {mustSupport: true, index: 30}
                      code: {mustSupport: true, index: 31}
                      display: {mustSupport: true, index: 32}
                    required: [display, system, code]
                required: [coding]
              who:
                mustSupport: true
                index: 33
                elements:
                  display:
                    pattern: {type: String, value: OCINet HL7v2 to FHIR Translation Engine}
                    mustSupport: true
                    index: 34
                required: [display]
            required: [type]
        sliceAgent-sendingOrganization:
          match:
            type: {coding: null}
          schema:
            mustSupport: true
            index: 35
            elements:
              type:
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/provenance-agent-type'}
                mustSupport: true
                index: 36
                elements:
                  coding: {mustSupport: true, index: 37}
                required: [coding]
              who:
                mustSupport: true
                index: 38
                elements:
                  identifier: {mustSupport: true, index: 39}
            required: [type]
  entity:
    mustSupport: true
    index: 40
    elements:
      role:
        pattern: {type: Code, value: derivation}
        mustSupport: true
        index: 41
      what:
        mustSupport: true
        index: 42
        elements:
          identifier: {mustSupport: true, index: 43}
        required: [identifier]
package_version: 1.0.0-snapshot6
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/mi/StructureDefinition/ca-on-mi-profile-provenance
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 1.0.0
required: [activity, policy, meta, entity]