#NEWLINE# def implClaimResponse1( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . created . date , FHIRDate ( '2014-08-16' ) . date ) #NEWLINE# self . assertEqual ( inst . created . as_json ( ) , '2014-08-16' ) #NEWLINE# self . assertEqual ( inst . disposition , 'Claim settled as per contract.' ) #NEWLINE# self . assertEqual ( inst . id , 'R3500' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . system , 'http://www.BenefitsInc.com/fhir/remittance' ) #NEWLINE# self . assertEqual ( inst . identifier [ 0 ] . value , 'R3500' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 0 ] . amount . code , 'USD' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 0 ] . amount . system , 'urn:iso:std:iso:4217' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 0 ] . amount . value , 135.57 ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 0 ] . code . code , 'eligible' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 1 ] . amount . code , 'USD' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 1 ] . amount . system , 'urn:iso:std:iso:4217' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 1 ] . amount . value , 10.0 ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 1 ] . code . code , 'copay' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 2 ] . code . code , 'eligpercent' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 2 ] . value , 80.0 ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 3 ] . amount . code , 'USD' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 3 ] . amount . system , 'urn:iso:std:iso:4217' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 3 ] . amount . value , 100.47 ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . adjudication [ 3 ] . code . code , 'benefit' ) #NEWLINE# self . assertEqual ( inst . item [ 0 ] . sequenceLinkId , 1 ) #NEWLINE# self . assertEqual ( self . outcome , 'complete' ) #NEWLINE# self . assertEqual ( inst . payeeType . code , 'provider' ) #NEWLINE# self . assertEqual ( inst . payeeType . system , 'http://hl7.org/fhir/payeetype' ) #NEWLINE# self . assertEqual ( inst . paymentAmount . code , 'USD' ) #NEWLINE# self . assertEqual ( inst . paymentAmount . system , 'urn:iso:std:iso:4217' ) #NEWLINE# self . assertEqual ( inst . paymentAmount . value , 100.47 ) #NEWLINE# self . assertEqual ( inst . paymentDate . date , FHIRDate ( '2014-08-31' ) . date ) #NEWLINE# self . assertEqual ( inst . paymentDate . as_json ( ) , '2014-08-31' ) #NEWLINE# self . assertEqual ( inst . paymentRef . system , 'http://www.BenefitsInc.com/fhir/paymentRef' ) #NEWLINE# self . assertEqual ( inst . paymentRef . value , '201408-2-1569478' ) #NEWLINE# self . assertEqual ( inst . text . div , '<div>A human-readable rendering of the ClaimResponse</div>' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' ) #NEWLINE# self . assertEqual ( inst . totalBenefit . code , 'USD' ) #NEWLINE# self . assertEqual ( inst . totalBenefit . system , 'urn:iso:std:iso:4217' ) #NEWLINE# self . assertEqual ( inst . totalBenefit . value , 100.47 ) #NEWLINE# self . assertEqual ( inst . totalCost . code , 'USD' ) #NEWLINE# self . assertEqual ( inst . totalCost . system , 'urn:iso:std:iso:4217' ) #NEWLINE# self . assertEqual ( inst . totalCost . value , 135.57 )