PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.aitransparency@1.0.0
    http://hl7.org/fhir/uv/aitransparency/StructureDefinition/AI-Provenance
description: An AI Provenance is a record of the use of an AI model in generating or enhancing FHIR resources. It captures the details of the AI model used, the input data given to the AI, and the output generated by the AI.
package_name: hl7.fhir.uv.aitransparency
derivation: constraint
name: AIProvenance
type: Provenance
elements:
  target: {mustSupport: true, index: 0}
  occurred:
    mustSupport: true
    choices: []
    index: 2
  reason:
    index: 3
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: 1
      slices:
        AIReason:
          match:
            coding:
            - {code: AIAST, system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: AIAST, system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue'}
            _required: true
            index: 4
          min: 1
          max: 1
  agent:
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: who.resolve(), type: profile}
      min: null
      slices:
        AIagent:
          match: {}
          schema:
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 6
            elements:
              type: {mustSupport: true, index: 7}
              role:
                index: 8
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this, type: value}
                  min: 1
                  slices:
                    AIrole:
                      match:
                        coding:
                        - {code: Artificial-Intelligence, system: 'http://terminology.hl7.org/CodeSystem/AIdeviceTypeCS'}
                      schema:
                        pattern:
                          type: CodeableConcept
                          value:
                            coding:
                            - {code: Artificial-Intelligence, system: 'http://terminology.hl7.org/CodeSystem/AIdeviceTypeCS'}
                        _required: true
                        index: 9
                      min: 1
                      max: 1
              who:
                type: Reference
                refers: ['http://hl7.org/fhir/uv/aitransparency/StructureDefinition/AI-Device']
                index: 10
            required: [role, type]
        Humanagent:
          match: {}
          schema:
            mustSupport: true
            array: true
            index: 11
            elements:
              type: {mustSupport: true, index: 12}
              who:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                index: 13
            required: [type]
  entity:
    mustSupport: true
    index: 14
    elements:
      what: {mustSupport: true, index: 15}
    slicing:
      rules: open
      description: The entities that were used as input to the AI model, including the model card and input prompt.
      discriminator:
      - {path: what.resolve(), type: profile}
      min: null
      slices:
        modelCard:
          match: {}
          schema:
            mustSupport: true
            array: true
            index: 16
            elements:
              role:
                pattern: {type: Code, value: derivation}
                index: 17
              what:
                type: Reference
                refers: ['http://hl7.org/fhir/uv/aitransparency/StructureDefinition/AI-ModelCard']
                index: 18
        inputPrompt:
          match: {}
          schema:
            mustSupport: true
            array: true
            index: 19
            elements:
              role:
                pattern: {type: Code, value: derivation}
                index: 20
              what:
                type: Reference
                refers: ['http://hl7.org/fhir/uv/aitransparency/StructureDefinition/AI-InputPrompt']
                index: 21
package_version: 1.0.0
class: profile
kind: resource
url: http://hl7.org/fhir/uv/aitransparency/StructureDefinition/AI-Provenance
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 1.0.0
required: [reason]