PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.mcsd@4.0.0-comment
    https://profiles.ihe.net/ITI/mCSD/StructureDefinition/IHE.mCSD.Audit.CareServices.Updates
description: Defines constraints on the AuditEvent Resource to record when a Request Care Services Updates Transaction happens\nfor a Care Services Resource updates, as recorded by the Directory or Update Client.
package_name: ihe.iti.mcsd
derivation: constraint
name: AuditMcsdCareServicesUpdates
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:
    array: true
    min: 2
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: 2
      slices:
        anyHistoryT:
          match: {code: history-type, system: 'http://hl7.org/fhir/restful-interaction', display: history-type}
          schema:
            pattern:
              type: Coding
              value: {code: history-type, system: 'http://hl7.org/fhir/restful-interaction', display: history-type}
            _required: true
            index: 2
          min: 1
          max: 1
        iti91:
          match: {code: ITI-91, system: 'urn:ihe:event-type-code', display: Request Care Services Updates}
          schema:
            pattern:
              type: Coding
              value: {code: ITI-91, system: 'urn:ihe:event-type-code', display: Request Care Services Updates}
            _required: true
            index: 3
          min: 1
          max: 1
  action:
    pattern: {type: Code, value: E}
    index: 4
  outcome:
    pattern: {type: Code, value: '0'}
    index: 5
  agent:
    array: true
    min: 2
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      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:
              coding:
              - {code: IRCP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: information recipient}
          schema:
            index: 17
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: IRCP, system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', display: information recipient}
                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, type]
  source: {mustSupport: true, index: 26}
  entity:
    index: 27
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      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]
        query:
          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:
                pattern:
                  type: Coding
                  value: {code: '24', system: 'http://terminology.hl7.org/CodeSystem/object-role', display: Query}
                index: 34
              lifecycle: {index: 35}
              securityLabel: {short: may contain the security labels on the Bundle search set returned, index: 36}
              query: {index: 37}
              detail: {index: 38}
            required: [query, type]
package_version: 4.0.0-comment
class: profile
kind: resource
url: https://profiles.ihe.net/ITI/mCSD/StructureDefinition/IHE.mCSD.Audit.CareServices.Updates
base: http://hl7.org/fhir/StructureDefinition/AuditEvent
version: 4.0.0-comment
required: [entity]