FHIR Chat · STU3 vs R4 Med-related resources? · implementers

Stream: implementers

Topic: STU3 vs R4 Med-related resources?


view this post on Zulip John Silva (Jul 25 2019 at 17:44):

Is there a guide that helps navigate all the differences between STU3 and R4 medication-related resources? I've already looked at the R3 Diff tab but the problem there is that each property is taken in isolation, e.g. Medication.amount was added and Medication.ingredient.amount was deleted --- does this really mean that the .amount property replaces the ingredient.amount property? (as usual, we're trying to understand the impact of how we map existing HL7 med-related messages from STU3 to R4 so the R3 Diff table isn't necessarily sufficient to figure this out.)

view this post on Zulip Jose Costa Teixeira (Jul 25 2019 at 21:24):

@John Silva ...or you could wait for - or join - the ihe effort to migrate hmw to fhir :)

view this post on Zulip John Silva (Jul 25 2019 at 21:32):

@Jose Costa Teixeira - I was hoping you had the answers to this or a document or webpage that shows it :-) I don't have this in my job description (spending time on standards effort; sometimes I wish I did). It's actually quite hard to figure out the differences between 2 versions of the FHIR specs -- in our case STU3 to R4. I just realized that it's also not as simple as looking at the "R3 Diff" tab on each resource because there are also difference in the datatypes used by these resources, e.g. Dosage for Med-related resources. The other problem it that it seems sometimes the tooling says one property was added (e.g. MedReq.encounter) and the other was deleted (MedReq.context) when it seems like that should be a property name change. Then there's the case of a new or changed name to a resource, e.g. ProcedureRequest to ServivceRequest; from the FHIR spec pages I'm not sure how anyone would figure that out and there's not a way to see if the properties between the two have changed without doing it manually (it seems unless I'm missing something)

view this post on Zulip John Silva (Jul 26 2019 at 14:53):

I was informed that there is a place on the FHIR pages that has the complete listing of STU3 to R4 changes, including datatype changes. This is more convenient that going to each resource's "R3 Diff" tab, http://hl7.org/fhir/diff.html

However, this doesn't solve the problem of trying to figure out if an add/delete is really a rename and if an STU3 resource was renamed, e.g. ProcedureRequest to ServiceRequest and then, if so, which properties were added in the new resource.

How are others dealing with trying to understand the STU3 to R4 differences when evaluating the effort to migrate from one to the other?

view this post on Zulip John Silva (Jul 26 2019 at 18:47):

@Grahame Grieve (when you get a chance -- I know you just came back from holiday)

I used a 'hack' to find the differences between ProcedureRequest and ServiceRequest --- I used an online text comparison tool to compare the JSON from each resource. I would have used a JSON comparison tool but the JSON on the FHIR website is "illegal JSON" (since JSON doesn't support comments but understand why it's there). Would it be possible to have a download button on the "JSON" tab to have 'pure JSON' without the comments so that we could use that to do JSON comparisons to determined release differences?

view this post on Zulip Grahame Grieve (Jul 26 2019 at 20:13):

you are referring to the JSON template, I think, which is a long way further away from being valid JSON than just that

view this post on Zulip John Silva (Jul 26 2019 at 21:08):

The 'stylized JSON' that shows up under the JSON tab on any resource page, e.g. https://www.hl7.org/fhir/medicationrequest.html#tabs-json

(I think I see what you mean -- it also has 'pseudo references' to other resources and datatypes that are not 'real JSON' I guess either.)


Last updated: Apr 12 2022 at 19:14 UTC