FHIR Chat · Observation LOINC + Answer representation · implementers

Stream: implementers

Topic: Observation LOINC + Answer representation


view this post on Zulip Matt Storer (Feb 18 2022 at 21:31):

Hi. I've been looking around for examples for what I'm trying to do, but I haven't had much luck there so hoping maybe someone here can point me in the right direction?

I am trying to craft an Observation resource with code=http://loinc.org|9855-8 (https://loinc.org/9855-8/). This code has an associated Answer List (https://loinc.org/LL740-2/), one of which is "Other, Specify:" (LA46-8). I want the resultant Observation to indicate this answer, and specify some text associated with it.

Does that make sense?

What would such an Observation look like? Would it just be a matter of adding a component to this Observation with code=http://loinc.org|LA46-8 and valueString="whatever"? Is it that simple?

Thanks for any assistance and please let me know if anything didn't make sense.

Matt

view this post on Zulip Lloyd McKenzie (Feb 18 2022 at 22:57):

You'd have an Observation with the desired code (code + system) and valueCodeableConcept with the LOINC Answer code and system as one of the codings. You'd also have the CodeableConcept.text with your string text

view this post on Zulip Rob Hausam (Feb 18 2022 at 22:59):

@Matt Storer Yes, I was going to say the same thing (but @Lloyd McKenzie beat me to it by about 10 seconds!).

view this post on Zulip Rob Hausam (Feb 18 2022 at 23:01):

If you have further questions or items to discuss you might consider posting them to the Orders and Observation WG stream.

view this post on Zulip Matt Storer (Feb 18 2022 at 23:39):

Lloyd McKenzie said:

You'd have an Observation with the desired code (code + system) and valueCodeableConcept with the LOINC Answer code and system as one of the codings. You'd also have the CodeableConcept.text with your string text

perfect, thanks!

view this post on Zulip Matt Storer (Feb 18 2022 at 23:46):

this look right?

    Observation o = new Observation();
    // ...
    o.getCode().addCoding()
            .setCode("9855-8")
            .setSystem("http://loinc.org");

    o.setValue(new CodeableConcept());
    o.getValueCodeableConcept()
            .setText("some answer")
            .addCoding()
                .setCode("LA46-8")
                .setSystem("http://loinc.org");

view this post on Zulip Lloyd McKenzie (Feb 19 2022 at 03:37):

You'll need to populate the subject and probably the time, performer and ideally the category.


Last updated: Apr 12 2022 at 19:14 UTC