FHIR Chat · Mapping Continuous in MedRequest? · implementers

Stream: implementers

Topic: Mapping Continuous in MedRequest?


view this post on Zulip John Silva (Nov 12 2018 at 23:11):

If I'm mapping the HL7 V2 Timing/Repeat pattern of 'C' (Continuous) into a MedicationRequest resource, what would I use (which properties in Dosage or Timing data elements) to represent the concept of 'Continuous? (I noticed there is a Timing.code property which appears to have a small subset of the HL7V2 Repeat Pattern values like BID/TID/QD/etc. but it doesn't have 'C' for continuous; should I just copy the 'C' to this Timing.code property?)

view this post on Zulip Lloyd McKenzie (Nov 12 2018 at 23:13):

@Melva Peters @Jean Duteau @John Hatem ?

view this post on Zulip Melva Peters (Nov 13 2018 at 03:29):

In MedicationRequest, there is an attribute called "courseOfTherapyType" with an exemplar value set that includes continuous, acute and seasonal. It isn't part of dosage or timing, it is part of the MedicationRequest.

view this post on Zulip John Silva (Nov 13 2018 at 13:20):

Thanks, that's 'not obvious'. I also can't find this property; is this 'brand new' for R4? This is another example of the complications of trying to provide a useful mapping between the existing "V2 world" and the FHIR world --- it seems like many things are either not considered or not obvious. (I can't believe that the use case for Continuous meds, i.e. infusions, are not part of the 80% rule.)

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 13:54):

I'm not sure that "continuous" in courseOfTherapyType means the same thing that John is looking for. You could have a patient who's on antirejection drugs with a course of "continuous" - meaning they will be taking them on an ongoing basis, likely forever. However, they may still only pop a couple of pills a day. That's a different thing from an IV med that's administered for a particular period of time (generally on an accute basis) but where the drug flows continuously.

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 13:55):

My leaning is that that second type of "continuous" is implicit whenever a "rate" element is specified - and that you should never have a continuous drug that doesn't have a rate. However, it would be good to have that made explicit...

view this post on Zulip John Silva (Nov 13 2018 at 14:20):

@Lloyd McKenzie - Yes, I'm interested in the second type of continuous, the one used ALL the time in V2 TQ datatype or TQ1 segment with the value specified in HL7 Table 0335 ( http://hl7-definition.caristix.com:9010/HL7%20v2.5.1/Default.aspx?version=HL7%20v2.5.1&table=0335)
I can't understand how this most important element of inpatient medication orders (*) isn't modeled in FHIR MedReq -- unless I'm missing something obvious? Also, inferring continuous from rate is somewhat obscure or a 'round-about' way of determining a MedReq is for a continuous or IV drug. (Also, in HL7 V2 there can be multiple RXC segments for the base (e.g. D5W or Normal Saline) and others for the additives (the actual drug), which may not have a rate specified (just an dose -- the rate is calculated)).

(*) was/is the FHIR MedReq modeling mostly concerned with outpatient prescriptions not inpatient Med Orders?

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 14:29):

The RXC components would be handled as Medication ingredients. The presumption is that each thing that has an independent rate is a distinct order.

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 14:30):

Is there a situation where in v2 you'd have a continuous med order that didn't have a rate?

view this post on Zulip John Silva (Nov 13 2018 at 14:54):

OK, but if I'm using medicationCodeableConcept instead of medicationReference then this (med ingredients) doesn't seem possible. I suppose I could use a contained Medication resource. Also, in V2 when you have an order (RDE) message with RXC components they are all part of the 'one mixture' that is administered as part of one 'infusion' (i.e. all the RXC-Additives are delivered via the same needle and the same bag/line). This is also true for feeding regimens where you have some base and a bunch of nutrition additives. (I'm not a clinician obviously, but I've worked with enough of them to have a cursory idea of the different types of 'infusion meds' and 'nutritions' used for inpatient care.)

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 15:16):

