IsantePlus / openmrs-module-labintegration

Module for integration with lab systems.
Mozilla Public License 2.0
1 stars 7 forks source link

the notes are not displaying in the comments field for test results #53

Open ccwhite333 opened 1 year ago

ccwhite333 commented 1 year ago

the HL7 NTE values should be added to the test result comment field- but they are not showing up.

https://github.com/IsantePlus/openmrs-module-labintegration/blob/4d162eaaf1e55bbc4613b37da68b8278eb24a845/api/src/main/java/org/openmrs/module/labintegration/api/hl7/handler/OruR01Handler.java#L340

sample HL7 with NTE fields https://sedish-haiti.org/#!/transactions/643e7758993b521786eded54

MSH|^~\&|SOFTLAB||||20230418065549-0400||ORU^R01|00000015|P|2.5.1 PID||11441211^^^^MR^114412|11441211^^^^MR^114412||DEMO^NEW||19880322[0000]|M||U|^^^ART|||||||^90ca1645-41c5-4247-b485-28db6a738b39 PV1||R|11412||||11412^HSDA^PRESTATAIRE^^^^^^^^^^L||||||||||^^^^^^^^^^^^L|||||||||||||||||||||||||||20230412||||||8ec96629-c2d8-4f78-b1c7-2b627a3e066d^f037e97b-471e-4898-a07c-b8e169e0ddc4^^699866eb-c6da-42f3-a09e-e2f652d73bf6^90ca1645-41c5-4247-b485-28db6a738b39 ORC|RE|1141229|1|96120000|||^^^202304121707-0400^^R||202304121707|HISTC||11412^HSDA^PRESTATAIRE^^^^^^^^^^L|11412 OBR|1|1141229|1|f037e97b-471e-4898-a07c-b8e169e0ddc4|||202304121707|||HISTC|N|||202304171451||11412^HSDA^PRESTATAIRE^^^^^^^^^^L||||||202304180655-0400|||F||^^^202304121707-0400^^R|||||||MCN OBX|1|ST|25836-8^^LN^LBCV2^Copies / ml (CVi-2)^L|0|^3050||||||F|||202304171526||MCN|||202304180655 OBX|2|ST|25836-8^^LN^LBLOG^Log (Copies / ml)^L|1|2,0||||||F|||202304171526||MCN|||202304180655 NTE|1 NTE|2 NTE|3 NTE|4 NTE|5||Commentaire: >=1000 copies/ml: patient en échec thérapeutique. NTE|6|| Limite de détection sur DBS <839 copies/ml.

ccwhite333 commented 1 year ago

I see that this function is returning 0 - parent.getNTEReps() on line 340