ehealthsuisse / ch-epr-fhir

Repository for the swiss implementation guide for the FHIR based profiles
3 stars 5 forks source link

Adapt IHE profiles for the Trace Context support #153

Open qligier opened 4 months ago

qligier commented 4 months ago

For us to support the Tracecontext header value in audit events, we need to adapt two IHE profiles:

BALP

We need to add the Tracecontext code to CodeSystem/BasicAuditEntityType and ValueSet/BasicAuditEntityTypesVS, and adapt the profiles. It is reported in https://github.com/IHE/ITI.BasicAudit/issues/94 and done in https://github.com/IHE/ITI.BasicAudit/pull/100.

MHD

In StructureDefinition/IHE.MHD.ProvideBundle.Audit.Recipient and StructureDefinition/IHE.MHD.ProvideBundle.Audit.Source, the AuditEvent.entity slice is closed and does not contain entity:transaction. This is reported in https://github.com/IHE/ITI.MHD/issues/220.

In other profiles, the AuditEvent.entity slice is open, but the entity:transaction (when present) is restricted to XRequestId. We may want to ensure the slice is present everywhere, and that it allows the Tracecontext code.

oliveregger commented 4 months ago

Two known errors time of publication

This element does not match any known slice defined in the profile https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideBundle.Audit.Source|4.2.1 and slicing is CLOSED: AuditEvent.entity[2]: Does not match slice 'patient' (discriminator: type.where((system = 'http://terminology.hl7.org/CodeSystem/audit-entity-type') and (code = '1') and (display = 'Person')).exists()), AuditEvent.entity[2]: Does not match slice 'submissionSet' (discriminator: type.where((system = 'http://terminology.hl7.org/CodeSystem/audit-entity-type') and (code = '2') and (display = 'System Object')).exists()) AuditEvent.entity: max allowed = 2, but found 3 (from https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.ProvideBundle.Audit.Source|4.2.1)

This will be resolved as soon as an updated BALP, MHD are published

oliveregger commented 2 months ago
oliveregger commented 2 months ago

7.5: corrected in IHE MHD, will be fixed with the next publication of MHD which is targeted in a few weeks.