ehealthsuisse / ch-epr-fhir

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

Extend $ihe-pix OperationDefinition #2

Closed oliveregger closed 4 years ago

oliveregger commented 4 years ago

The output and the input of the $ihe-pix operation cannot be currently validated with the existing tooling.

FHIR defines an operation with an OperationDefinition. The $ihe-pix operation is defined here. It should define also an input and outputProfile that validators can be built for validation.

Output validation could be handled directly. For input validation further tooling would be necessary to convert the http Request Parameters to the Parameters resource format.

Currently input validation is done with a regex

ITI-83 request targetSystem string Optional [^|]+ sourceIdentifier token Required (a-z+:([a-z0-9]|+|-|.|:|/|@)+|)|(a-z+:([a-z0-9]|+|-|.|:|/|@)+|[^(\s||)]+([\s]?[^(\s|)]+))|(|?[^(\s||)]+([\s]?[^(\s|)]+))

For the general $ihe-pix operation ihe-services (') has already define a structure definition for the output.

https://gazelle.ihe.net/jira/servicedesk/customer/portal/8/EHS-411

oliveregger commented 4 years ago

[IHE_PIXm_Parameters.xml.zip](https://github.com/ehealthsuisse/ch-epr-mhealth/files/5255870/IHE_PIXm_Parameters.xml.zip)

oliveregger commented 4 years ago

apply same principle to the swiss operation