The fifth in a series of Iguana 5 tutorial videos. In this video, we continue our interface design by adding the ability to find and map a patient's weight. Though seemingly simple, this is actually an example of a non-trivial mapping.
This tutorial is about showing the power of what a scripting based mapper can do. While we're using a specific example from HL7 with patient weight mapping, the same concepts can be applied to many different problems.
Patient weight and height are not actually properties of the PID patient identification segment like you might think. They are considered lab results in HL7. So the appear in their own OBX segment.
- Example of a non trivial mapping
- Introduce the problem - show the data.
- Introduce concept of the engine libraries being very minimal
- Put in require function for hl7util
- Show editing of the ObxWeightFilter function
- Explain about the :S() casting to a string - we have a "Node Tree" which is not a string so to compare it we have to convert it a string
This is very specific example of very generic kind of problem that one faces in HL7 often. For instance dealing with babies and looping through the next of kin to find:
- The Mother
- The legal guardian - not always the same as the mother in case of mental illness or drug addiction.
Another good example of this type of problem is phone numbers coming a modern system like an iPhone vs. an older system which just had home phone and business phone.