<s> import os <EOL> import io <EOL> import unittest <EOL> import json <EOL> from . import claim <EOL> from . fhirdate import FHIRDate <EOL> class ClaimTests ( 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 claim . Claim ( js ) <EOL> def testClaim1 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim1 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim1 ( inst2 ) <EOL> def implClaim1 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim2 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim2 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim2 ( inst2 ) <EOL> def implClaim2 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . bodySite . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . bodySite . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . sequence , <NUM_LIT:2> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . subSite [ <NUM_LIT:0> ] . code , "<STR_LIT:L>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . subSite [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . bodySite . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . bodySite . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . sequence , <NUM_LIT:2> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . sequence , <NUM_LIT:3> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim3 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim3 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim3 ( inst2 ) <EOL> def implClaim3 ( self , inst ) : <EOL> self . assertEqual ( inst . contained [ <NUM_LIT:0> ] . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . contained [ <NUM_LIT:1> ] . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . contained [ <NUM_LIT:2> ] . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . contained [ <NUM_LIT:3> ] . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . contained [ <NUM_LIT:4> ] . id , "<STR_LIT>" ) <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim4 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim4 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim4 ( inst2 ) <EOL> def implClaim4 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . type . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . sequence , <NUM_LIT:2> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . type . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . sequence , <NUM_LIT:3> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . type . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:3> ] . quantity . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:3> ] . sequence , <NUM_LIT:4> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:3> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:3> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:3> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:3> ] . type . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . quantity . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . sequence , <NUM_LIT:5> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . type . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:4> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . diagnosisLinkId [ <NUM_LIT:0> ] , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . bodySite . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . bodySite . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . sequence , <NUM_LIT:2> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . subSite [ <NUM_LIT:0> ] . code , "<STR_LIT:L>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . subSite [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:1> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . bodySite . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . bodySite . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . sequence , <NUM_LIT:2> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . detail [ <NUM_LIT:1> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . sequence , <NUM_LIT:3> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:2> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim5 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim5 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim5 ( inst2 ) <EOL> def implClaim5 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim6 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim6 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim6 ( inst2 ) <EOL> def implClaim6 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim7 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim7 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim7 ( inst2 ) <EOL> def implClaim7 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . quantity . value , <NUM_LIT:2> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . sequence , <NUM_LIT:2> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:1> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . factor , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . sequence , <NUM_LIT:3> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . detail [ <NUM_LIT:2> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim8 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim8 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim8 ( inst2 ) <EOL> def implClaim8 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) <EOL> def testClaim9 ( self ) : <EOL> inst = self . instantiate_from ( "<STR_LIT>" ) <EOL> self . assertIsNotNone ( inst , "<STR_LIT>" ) <EOL> self . implClaim9 ( inst ) <EOL> js = inst . as_json ( ) <EOL> self . assertEqual ( "<STR_LIT>" , js [ "<STR_LIT>" ] ) <EOL> inst2 = claim . Claim ( js ) <EOL> self . implClaim9 ( inst2 ) <EOL> def implClaim9 ( self , inst ) : <EOL> self . assertTrue ( inst . coverage [ <NUM_LIT:0> ] . focal ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . relationship . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . coverage [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . created . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . created . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . diagnosis . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . diagnosis [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . id , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . identifier [ <NUM_LIT:0> ] . value , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . net . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . sequence , <NUM_LIT:1> ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . service . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . date , FHIRDate ( "<STR_LIT>" ) . date ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . serviceDate . as_json ( ) , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . system , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . item [ <NUM_LIT:0> ] . unitPrice . value , <NUM_LIT> ) <EOL> self . assertEqual ( inst . payee . type . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . priority . code , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . div , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . text . status , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . type , "<STR_LIT>" ) <EOL> self . assertEqual ( inst . use , "<STR_LIT>" ) </s>
