ahdis / ch-elm

FHIR® Implementation Guide for the Electronic Laboratory Report of the Swiss Federal Office of Public Health
https://fhir.ch/ig/ch-elm/index.html
0 stars 0 forks source link

differentiate validation strict non-strict #47

Closed oliveregger closed 10 months ago

oliveregger commented 1 year ago

there are two different validation approaches for ch-elm.

the regular validation checks that the message is correct but it allows that in case of a new infectious diseases a new message could be added and still pass through validation. in addition some business rules are not enforced.

the strict validation checks that all the message conforms to the published implementation guide, e.g a new infectious diseases code will throw an error in validation.

recommendation: check during implementation that your implementation is conforming to the strict version, test in production regular validation.

canonical url's for validation:

Valdiation Publication (DocumentReference) Exchange Forma (Bundle)
Regular http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document
Strict http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReferenceStrict http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict
Version Specific (e.g. 1.0.0) http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference\|1.0.0 http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReferenceStrict\|1.0.0 http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document\|1.0.0 http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document-strict\|1.0.0
oliveregger commented 10 months ago

fixed in 1.1.0