contentValidation #27
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Per discussion with Alexander: try to not repeat the mistakes of earlier and just 'get something out there' for you to see, review, perhaps use, expand upon, etc.
In a session with Niek we created a profile by hand (or using Forge), which resulted in the following execution:
https://touchstone.aegis.net/touchstone/scriptexecution?exec=202208311007574346710307&qn=/FHIRSandbox/Nictiz/dev/FHIR4-0-1-Test/PatientCorrections-1-0/PHR-Client/patientcorrections-phr-1-send-one-correctionrequest#WAITING_OPER
I used https://github.com/Nictiz/Nictiz-testscripts/blob/main/dev/FHIR4-0-1-Test/PatientCorrections-1-0/_reference/resources-specific/dwv-Transaction-Scenario-1.xml as input (
in/dwz-Transaction-Scenario-1.xml).in/also contains our manual work as 'expected output' and a snapshot of the profile being used as reference, although the XSLT downloads the snapshot automatically from Simplifier given a package name and version.The
out/folder contains the output profile being generated at the moment. It is not identical to te reference input, but I placed some comments in the reference input to 'justify' the differences.The XSLT itself (nothing fancy ANTy yet, just Input -> XSLT -> Output at the moment) is rich in comments with thoughts, explanations and caveats. It is built to terminate if it stumbles across something it doesn't know (yet). It reuses (hopefully upcycles) work of the content asserts phase of this project.
How to move forward? In my opinion:
I have not done anything with generating constraints (invariants) yet, but I imagine this could involve some work generating FHIRpath expressions. Please note that I have 'something like that' laying around which I used so generate content asserts, I suppose that could be recycled.