i4mi / MobileAccessGateway

IPF HAPI-FHIR IHE ITI springboot example
Apache License 2.0
13 stars 9 forks source link

Feature Request: Support for PPQm #81

Open oliveregger opened 2 years ago

oliveregger commented 2 years ago

eHealth Suisse has published a first draft for the PPQm profile:

This Implementation Guide is a part of the Swiss EPR specifications and contains definitions necessary for the Swiss national integration profile “Privacy Policy Query for Mobile” (CH:PPQm). The goal of this profile is to provide a possibility to manage privacy policies using a lightweight technology stack suitable for mobile devices — as opposed to the classic CH:PPQ which is based on XACML 2.0 and SAML 2.0.

The implementation of the PPQm profile and translation would be a nice addition in a future version.

unixoid commented 1 year ago

I can provide an implementation based on Groovy and Apache Velocity, if you want.

oliveregger commented 1 year ago

@unixoid thanks for the offer and yes sure, we would very much like an implementation, is this doable with the current ipf / mobile access gateway dependencies?

unixoid commented 1 year ago

CH:PPQm support was added in IPF 4.8-m1 released today. This includes Camel components for all three transactions and routines for translating messages between CH:PPQ and CH:PPQm. In that way, the only part of the business logic to be implemented in the MAG is to handle transactional updates, i.e. to determine whether a PUT request shall be translated in an AddPolicyRequest or an UpdatePolicyRequest. I will implement this for the Projectathon in a separate project, and can contribute the code to the MAG project then.

Another minor restriction is that audit trail is only DICOM-based at the moment, because the corresponding IPF issue is not yet implemented. But this is not specific for CH:PPQm and relates to all FHIR-based transactions.

BTW, by updating to IPF 4.8-m1, you probably could get rid of proprietary Camel components named "mhd-itiXX-v401" in the MAG project.

oliveregger commented 1 year ago

sounds great, looking forward for you contribution!

unixoid commented 1 year ago

See project https://github.com/unixoid/pton-ppqm and feel free to integrate it into the Mobile Access Gateway. IPF 4.8-SNAPSHOT is required as there were relevant changes after 4.8-m1.

unixoid commented 1 year ago

See #126

unixoid commented 4 months ago

Current changes in the Release 2024 of the PPQm profile (in particular, integration into the CH-EPR-FHIR IG and addition of template 304) are implemented in IPF 4.8-SNAPSHOT and 5.0-SNAPSHOT. This implementation will be finalized after the ballot. See https://github.com/oehf/ipf/issues/450.