#NEWLINE# def implNamingSystem1( self , inst ) : #NEWLINE# #INDENT# self . assertEqual ( inst . contact [ 0 ] . name , 'HL7 Australia FHIR Team' ) #NEWLINE# self . assertEqual ( inst . contact [ 0 ] . telecom [ 0 ] . system , 'other' ) #NEWLINE# self . assertEqual ( inst . contact [ 0 ] . telecom [ 0 ] . value , 'http://hl7-australia.wikispaces.com/FHIR+Australia' ) #NEWLINE# self . assertEqual ( inst . date . date , FHIRDate ( '2015-08-31' ) . date ) #NEWLINE# self . assertEqual ( inst . date . as_json ( ) , '2015-08-31' ) #NEWLINE# self . assertEqual ( inst . description , 'Australian HI Identifier as established by relevant regulations etc' ) #NEWLINE# self . assertEqual ( inst . id , 'example-id' ) #NEWLINE# self . assertEqual ( inst . kind , 'identifier' ) #NEWLINE# self . assertEqual ( inst . name , 'Austalian Healthcare Identifier - Individual' ) #NEWLINE# self . assertEqual ( inst . publisher , 'HL7 Australia on behalf of NEHTA' ) #NEWLINE# self . assertEqual ( inst . responsible , 'HI Service Operator / NEHTA' ) #NEWLINE# self . assertEqual ( inst . status , 'active' ) #NEWLINE# self . assertEqual ( inst . text . status , 'generated' ) #NEWLINE# self . assertEqual ( inst . type . coding [ 0 ] . code , 'NI' ) #NEWLINE# self . assertEqual ( inst . type . coding [ 0 ] . display , 'National unique individual identifier' ) #NEWLINE# self . assertEqual ( inst . type . coding [ 0 ] . system , 'http://hl7.org/fhir/v2/0203' ) #NEWLINE# self . assertEqual ( inst . type . text , 'IHI' ) #NEWLINE# self . assertEqual ( inst . uniqueId [ 0 ] . type , 'oid' ) #NEWLINE# self . assertEqual ( inst . uniqueId [ 0 ] . value , '1.2.36.1.2001.1003.0' ) #NEWLINE# self . assertEqual ( inst . uniqueId [ 1 ] . period . start . date , FHIRDate ( '2015-08-21' ) . date ) #NEWLINE# self . assertEqual ( inst . uniqueId [ 1 ] . period . start . as_json ( ) , '2015-08-21' ) #NEWLINE# self . assertTrue ( inst . uniqueId [ 1 ] . preferred ) #NEWLINE# self . assertEqual ( inst . uniqueId [ 1 ] . type , 'uri' ) #NEWLINE# self . assertEqual ( inst . uniqueId [ 1 ] . value , 'http://ns.electronichealth.net.au/id/hi/ihi/1.0' ) #NEWLINE# self . assertEqual ( inst . usage , 'Used in Australia for identifying patients' ) #NEWLINE# self . assertEqual ( inst . useContext [ 0 ] . coding [ 0 ] . code , 'AU' ) #NEWLINE# self . assertEqual ( inst . useContext [ 0 ] . coding [ 0 ] . system , 'urn:iso:std:iso:3166' )