urn:refnet:patient

The patient data island is used to represent metadata of the patient and can be represented in conjunction with the mime type and in the future an associated classification scheme.

text/xml

  • Patient date of birth is represented as yyyy-MM-dd.
  • Gender is represented by an integer as:
    • 0=male
    • 1=female
    • 2=indeterminate
    • 3=unkown

XML Schema

<xsd:schema elementFormDefault="qualified" targetNamespace="urn:global-health:referralnet" 
            xmlns:tns="urn:global-health:referralnet" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
  <xsd:simpleType name="StateType">
     <xsd:restriction base="xsd:int">
        <xsd:enumeration value="0"/> <!-- N/A -->
        <xsd:enumeration value="1"/> <!-- Northern Territory -->
        <xsd:enumeration value="2"/> <!-- Victoria -->
        <xsd:enumeration value="3"/> <!-- Western Australia -->
        <xsd:enumeration value="4"/> <!-- New South Wales -->
        <xsd:enumeration value="5"/> <!-- Queensland -->
        <xsd:enumeration value="6"/> <!-- Tasmania -->
        <xsd:enumeration value="7"/> <!-- ACT -->
        <xsd:enumeration value="8"/> <!-- South Australia -->
     </xsd:restriction>
  </xsd:simpleType>
 
  <complexType name="Patient">
    <sequence>
      <element name="urNumber" type="xsd:string" use="optional"/>
      <element name="title" type="xsd:string" use="optional"/>
      <element name="firstName" type="xsd:string" use="optional"/>
      <element name="lastName" type="xsd:string" use="optional"/>
      <element name="gender" type="xsd:int" use="optional"/>
      <element name="dateOfBirth" type="xsd:string" use="optional"/>
      <element name="street" type="xsd:string" use="optional"/>
      <element name="state" type="tns:StateType" use="optional"/>
      <element name="suburb" type="xsd:string" use="optional"/>
      <element name="postCode" type="xsd:string" use="optional"/>
      <element name="businessPhone" type="xsd:string" use="optional"/>
      <element name="homePhone" type="xsd:string" use="optional"/>
    </sequence>
  </complexType>
</xsd:schema>
<patient>
  <urNumber>ur: foo</urNumber>
  <title>Mr</title>
  <firstName>Alex</firstName>
  <lastName>Shaykevich</lastName>
  <gender>0</gender>
  <dateOfBirth>2008-10-27</dateOfBirth>
  <street>Foo Rd</street>
  <state>1</state>
  <suburb>Fooville</suburb>
  <postCode>535345</postCode>
  <businessPhone>3453453</businessPhone>
  <homePhone>65034988</homePhone>
</patient>

text/hl7

Sample REF I12 HL7 message

