0

I am implementing a CDS system, and I would like to use the DataRequirement type to ask for additional information. However, I am having some difficulties to understand the filter elements ("codeFilter" and "dateFilter").

For example, the property "path" of the filter elements is of string type, but what is the format to specify this path? I have been searching some examples from the FHIR specification, and I've tried to follow the "path" in the resource object. I attach below an image with an example and the specification of the resource "MedicationRequest" that is being addressed in this example. Can anyone explain me over this example how to traverse throw the elements? What is the element "code" from the path refering to?

example DataRequirement.codeFilter

Can anyone help me with this issue? Examples of use would be appreciated!

Thanks in advance.

2 Answers2

0

It's referring to the FHIRpath query - see spec.

Vadim Peretokin
  • 2,221
  • 3
  • 29
  • 40
  • Thank you for the reference, Vadi. I've checked the spec but I still don't understand the path from the example "medication.code" in the resource "MedicationRequest". There is no direct child "code" in the "medication" element... Am I missing something? – lgonzalez Sep 15 '17 at 13:55
0

The path element is a FHIRPath, but for simplicity, it assumes the ability to traverse references. Without that, the dereference would have to be explicit, as in:

medicationReference.resolve().code

The spec isn't clear on this, so I will submit a tracker to add that clarification.

  • Thank you Bryn. Then it is responsibility of the EHR implementer to provide the ability to traverse references, isn't it? In addition, I suppose that if the path resolve to a element of type CodeableConcept, then the associated value element should be of type "codeFilter.valueCodeableConcept", and the same for "code" and "Coding" types respectively. Is it like that? – lgonzalez Sep 20 '17 at 10:32