Open pld opened 3 weeks ago
Somewhat related issue, https://github.com/onaio/fhir-tooling/issues/6
Somewhat related issue, https://github.com/opensrp/fhircore/issues/3113
NB. We need some form of template validation that will help validate gaps in missing references that cause malformed resources e.g.
Patient/$patient_id
= valid$patient_id
is not valid Patient/
is not validThis should apply to other Resources that reference each other
Maybe having a reference check such as Reference xx/xx should be sufficient
Good call, yep we probably need something like a linter for FHIR, or a very rudimentary version of that
@Wambere @f-odhiambo I am looking at this validation in 2 stages
cc: @pld
Sounds good, for stage 2 we would not want to access a server, we need to have this test work without assuming anything exists that the test writer cannot control.
There's a potential Stage 3 where we write the extracted resources first, or a subset of them, like should create this resources with these keys filled... hmm actually instead of writing the extracted resource a Profile might be want we want , then we validate that the extracted resources matches the target (or the profile). And later we build tooling to generate the structuremap from the Q and the target/profile
@Wambere let's focus on Stage 1 for now, get that into CI, then we can revisit the approach for Stage 2 and how it fits into our priorities.
Extend validation tooling and expand CI to: