PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.balp@1.1.0
    https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Update
description: A basic AuditEvent profile for when a RESTful Update action happens successfully.\n\n* Given a Resource has no Patient subject \n* And OAuth is used to authorize both app and user\n* When an App requests a RESTful Update of an existing Resource\n* And the Resource is successfully Updated thus where the server supports FHIR Versioning the updated Resource has a new id version assigned\n* Then an AuditEvent following this profile is recorded where the Resource is identified by the updated version specific id where versioning is available
package_name: ihe.iti.balp
derivation: constraint
name: Update
type: AuditEvent
elements:
  type:
    pattern:
      type: Coding
      value: {code: rest, system: 'http://terminology.hl7.org/CodeSystem/audit-event-type', display: Restful Operation}
    index: 0
  subtype:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: 1
      slices:
        anyUpdate:
          match: {code: update, system: 'http://hl7.org/fhir/restful-interaction', display: update}
          schema:
            pattern:
              type: Coding
              value: {code: update, system: 'http://hl7.org/fhir/restful-interaction', display: update}
            index: 2
          min: 0
          max: 1
        anyPatch:
          match: {code: patch, system: 'http://hl7.org/fhir/restful-interaction', display: patch}
          schema:
            pattern:
              type: Coding
              value: {code: patch, system: 'http://hl7.org/fhir/restful-interaction', display: patch}
            index: 3
          min: 0
          max: 1
  action:
    pattern: {type: Code, value: U}
    index: 4
  outcome:
    pattern: {type: Code, value: '0'}
    index: 5
  agent:
    array: true
    min: 2
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: 2
      slices:
        client:
          match:
            type:
              coding:
              - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID}
          schema:
            _required: true
            index: 7
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '110153', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Source Role ID}
                index: 8
              who: {index: 9}
              media: {index: 10}
              network: {index: 11}
            required: [who, network, type]
        server:
          match:
            type:
              coding:
              - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID}
          schema:
            _required: true
            index: 12
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '110152', system: 'http://dicom.nema.org/resources/ontology/DCM', display: Destination Role ID}
                index: 13
              who: {index: 14}
              media: {index: 15}
              network: {index: 16}
            required: [who, network, type]
        user:
          match: {type: null}
          schema:
            index: 17
            elements:
              type:
                binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/BALP/ValueSet/DataSources'}
                index: 18
              role: {mustSupport: true, index: 19}
              who: {index: 20}
              name: {mustSupport: true, index: 21}
              requestor:
                pattern: {type: Boolean, value: true}
                index: 22
              media: {index: 23}
              network: {index: 24}
              purposeOfUse: {mustSupport: true, index: 25}
            required: [who]
  source: {mustSupport: true, index: 26}
  entity:
    index: 27
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: 1
      slices:
        transaction:
          match:
            type: {code: XrequestId, system: 'https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType'}
          schema:
            index: 28
            elements:
              what:
                elements:
                  identifier:
                    elements:
                      value: {short: the value of X-Request-Id, index: 29}
                    required: [value]
              type:
                pattern:
                  type: Coding
                  value: {code: XrequestId, system: 'https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType'}
                index: 30
            required: [type]
        data:
          match:
            type: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: System Object}
          schema:
            _required: true
            index: 31
            elements:
              what: {index: 32}
              type:
                pattern:
                  type: Coding
                  value: {code: '2', system: 'http://terminology.hl7.org/CodeSystem/audit-entity-type', display: System Object}
                index: 33
              role:
                binding: {strength: required, valueSet: 'https://profiles.ihe.net/ITI/BALP/ValueSet/RestObjectRoles'}
                index: 34
              securityLabel: {short: may contain the security labels on the resource returned, index: 35}
            required: [what, type]
package_version: 1.1.0
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Update
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 1.1.0
required: [subtype, entity]