package Ġio . art ic ulus . fhir . model . dst u 3 Ċ Ċ import Ġjava . io . File Ċ import Ġjava . lang . SuppressWarnings Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assertTrue Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠMed ication Statement Data Test Ġ: ĠData Tests () Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 5 Ġ 1 0 3 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 5 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" example 0 0 5 ", Ġ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 (" Care Plan / gp visit ", Ġobj . based On [ 0 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Encounter / f 2 0 3 ", Ġobj . context !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" enter ed - in - error ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . med ication Code able Concept . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 7 6 5 8 0 0 6 ", Ġobj . med ication Code able Concept . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" A mo x ic ill in Ġ( product )", Ġobj . med ication Code able Concept . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 1 - 2 3 ", Ġobj . effective DateTime )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 5 - 0 2 - 2 2 ", Ġobj . date Assert ed )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . information Source !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . information Source !!. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . subject . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . subject . display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" unk ", Ġobj . taken )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient Ġindicated Ġthat Ġthey Ġt ", Ġobj . note [ 0 ]. text )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` med ication statement example 5 ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 4 Ġ 1 0 4 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 4 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" example 0 0 4 ", Ġ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 (" Observation / blood - pressure ", Ġobj . part Of [ 0 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" completed ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . med ication Code able Concept . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 7 6 5 8 0 0 6 ", Ġobj . med ication Code able Concept . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" A mo x ic ill in Ġ( product )", Ġobj . med ication Code able Concept . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 1 - 2 3 ", Ġobj . effective DateTime )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 5 - 0 2 - 2 2 ", Ġobj . date Assert ed )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . information Source !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . information Source !!. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . subject . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . subject . display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" y ", Ġobj . taken )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . reason Code [ 0 ]. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 6 5 3 6 3 0 0 2 ", Ġobj . reason Code [ 0 ]. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" O tit is ĠMedia ", Ġobj . reason Code [ 0 ]. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient Ġindicates Ġthey Ġmiss Ġt ", Ġobj . note [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" one Ġcaps ule Ġthree Ġtimes Ġdaily ", Ġobj . dos age [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 3 , Ġobj . dos age [ 0 ]. timing !!. repeat !!. frequency ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. timing !!. repeat !!. period ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" d ", Ġobj . dos age [ 0 ]. timing !!. repeat !!. period Unit )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( false , Ġif Ġ( obj . dos age [ 0 ]. as Needed Boolean Ġ!= Ġnull ) Ġobj . dos age [ 0 ]. as Needed Boolean Ġelse Ġfalse , Ġ" Field : Ġobj . dos age [ 0 ]. as Needed Boolean ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 6 0 5 4 8 0 0 2 ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Or al ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 3 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. max D ose Per Period !!. num erator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" caps ules ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. num erator !!. unit )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. num erator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 8 5 0 5 5 0 0 1 ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. num erator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" d ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. code )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` med ication statement example 4 ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 3 Ġ 1 0 5 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 3 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" example 0 0 3 ", Ġ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 (" active ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Little ĠP ink ĠP ill Ġfor Ġwater Ġre ", Ġobj . med ication Code able Concept . text )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 2 - 0 1 ", Ġobj . effective DateTime )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 2 - 2 2 ", Ġobj . date Assert ed )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . information Source !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . information Source !!. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . subject . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . subject . display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" y ", Ġobj . taken )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Observation / blood - pressure ", Ġobj . reason Reference [ 0 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient Ġcan Ġnot Ġremember Ġthe Ġ", Ġobj . note [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 , Ġobj . dos age [ 0 ]. sequence ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 1 Ġtablet Ġper Ġday ", Ġobj . dos age [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( false , Ġif Ġ( obj . dos age [ 0 ]. as Needed Boolean Ġ!= Ġnull ) Ġobj . dos age [ 0 ]. as Needed Boolean Ġelse Ġfalse , Ġ" Field : Ġobj . dos age [ 0 ]. as Needed Boolean ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 6 0 5 4 8 0 0 2 ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Or al ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. dose Quantity !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" tab ", Ġobj . dos age [ 0 ]. dose Quantity !!. unit )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / order a ", Ġobj . dos age [ 0 ]. dose Quantity !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" tab ", Ġobj . dos age [ 0 ]. dose Quantity !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. max D ose Per Period !!. num erator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" d ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. code )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` med ication statement example 3 ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 2 Ġ 1 0 6 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 2 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" example 0 0 2 ", Ġ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 (" Med ication ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" med 0 3 0 9 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). id )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / sid / nd c ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 5 0 5 8 0 - 5 0 6 - 0 2 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Ty len ol ĠPM ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( true , Ġif Ġ(( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand Ġ!= Ġnull ) Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand Ġelse Ġfalse , Ġ" Field : Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 8 5 0 5 7 0 0 9 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Film - co ated Ġtablet Ġ( qual ifier ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// www . nlm . nih . gov / re sear ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. item Code able Concept . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 1 5 2 6 6 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. item Code able Concept . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Ac et amin op hen Ġ 5 0 0 ĠMG ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. item Code able Concept . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 5 0 0 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. num erator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. num erator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" mg ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. num erator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. denom inator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / order a ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. denom inator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Tab ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. denom inator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// www . nlm . nih . gov / re sear ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. item Code able Concept . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 9 0 1 8 1 3 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. item Code able Concept . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D iph en hy dr am ine ĠH ydro ch lor ide ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. item Code able Concept . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 2 5 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. num erator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. num erator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" mg ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. num erator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. denom inator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / order a ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. denom inator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Tab ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. denom inator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 9 4 9 4 7 8 8 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). package _ fhir !!. batch [ 0 ]. lot Number )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 7 - 0 5 - 2 2 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). package _ fhir !!. batch [ 0 ]. expiration Date )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" active ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("# med 0 3 0 9 ", Ġobj . med ication Reference . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 5 - 0 1 - 2 3 ", Ġobj . effective DateTime )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 5 - 0 2 - 2 2 ", Ġobj . date Assert ed )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . information Source !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . information Source !!. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . subject . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . subject . display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" n ", Ġobj . taken )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . reason Not Taken [ 0 ]. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 1 6 6 6 4 3 0 0 6 ", Ġobj . reason Not Taken [ 0 ]. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" L iver Ġen zy mes Ġab normal ", Ġobj . reason Not Taken [ 0 ]. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient Ġcan Ġnot Ġtake Ġac et amin ", Ġobj . note [ 0 ]. text )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` med ication statement example 2 ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 1 Ġ 1 0 7 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 1 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" example 0 0 1 ", Ġ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 (" Med ication ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" med 0 3 0 9 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). id )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / sid / nd c ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 5 0 5 8 0 - 5 0 6 - 0 2 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Ty len ol ĠPM ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( true , Ġif Ġ(( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand Ġ!= Ġnull ) Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand Ġelse Ġfalse , Ġ" Field : Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 8 5 0 5 7 0 0 9 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Film - co ated Ġtablet Ġ( qual ifier ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// www . nlm . nih . gov / re sear ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. item Code able Concept . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 1 5 2 6 6 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. item Code able Concept . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Ac et amin op hen Ġ 5 0 0 ĠMG ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. item Code able Concept . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 5 0 0 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. num erator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. num erator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" mg ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. num erator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. denom inator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / order a ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. denom inator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Tab ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 0 ]. amount !!. denom inator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// www . nlm . nih . gov / re sear ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. item Code able Concept . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 9 0 1 8 1 3 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. item Code able Concept . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D iph en hy dr am ine ĠH ydro ch lor ide ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. item Code able Concept . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 2 5 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. num erator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. num erator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" mg ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. num erator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format (( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. denom inator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / order a ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. denom inator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Tab ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). ingredient [ 1 ]. amount !!. denom inator !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 9 4 9 4 7 8 8 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). package _ fhir !!. batch [ 0 ]. lot Number )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 7 - 0 5 - 2 2 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). package _ fhir !!. batch [ 0 ]. expiration Date )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" official ", Ġobj . identifier [ 0 ]. use )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// www . b mc . nl / portal / med s ", Ġobj . identifier [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 1 2 3 4 5 6 8 9 ", Ġobj . identifier [ 0 ]. value )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" active ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / med ic atio ", Ġobj . category !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" in patient ", Ġobj . category !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" In patient ", Ġobj . category !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("# med 0 3 0 9 ", Ġobj . med ication Reference . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 5 - 0 1 - 2 3 ", Ġobj . effective DateTime )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 5 - 0 2 - 2 2 ", Ġobj . date Assert ed )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . information Source !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . information Source !!. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . subject . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . subject . display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Request / med rx 0 0 2 ", Ġobj . derived From [ 0 ]. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" n ", Ġobj . taken )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . reason Code [ 0 ]. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 2 9 1 4 0 0 8 ", Ġobj . reason Code [ 0 ]. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Rest less ĠLeg s ", Ġobj . reason Code [ 0 ]. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient Ġindicates Ġthey Ġmiss Ġt ", Ġobj . note [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 , Ġobj . dos age [ 0 ]. sequence ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 1 - 2 Ġtable ts Ġonce Ġdaily Ġat Ġbed ", Ġobj . dos age [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" T aking Ġat Ġbed time ", Ġobj . dos age [ 0 ]. additional Instruction [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 , Ġobj . dos age [ 0 ]. timing !!. repeat !!. frequency ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. timing !!. repeat !!. period ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" d ", Ġobj . dos age [ 0 ]. timing !!. repeat !!. period Unit )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . dos age [ 0 ]. as Needed Code able Concept !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 2 9 1 4 0 0 8 ", Ġobj . dos age [ 0 ]. as Needed Code able Concept !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Rest less ĠLeg s ", Ġobj . dos age [ 0 ]. as Needed Code able Concept !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 6 6 4 3 0 0 6 ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Or al ĠRoute ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. dose Range !!. low !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" TAB ", Ġobj . dos age [ 0 ]. dose Range !!. low !!. unit )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / order a ", Ġobj . dos age [ 0 ]. dose Range !!. low !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" TAB ", Ġobj . dos age [ 0 ]. dose Range !!. low !!. code )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 1 Ġ 1 0 8 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 1 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 2 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. dose Range !!. high !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" TAB ", Ġobj . dos age [ 0 ]. dose Range !!. high !!. unit )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// hl 7 . org / fhir / v 3 / order a ", Ġobj . dos age [ 0 ]. dose Range !!. high !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" TAB ", Ġobj . dos age [ 0 ]. dose Range !!. high !!. code )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` med ication statement example 1 ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 7 Ġ 1 0 9 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 7 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" example 0 0 7 ", Ġ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 (" Med ication ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" med 0 3 1 5 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). id )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// www . nlm . nih . gov / re sear ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 5 8 7 9 3 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" M ome tas one ĠF uro ate Ġ 0 . 0 5 mg / Act ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). code !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( false , Ġif Ġ(( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand Ġ!= Ġnull ) Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand Ġelse Ġfalse , Ġ" Field : Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). is Brand ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 3 8 5 1 5 7 0 0 7 ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" N as al ĠSpr ay ", Ġ( obj . contained [ 0 ] Ġas ĠMed ication ). form !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" int ended ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("# med 0 3 1 5 ", Ġobj . med ication Reference . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . information Source !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . information Source !!. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . subject . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . subject . display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" y ", Ġobj . taken )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" patient Ġplans Ġto Ġstart Ġusing Ġ", Ġobj . note [ 0 ]. text )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` med ication statement example 7 ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` med ication statement example 6 Ġ 1 1 0 ĠTest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjson Ġ= ĠFile ("./ src / test / resources / model / sample _ data / dst u 3 / med ication statement example 6 . json "). read Text And Close () ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġmapper . fromJson ( json , ĠMed ication Statement :: class . java ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Med ication Statement ", Ġobj . resourceType )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" example 0 0 6 ", Ġ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 (" active ", Ġobj . status )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . med ication Code able Concept . coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 7 6 5 8 0 0 6 ", Ġobj . med ication Code able Concept . coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" A mo x ic ill in Ġ( product )", Ġobj . med ication Code able Concept . coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 2 - 0 1 ", Ġobj . effective DateTime )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 0 1 4 - 0 2 - 2 2 ", Ġobj . date Assert ed )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Related Person / pe ter ", Ġobj . information Source !!. reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" P eter ĠCh al mers ", Ġobj . information Source !!. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Patient / pat 1 ", Ġobj . subject . reference )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" D onal d ĠD uck ", Ġobj . subject . display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" n ", Ġobj . taken )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" F ather Ġindicates Ġthey Ġmiss Ġth ", Ġobj . note [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 , Ġobj . dos age [ 0 ]. sequence ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 5 ml Ġthree Ġtimes Ġdaily ", Ġobj . dos age [ 0 ]. text )) ĊĠĠĠĠĠĠĠ ĠassertEquals ( false , Ġif Ġ( obj . dos age [ 0 ]. as Needed Boolean Ġ!= Ġnull ) Ġobj . dos age [ 0 ]. as Needed Boolean Ġelse Ġfalse , Ġ" Field : Ġobj . dos age [ 0 ]. as Needed Boolean ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// sn ome d . info / s ct ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" 2 6 0 5 4 8 0 0 2 ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" Or al ", Ġobj . dos age [ 0 ]. route !!. coding [ 0 ]. display )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 5 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. dose Quantity !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" m L ", Ġobj . dos age [ 0 ]. dose Quantity !!. unit )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġobj . dos age [ 0 ]. dose Quantity !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" m L ", Ġobj . dos age [ 0 ]. dose Quantity !!. code )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 3 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. max D ose Per Period !!. num erator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match ("% . 2 f ". format ( 1 f ), Ġ"% . 2 f ". format ( obj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. value ))) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" http :// unit sof measure . org ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. system )) ĊĠĠĠĠĠĠĠ ĠassertTrue ( string Match (" d ", Ġobj . dos age [ 0 ]. max D ose Per Period !!. denom inator !!. code )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` med ication statement example 6 ĠInit ` (@ SuppressWarnings (" unused ") Ġobj : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġobj . identifier Ġ Ġ// ĠNo - Op Ġto Ġsup r ress Ġunused Ġwarnings ĊĠĠĠ Ġ} Ċ } Ċ