MSH|^~\&|ReferralNet|Mr Tim Clarke|HL7 v2.3.1|Mr Tim Clarke|20090311032912||REF^I12|19bade4a-e01c-4ec5-aa5b-57fd269a3457|P|2.3.1
RF1|P^Pending^HL70283|R^Routine^HL70280|GRF^General referral^HL70281|WR^Send Written Report^HL70282||b00bce0d-9de8-4ec0-9360-ff9007aab5e0|20090311032912|||S^Second, Third or Further Opinion^HL70336
PRD|RP^Referring provider^HL70286|Clarke^Tim
PRD|RT^Referred to provider^HL70286|Clarke^Tim
PID|1||""||Illness^Serious^^^Mr||19701121|M|||116 Dalkeith Road^^NEDLANDS^WA^6009||08 9283 2723|08 9283 2727
OBR|1|b00bce0d-9de8-4ec0-9360-ff9007aab5e0||REF^Referral letter^ReferralNet Client|||20090311032912|||||||||1^Clarke^Tim|||||||||F
OBX|1|FT|Document^RTF|1|{\E\rtf1\E\sste16000\E\ansi\E\deflang3081\E\ftnbj\E\uc1\E\deff0{\E\fonttbl{\E\f0 \E\froman Times New Roman;}{\E\f1 \E\fswiss Century Gothic;}{\E\f2 \E\fmodern Courier New;}{\E\f3 \E\fswiss Arial;}{\E\f4 \E\froman sans-serif;}}{\E\colortbl ;\E\red0\E\green0\E\blue0 ;\E\red255\E\green255\E\blue255 ;\E\red192\E\green192\E\blue192 ;}{\E\stylesheet{\E\f0\E\fs20 Normal;}{\E\cs1 Default Paragraph Font;}}{\E\*\E\revtbl{Unknown;}}\E\paperw12240\E\paperh15840\E\margl1800\E\margr1800\E\margt1440\E\margb1440\E\headery720\E\footery720\E\htmautsp1\E\nogrowautofit\E\deftab720\E\formshade\E\fet4\E\aendnotes\E\aftnnrlc\E\pgbrdrhead\E\pgbrdrfoot\E\sectd\E\pgwsxn12240\E\pghsxn15840\E\marglsxn1800\E\margrsxn1800\E\margtsxn1440\E\margbsxn1440\E\headery720\E\footery720\E\sbkpage\E\pgncont\E\pgndec\E\plain\E\plain\E\f0\E\fs20\E\ql\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\par\E\trowd\E\trgaph60\E\trleft0\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrl\E\brdrs\E\brdrw15\E\brdrcf3\E\clpadt480\E\clpadft3\E\clpadr239\E\clpadfr3\E\cellx1592\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx2780\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clpadt480\E\clpadft3\E\clpadr239\E\clpadfr3\E\cellx4537\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx5710\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clpadt480\E\clpadft3\E\clpadr239\E\clpadfr3\E\cellx7617\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8640\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b Surname:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 Illness\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b First Name:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 Serious\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b Date of Birth:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 21/11/1970\E\cell\E\pard\E\intbl\E\s0\E\ql\E\sb100\E\sbauto1\E\sa100\E\saauto1\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\intbl\E\row\E\trowd\E\trgaph60\E\trleft0\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrcf1\E\clbrdrl\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrr\E\brdrcf1\E\cellx1592\E\clvertalc\E\clmgf\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrcf1\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8160\E\clmrg\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrcf1\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8280\E\clmrg\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrcf1\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8400\E\clmrg\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrcf1\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8520\E\clmrg\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrcf1\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8640\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b Address:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 116 Dalkeith Road\E\cell\E\cell\E\cell\E\cell\E\cell\E\pard\E\intbl\E\s0\E\ql\E\sb100\E\sbauto1\E\sa100\E\saauto1\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\intbl\E\row\E\trowd\E\trgaph60\E\trleft0\E\clvertalc\E\clbrdrl\E\brdrs\E\brdrw15\E\brdrcf3\E\clpadt480\E\clpadft3\E\clpadr239\E\clpadfr3\E\cellx1592\E\clvertalc\E\cellx2780\E\clvertalc\E\clpadt480\E\clpadft3\E\clpadr239\E\clpadfr3\E\cellx4537\E\clvertalc\E\cellx5710\E\clvertalc\E\clpadt480\E\clpadft3\E\clpadr239\E\clpadfr3\E\cellx7617\E\clvertalc\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8640\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b Suburb:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 NEDLANDS\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b State:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 WA\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b Post Code:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 6009\E\cell\E\pard\E\intbl\E\s0\E\ql\E\sb100\E\sbauto1\E\sa100\E\saauto1\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\intbl\E\row\E\trowd\E\trgaph60\E\trleft0\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrl\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrr\E\brdrcf1\E\cellx1592\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrcf1\E\cellx2780\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrcf1\E\cellx4537\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrcf1\E\cellx5710\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrcf1\E\cellx7617\E\clvertalc\E\clbrdrt\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrb\E\brdrs\E\brdrw15\E\brdrcf3\E\clbrdrl\E\brdrcf1\E\clbrdrr\E\brdrs\E\brdrw15\E\brdrcf3\E\cellx8640\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b Home Phone:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 08 9283 2723\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b Work Phone:\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 08 9283 2727\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\b \E\~\E\cell\E\pard\E\intbl\E\s0\E\ql\E\ssparnw\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20 \E\~\E\cell\E\pard\E\intbl\E\s0\E\ql\E\sb100\E\sbauto1\E\sa100\E\saauto1\E\plain\E\f0\E\fs20\E\plain\E\hich\E\f4\E\dbch\E\f4\E\loch\E\f4\E\cf1\E\fs20\E\intbl\E\row\E\pard\E\s0\E\ql\E\plain\E\f0\E\fs20\E\plain\E\f0\E\fs20\E\par\E\pard\E\s0\E\ltrpar\E\ql\E\sa100\E\saauto1\E\plain\E\f0\E\fs20\E\plain\E\f0\E\fs20 Hi from myself. \E\plain\E\f0\E\fs20\E\par}||||||F|||20090311032912

 
dev/patient-profile.txt · Last modified: 2009/05/08 10:26 by timc