package Ġio . art ic ulus . fhir . model . dst u 3 Ċ Ċ import Ġjava . io . File Ċ import Ġjava . lang . SuppressWarnings Ċ import Ġkotlin . test . assertTrue Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠDet ected Issue Data Test Ġ: ĠData Tests () Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` detected issue - example - all ergy Ġ 4 2 6 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / detected issue - example - all ergy . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠDet ected Issue :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Detected Issue ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" all ergy ", Ġobj . id )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" generated ", Ġobj . text !!. status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("< div Ġxmlns =\" http :// www . w 3 . org ", Ġobj . text !!. div )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" final ", Ġobj . status )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` detected issue - example - all ergy ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` detected issue - example - dup Ġ 4 2 7 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / detected issue - example - dup . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠDet ected Issue :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Detected Issue ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" duplicate ", Ġobj . id )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" generated ", Ġobj . text !!. status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("< div Ġxmlns =\" http :// www . w 3 . org ", Ġobj . text !!. div )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" official ", Ġobj . identifier !!. use )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// example . org ", Ġobj . identifier !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 1 2 3 4 5 ", Ġobj . identifier !!. value )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" final ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / Act Cod ", Ġobj . category !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" DUP TH PY ", Ġobj . category !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Duplicate ĠTh er apy ĠAlert ", Ġobj . category !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / dic om ", Ġobj . patient !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 3 - 0 5 - 0 8 ", Ġobj . date )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Device / software ", Ġobj . author !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Procedure Request / di ", Ġobj . imp licated [ 0 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Chest ĠCT Ġ- Ġordered ĠMay Ġ 8 , Ġ 2 0 1 ", Ġobj . imp licated [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Imaging Study / example ", Ġobj . imp licated [ 1 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Image Ġ 1 Ġfrom ĠSeries Ġ 3 : ĠCT ĠI ma ", Ġobj . imp licated [ 1 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Similar Ġtest Ġwas Ġperformed Ġwi ", Ġobj . detail )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// www . tm hp . com / Radio logy ", Ġobj . reference )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` detected issue - example - dup ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` detected issue - example Ġ 4 2 8 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / detected issue - example . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠDet ected Issue :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Detected Issue ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" ddi ", Ġobj . id )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" generated ", Ġobj . text !!. status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("< div Ġxmlns =\" http :// www . w 3 . org ", Ġobj . text !!. div )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" final ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / Act Cod ", Ġobj . category !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" DR G ", Ġobj . category !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Dr ug ĠInteraction ĠAlert ", Ġobj . category !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" high ", Ġobj . severity )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 1 - 0 5 ", Ġobj . date )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Device / software ", Ġobj . author !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement / example 0 0 ", Ġobj . imp licated [ 0 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 5 0 0 Ġmg ĠAc et amin op hen Ġtablet Ġ 1 ", Ġobj . imp licated [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Request / med rx 0 3 3 1 ", Ġobj . imp licated [ 1 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" War far in Ġ 1 ĠMG ĠTAB Ġpre scribed Ġ", Ġobj . imp licated [ 1 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Risk Ġof Ġinternal Ġble ed ing . Ġ ĠT ", Ġobj . detail )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / Act Cod ", Ġobj . mit igation [ 0 ]. action . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 1 3 ", Ġobj . mit igation [ 0 ]. action . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Stopped ĠConcurrent ĠTh er apy ", Ġobj . mit igation [ 0 ]. action . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Ask ed Ġpatient Ġto Ġdis continue Ġ", Ġobj . mit igation [ 0 ]. action . text )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 1 - 0 5 ", Ġobj . mit igation [ 0 ]. date )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Pract itioner / example ", Ġobj . mit igation [ 0 ]. author !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Dr . ĠAdam ĠCare ful ", Ġobj . mit igation [ 0 ]. author !!. display )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` detected issue - example ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` detected issue - example - lab Ġ 4 2 9 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / detected issue - example - lab . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠDet ected Issue :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Detected Issue ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" lab ", Ġobj . id )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" generated ", Ġobj . text !!. status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("< div Ġxmlns =\" http :// www . w 3 . org ", Ġobj . text !!. div )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" final ", Ġobj . status )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` detected issue - example - lab ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} Ċ } Ċ