File naming convention
When supplying a file to Health NZ, name it according to the following convention — AAAnnnnn.CSV
- AAA is an acronym for each hospital which is supplied by the Ministry of Health.
- nnnnn represents ‘0’ (zero) year and month of the latest discharge record included in the file. For example, 00506 is a file containing data up to June 2005.
File type
The load file should be sent as a comma-separated values (.csv) file. All character variables should be enclosed in double quotation marks. Below is a sample record containing one diagnosis, one operation and one accident. Note that we have included both coded values and their descriptions in the sample record.
Sample load file for a coded file using ICD-10-AM 6th edition coding
ID,PURCHASER CODE, HEALTH AGENCY, HAF,NHI,SURNAME,FIRSTNAM,SECNAME,THIRDNAM,ADD1,ADD2,ADD3,ADD4,ADD5,DOB,DOMCODE,NZRES,ETH1,ETHDESC1,ETH2,ETHDESC2,ETH3,ETHDESC3, GENDER,ADMSRC,ADMDESC,ADMDATE,DISDATE,DISTYPE,DISDESC,ADMWGT,GEST,MOTHAGE,DIAGTYPE01,DESC01,DIAGCODE01,CODESYS01,OPDATE01,DIAGTYPE02,DESC02,DIAGCODE02,CODESYS02,
OPDATE02,DIAGTYPE03,DESC03,DIAGCODE03,CODESYS03,OPDATE03
“1234567","13","8331","8331","AAA9999","FamilyName","FirstName","SecondName","ThirdName","Address Line 1","Address Line 2","Address Line 3","Address Line 4","Address Line 5","19510224","2077","Y","21","maori","43","indian","52","chinese","M","R","Routine admission","20080631","20080702","DR","Routine discharge",,,,"A","Fracture head of Femur","S7200","13",,"O","Total hip replacement","","13","20080631","E","Fell “,"W19","13","20080631"
“1234567","13","0001","9999","AAA9999","Smith","John","Henry","David","1 Seaview Drive","Hillcrest","Whakatane","","","19510224","9999","Y","21","","43","","52","","M","R","Routine admission","20080631","20080702","DR","Routine discharge","6754","24","36","A","Fracture head of Femur","S7200","13","","O","Total hip replacement","","","20080631","E","Fell out of bed in hosp","W069","13","20080631","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""
“1234568","06","8268","8268","AB01243","Te Rukuihi","Marenata","M","","112 Florence Drive","Morrinsville","","","","19510330","","","","English","","French","","","F","","Transfer from Tauranga hospital","20080722","20080724","","Routine Discharge","","","","O"," Rib resection / r trans axillary rib removal","","","20080722","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""
“1234569","06","8268","8268","","","","M","","12 Fiorenza Drive","Hamilton","","","","19661225","","","","German","","Russian","","","F","","Home","20080715","20080723","","Died","","","","O"," Rib resection / r trans axillary rib removal","","","20080722","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""