Commissioning Data Set Version 6-2-1 XML Schema Constraints

XML Schema constraints applied to the:

The "Allowed Values" column indicates the NHS Data Model and Dictionary National Codes and Default Codes present in the XML Schema:

Data ElementXML Schema Format/LengthAllowed ValuesRangePattern MatchReason / Comment / XML Choice
ACTIVITY TREATMENT FUNCTION CODE (DECISION TO ADMIT)None
Removed
None
None
National Codes not enumerated in the XML Schema
AGE AT CDS ACTIVITY DATEmax n3
None
None
None
Existing Format/Length states n3 - XML Schema allows max n3
CDS COPY RECIPIENT IDENTITYmin an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
CDS INTERCHANGE APPLICATION REFERENCEmin an1 max an14
None
None
None
Existing Format/Length states an14 - XML Schema allows min an1 max an14
CDS INTERCHANGE CONTROL COUNTmax n7
None
None
None
Existing Format/Length states n7 - XML Schema allows max n7
CDS INTERCHANGE CONTROL REFERENCEmin an1 max an14
None
None
None
Existing Format/Length states an14 - XML Schema allows min an1 max an14
CDS INTERCHANGE SENDER IDENTITYmin an1 max n15
None
None
None
Existing Format/Length states an15 - XML Schema allows min an1 max an15
CDS INTERCHANGE RECEIVER IDENTITYmin an1 max n15
None
None
None
Existing Format/Length states an15 - XML Schema allows min an1 max an15
CDS INTERCHANGE TEST INDICATORNone
0,1
None
None
Null value not allowed in XML Schema
CDS MESSAGE REFERENCEmax n7
None
None
None
Existing Format/Length states an14 - XML Schema allows max n7 to support SUS requirements
CDS MESSAGE VERSION NUMBERan6
CDS062
None
None
Message version is hard coded in the XML Schema
CDS PRIME RECIPIENT IDENTITYmin an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
CDS RECORD IDENTIFIERmin an1 max an35
None
None
None
Existing Format/Length states an35 - XML Schema allows max an35
CDS SENDER IDENTITYmin an3 max an12
None
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
CDS UNIQUE IDENTIFIERmin an1 max an35
None
None
None
Existing Format/Length states an35 - XML Schema allows min an1 max an35
COMMISSIONER REFERENCE NUMBERmax an17
None
None
None
Existing Format/Length states an17 - XML Schema allows max an17
COMMISSIONING SERIAL NUMBERmax an6
None
None
None
Existing Format/Length states an6 - XML Schema allows max an6
EMERGENCY CARE DEPARTMENT TYPENone
Removed
None
None
National Codes not enumerated in the XML Schema
EMERGENCY CARE PLACE OF INJURY (LATITUDE)None
None
-90.000000-90.000000
None
Range applied to allow correct reporting of EMERGENCY CARE PLACE OF INJURY (LATITUDE)
EMERGENCY CARE PLACE OF INJURY (LONGITUDE)None
None
-180.000000-180.000000
None
Range applied to allow correct reporting of EMERGENCY CARE PLACE OF INJURY (LONGITUDE)
ETHNIC CATEGORYmax an2
None
None
None
Existing Format/Length means fixed length which is incorrect. Unable to change this as it is used in other data sets.
Second character can be for local use.
Format/Length amended to max an2
GENERAL MEDICAL PRACTICE CODE (PATIENT REGISTRATION)None
Removed
None
None
Default codes not enumerated in the XML Schema
GENERAL MEDICAL PRACTITIONER (SPECIFIED)None
Removed
None
None
National Codes and default codes not enumerated in the XML Schema
NHS SERVICE AGREEMENT LINE NUMBERmax an10
None
None
None
Existing Format/Length states an10 - XML Schema allows max an10
ORGANISATION IDENTIFIER (CODE OF COMMISSIONER)None
Removed
None
None
Default codes not enumerated in the XML Schema
ORGANISATION IDENTIFIER (CODE OF PROVIDER)min an3 max an5
Removed
None
None
Default codes not enumerated in the XML Schema
ORGANISATION IDENTIFIER (RESIDENCE RESPONSIBILITY)None
Removed
None
None
Default codes not enumerated in the XML Schema
ORGANISATION SITE IDENTIFIER (DISCHARGE FROM EMERGENCY CARE)None
Removed
None
None
Default codes not enumerated in the XML Schema
ORGANISATION SITE IDENTIFIER (EMERGENCY CARE ATTENDANCE SOURCE)None
Removed
None
None
Default codes not enumerated in the XML Schema
ORGANISATION SITE IDENTIFIER (OF TREATMENT)None
Removed
None
None
Default codes not enumerated in the XML Schema
PROVIDER REFERENCE NUMBERmax an17
None
None
None
Existing Format/Length states an17 - XML Schema allows max an17
WAITING TIME MEASUREMENT TYPENone
01,02,09
None
None
National Codes 03 and 04 not valid in Commissioning Data Sets