If you're using RXC in v2, you pretty much have to use medicationReference in FHIR. That's the only way you can describe mixtures or compounds. MedicationCodeableConcept only works if the entire description of what you want to be administered is conveyable in a single code (or a single text string)

view this post on Zulip John Silva (Nov 13 2018 at 15:19):

... RXC ... use medicationReference ... another reason WHY Medication needs to have identifier (not just code); I guess this did make it into R4; just need to figure out what to do in the meantime (STU3).

However, I'm still not clear how to represent the Repeat Pattern of 'C' (continuous) in MedRequest.

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 15:20):

Don't understand the relationship between those two things...

view this post on Zulip John Silva (Nov 13 2018 at 15:21):

Medications for 'mixes' of components are usually unique to a specific MedRequest/patient; these aren't necessarily 'stock pharmacy items'

The HL7 V2 spec really gives the reason:

"If the drug or treatment ordered with the RXO segment is a compound drug OR an IV solution, AND there
is not a coded value for OBR-4-universal service ID, which specifies the components (base and all
additives), then the components (the base and additives) are specified by two or more RXC segments."

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 15:33):

Sure - but that doesn't mean they have to have an identifier. If it's not a "standard" compound you can point to, you'd typically just have a "contained" Medication instance inside the MedicationRequest. The reference would point to the contained resource. No need for a unique id.

view this post on Zulip John Silva (Nov 13 2018 at 18:37):

Yes, I mentioned in an earlier response that one option was to use a contained resource but if I don't use a contained resource I really need an identifier (not a code) for the separate Medication resource.

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 21:48):

All you need is an id, not an identifier. I.e. The instance needs a RESTful URL. It does not need a business identifier.

view this post on Zulip Lloyd McKenzie (Nov 13 2018 at 21:49):

All resources have an 'id' element that uniquely identifies them on the server they're hosted on. "identifier" is only needed when you want to capture a business identifier that remains consistent regardless of where the resource is posted.

view this post on Zulip Jean Duteau (Nov 13 2018 at 22:55):

Yes, I mentioned in an earlier response that one option was to use a contained resource but if I don't use a contained resource I really need an identifier (not a code) for the separate Medication resource.

This doesn't follow. You don't have a business identifier for this medication - you have a FHIR resource that has been assigned an arbitrary id and you are going to reference it via that FHIR id.

view this post on Zulip Jean Duteau (Nov 13 2018 at 22:56):

Thanks, that's 'not obvious'. I also can't find this property; is this 'brand new' for R4? This is another example of the complications of trying to provide a useful mapping between the existing "V2 world" and the FHIR world --- it seems like many things are either not considered or not obvious. (I can't believe that the use case for Continuous meds, i.e. infusions, are not part of the 80% rule.)

John - are you able to come and join the Pharmacy WG calls? You obviously have a number of requirements and we would really like to discuss these with you as opposed to finding them piecemeal via Zulip chats. They are every Monday at 4pm eastern.

view this post on Zulip John Silva (Nov 14 2018 at 14:23):

@Jean Duteau - because of the way we use a broker to create bundles from V2 messages, it doesn't query to get the internal ids from the FHIR server, it uses business Ids (generated from some field/fields in the V2 message) to interact with the FHIR server. The V2 message, e.g. RDE has an identifier (e.g. in RXO-1 or RXE-2) that we use as the business identifier of for the specific "instance" of the ordered medication (i.e. NOT the type or class of drug, but the specific instance for the specific patient; obviously very important for 'custom mixture infusions')

I should try to join the Pharmacy WG calls; I guess I could try to put on my calendar and make an effort to attend. (I'm not a clinician but a s/w engineer so my perspective is/may be different and some of my questions may be naive from a clinicians point-of-view.)

So, doesn't anyone have a suggestion on what to use to encode the V2 tbl 0335 concept of a Continuous frequency in MedicationRequest? (It seems like this should be part of the Timing data type since I can imagine it being used for other use cases besides only medication orders.)


Last updated: Apr 12 2022 at 19:14 UTC