hapifhir / hapi-hl7v2

280 stars 137 forks source link

Unit Tests - are they up to date? #60

Open milkshakeuk opened 3 years ago

milkshakeuk commented 3 years ago

I was looking at EscapeTest.java speficically the test Line 87

MSH|^~\&|ULTRA|TML|OLIS|OLIS|200911231509||ORU|5951|T|2.3
PID|||7005728^^^TML^MR||LEIGHTON^RACHEL^DIAMOND||19310313|F|||200 ANYWHERE ST^^TORONTO^ON^M6H 2T9||(416)888-8888||||||1014071185^KR
PV1|1||OLIS||||OLIST^BLAKE^DONALD^THOR^^^^^921379^^^^OLIST|||||||||^N
ORC|RE||T09-106575-CHO-0^^OLIS_Site_ID^ISO|||||||||OLIST^BLAKE^DONALD^THOR^^^^L^921379
OBR|0||T09-106575-CHO-0^^OLIS_Site_ID^ISO|CHO^CHOLESTEROL (SERUM)^HL79901 literal|||200911231455|||||||200911231455||OLIST^BLAKE^DONALD^THOR^^^^L^921379||10015716|10015716|T09-106575|MOHLTC|200911231509||B1|F||1^^^200911231455^^R
NTE|1|L|\.br\                  Lipid - Target Levels for Treatment \.br\\.br\  ****************************************************************\.br\  \F\  Risk   \F\                  \F\                                 \F\\.br\  \F\ Level   \F\ 10-year CAD risk \F\         Recommendations         \F\\.br\  \F\---------\F\------------------\F\---------------------------------\F\\.br\  \F\         \F\                  \F\Treatment targets:               \F\\.br\  \F\High*    \F\      >=20%       \F\ Primary:   LDL-C    <2.0 mmol/L \F\\.br\  \F\         \F\                  \F\ Secondary: TC/HDL-C <4.0        \F\\.br\  \F\---------\F\------------------\F\---------------------------------\F\\.br\  \F\         \F\                  \F\Treat when:                      \F\\.br\  \F\Moderate \F\    10 - 19 %     \F\            LDL-C    >=3.5 mmol/L\F\\.br\  \F\         \F\                  \F\         or TC/HDL-C >=5.0       \F\\.br\  \F\---------\F\------------------\F\---------------------------------\F\\.br\  \F\         \F\                  \F\Treat when:                      \F\\.br\  \F\Low      \F\      <10%        \F\            LDL-C    >=5.0 mmol/L\F\\.br\  \F\         \F\                  \F\         or TC/HDL-C >=6.0       \F\\.br\****************************************************************\.br\  Notes:\.br\  *  10-year coronary artery disease (CAD) risk is accessed by\.br\     Framingham risk estimate tables.\.br\  *  *High risk includes CAD, peripheral artery disease, cerebro-\.br\     vascular disease (CVD) and most patients with chronic kidney\.br\     disease or established diabetes mellitus.\.br\  *  The patient must have been fasting for at least 12 hours prior\.br\     to taking ablood sample.\.br\  *  Calculation:  LDL-C (mmol/L) = Chol - (HDL-C + 0.46 x TG).\.br\     Calculation is invalid if TG exceed 4.5 mmol/L.\.br\  Ref:  McPherson R et al. Can J Cardiol. 2006 Sep;22(11):913-27
OBX|1|NM|Z049107^Cholesterol-serum^L||2.30|mmol/L|||||F|||200911231508|STP
OBX|2|FT|Z101068^Tech Comment^L||Lab STP||||||F|||200911231508|STP

I took the example message and pasted it into Hapi Test Panel V2.3 but it says the message is unknow, so how could this test pass? or does it even, im struggling to run this unit test.

image