<s> import os <EOL> import io <EOL> import unittest <EOL> import json <EOL> from . import condition <EOL> from . fhirdate import FHIRDate <EOL> class ConditionTests ( unittest . TestCase ) : <EOL> def instantiate_from ( self , filename ) : <EOL> datadir = os . environ . get ( '<STR_LIT>' ) or '<STR_LIT>' <EOL> with io . open ( os . path . join ( datadir , filename ) , '<STR_LIT:r>' , encoding = '<STR_LIT:utf-8>' ) as handle : <EOL> js = json . load ( handle ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> return condition . Condition ( js ) <EOL> def testCondition1 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition1 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition1 ( inst2 ) <EOL> def implCondition1 ( self , inst ) : <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . text , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition2 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition2 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition2 ( inst2 ) <EOL> def implCondition2 ( self , inst ) : <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . stage . summary . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . stage . summary . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . stage . summary . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition3 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition3 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition3 ( inst2 ) <EOL> def implCondition3 ( self , inst ) : <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition4 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition4 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition4 ( inst2 ) <EOL> def implCondition4 ( self , inst ) : <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . evidence [ <NUM_LIT:0> ] . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition5 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition5 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition5 ( inst2 ) <EOL> def implCondition5 ( self , inst ) : <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetQuantity . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetQuantity . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetQuantity . unit , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetQuantity . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition6 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition6 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition6 ( inst2 ) <EOL> def implCondition6 ( self , inst ) : <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition7 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition7 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition7 ( inst2 ) <EOL> def implCondition7 ( self , inst ) : <EOL> self . assertEqual ( inst . abatementDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . abatementDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . stage . summary . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . stage . summary . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . stage . summary . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition8 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition8 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition8 ( inst2 ) <EOL> def implCondition8 ( self , inst ) : <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . dateRecorded . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . dateRecorded . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition9 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition9 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition9 ( inst2 ) <EOL> def implCondition9 ( self , inst ) : <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . clinicalStatus , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . text , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) <EOL> def testCondition10 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implCondition10 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = condition . Condition ( js ) <EOL> self . implCondition10 ( inst2 ) <EOL> def implCondition10 ( self , inst ) : <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . bodySite [ <NUM_LIT:0> ] . text , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . category . coding [ <NUM_LIT:1> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . code . text , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . onsetDateTime . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . onsetDateTime . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . display , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . severity . coding [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . verificationStatus , "<STR_LIT>" ) </s>
