ReferralNet Templating Technical Specifications

The structure of the archive basically mirrors that of a normal web site folder structure and also supports an optional META-INF folder used to house template specific metadata.

The HTML form must have an onsubmit attribute, with the returning boolean value determining whether the form is actioned.

<script language="JavaScript" type="text/javascript">
function check(){
   elem = document.getElementById("general_notes");
   if(elem!=null){
      if(elem.value.length==0){
         alert("General notes must be entered!");
	 elem.focus();
	 return false;
      }
   }
   return true;
}	
 
<form id="Sample" name="Sample" onsubmit="return check()">

Notes

  • Each form field / widget needs to have a unique "name" attribute associated to it.

Example Template Archive Structure

  • SampleTemplate.zip
    • META-INF/
      • icon.png
      • preview.png
      • manifest.xml
      • template.xslt
    • index.html
    • style.css
    • logo.png

Auto-Population of Templates

Sender Details

TypeName
TitleorderingProvider.title
First NameorderingProvider.given
Last NameorderingProvider.family
Email AddressorderingProvider.email
Organisation NameorderingProvider.organization

Recipient Details

TypeName
TitleperformingProvider.title
First NameperformingProvider.given
Last NameperformingProvider.family
Email AddressperformingProvider.email
Organisation NameperformingProvider.organization

Patient Details

TypeName
TitlepatientRole.patient.name.prefix
First NamepatientRole.patient.name.given
Last NamepatientRole.patient.name.family
InitialspatientRole.patient.initials
Address LinepatientRole.addr.streetAddessLine
SuburbpatientRole.addr.city
StatepatientRole.addr.state
Postal CodepatientRole.addr.postalCode
GenderpatientRole.patient.administrativeGenderCode
Date of BirthpatientRole.patient.birthTime
Phone - BusinesspatientRole.telecom.WP
Phone - HomepatientRole.telecom.HP
Phone - MobilepatientRole.telecom.MC
Primary IdentifierpatientRole.patient.id.pi
Medicare No.patientRole.patient.id.mc
Medicare ReferencepatientRole.patient.id.mc.mr

References

 
dev/templating.txt · Last modified: 2010/03/08 04:17 by timc