Cancer Outcomes and Services Data Set XML Schema Constraints

XML Schema constraints applied to the Cancer Outcomes and Services Data Set.

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
ALBUMIN LEVELNone
None
10-80
None
Range 10-80
ALLRED SCORE (ESTROGEN RECEPTOR)None
None
0 and 2-8
None
Range 0 and 2-8
ALLRED SCORE (PROGESTERONE RECEPTOR)None
None
0 and 2-8
None
Range 0 and 2-8
BETA2 MICROGLOBULIN LEVELNone
None
None
d{1,2}(.d){1}
Format pattern applied to allow correct reporting of BETA2 MICROGLOBULIN LEVEL
BLOOD BASOPHILS PERCENTAGENone
None
0-100
None
Range 0-100
BLOOD EOSINOPHILS PERCENTAGENone
None
0-100
None
Range 0-100
BLOOD MYELOBLASTS PERCENTAGENone
None
0-100
None
Range 0-100
BONE MARROW BLAST CELLS PERCENTAGENone
None
0-20
None
Range 0-20
CANCER SYMPTOMS FIRST NOTED DATENone
None
None
((19|20)dd-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])|(19|20)dd-(0[1-9]|1[012])|(19|20)dd)
Format pattern applied to allow correct reporting of CANCER SYMPTOMS FIRST NOTED DATE
CARE PROFESSIONAL MAIN SPECIALTY CODE (CANCER REFERRAL)None
Removed
None
None
National Codes and default codes not enumerated in the XML Schema
CARE PROFESSIONAL MAIN SPECIALTY CODE (DIAGNOSIS)None
Removed
None
None
National Codes and default codes not enumerated in the XML Schema
CARE PROFESSIONAL MAIN SPECIALTY CODE (FIRST SEEN)an3
Removed
None
None
National Codes and default codes not enumerated in the XML Schema
CARE PROFESSIONAL MAIN SPECIALTY CODE (TREATMENT)an3
Removed
None
None
National Codes and default codes not enumerated in the XML Schema
CONSULTANT CODE (ENDOSCOPIC OR RADIOLOGICAL PROCEDURE)None
Removed
None
None
Default codes not enumerated in the XML Schema
CONSULTANT CODE (FIRST SEEN)None
Removed
None
None
Default codes not enumerated in the XML Schema
CONSULTANT CODE (PATHOLOGIST)None
Removed
None
None
Default codes not enumerated in the XML Schema
CONSULTANT CODE (TREATMENT)None
Removed
None
None
Default codes not enumerated in the XML Schema
COSDS SUBMISSION IDENTIFIERNone
None
None
[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}
Format pattern applied to allow correct reporting of COSDS SUBMISSION RECORD COUNT
COSDS UNIQUE IDENTIFIERNone
None
None
[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}
Format pattern applied to allow correct reporting of COSDS UNIQUE IDENTIFIER
DISTANCE BEYOND MUSCULARIS PROPRIANone
None
None
d{1,3}.d{1,2}
Format pattern applied to allow correct reporting of DISTANCE BEYOND MUSCULARIS PROPRIA
DISTANCE FROM DENTATE LINENone
None
None
d{1,3}.d{1,2}
Format pattern applied to allow correct reporting of DISTANCE FROM DENTATE LINE
DISTANCE TO CIRCUMFERENTIAL EXCISION MARGINNone
None
None
d{1,3}.d{1,2}
Format pattern applied to allow correct reporting of DISTANCE TO CIRCUMFERENTIAL EXCISION MARGIN
DISTANCE TO CLOSEST NON PERITONEALISED RESECTION MARGINNone
None
None
d{1,2}.d{1,2}
Format pattern applied to allow correct reporting of DISTANCE TO CLOSEST NON PERITONEALISED RESECTION MARGIN
DISTANCE TO DISTAL RESECTION MARGINNone
None
None
d{1,4}.d{1,2}
Format pattern applied to allow correct reporting of DISTANCE TO DISTAL RESECTION MARGIN
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. XML Schema allows max an10
FOLLICULAR LYMPHOMA INTERNATIONAL PROGNOSTIC INDEX SCORENone
None
0-5
None
Range 0-5
FORCED EXPIRATORY VOLUME IN 1 SECOND (ABSOLUTE AMOUNT)None
None
0.10-9.99
(0.1[0-9]{1}|0.[2-9]{1}[0-9]{1}|[1-9].dd){1}
Range 0.10 to 9.99
FORCED EXPIRATORY VOLUME IN 1 SECOND (PERCENTAGE)None
None
1-150
None
Range 1 to 150
GENERAL MEDICAL PRACTICE CODE (PATIENT REGISTRATION)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
GENERAL MEDICAL PRACTITIONER (SPECIFIED)None
Removed
None
None
Default codes not enumerated in the XML Schema
GLEASON GRADE (PRIMARY)None
None
1-5
None
Range 1-5
GLEASON GRADE (SECONDARY)None
None
1-5
None
Range 1-5
GLEASON GRADE (TERTIARY)None
None
1-5 and 8
None
Range 1-5 and 8
HAEMOGLOBIN CONCENTRATION (GRAMS PER LITRE)None
None
10-250
None
Range 10-250
HASENCLEVER INDEX SCORENone
None
0-7
None
Range 0-7
INTERNATIONAL PROGNOSTIC SCORING SYSTEM SCORENone
None
0.0-3.0
([0-2]{1}.d{1}|3.0)
Range 0.0-3.0
LESION SIZE (PATHOLOGICAL)None
None
None
d{1,3}.d{1,2}
Format pattern applied to allow correct reporting of LESION SIZE (PATHOLOGICAL)
LOCAL PATIENT IDENTIFIERmax an10
None
None
None
Existing format an10 should mean fixed length - however this is incorrect - cannot immediately change format/length in dictionary as used by other data sets. XML Schema allows max an10
MORPHOLOGY (SNOMED)None
None
None
d{1,18}
Format pattern applied to allow correct reporting of MORPHOLOGY (SNOMED)
NUMBER OF LYMPHADENOPATHY AREASNone
None
0-3
None
Range 0-3
ORGANISATION CODE (CODE OF PROVIDER)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
ORGANISATION CODE (CODE OF SUBMITTING ORGANISATION)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
ORGANISATION CODE (OF REPORTING PATHOLOGIST)min an3 max an12
None
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
PERSON HEIGHT IN METRESNone
None
None
d{1}(.d{1,2}){1}
Format pattern applied to allow correct reporting of PERSON HEIGHT IN METRES
PERSON WEIGHTNone
None
None
d{1,3}(.d{1,3}){1}
Format pattern applied to allow correct reporting of PERSON WEIGHT
PRIMARY DIAGNOSIS (ICD)min an4 max an6
None
None
None
Existing Format/Length allows for all clinical classifications - XML Schema allows min an4 max an6
PROVISIONAL DIAGNOSIS (ICD)min an4 max an6
None
None
None
Existing Format/Length allows for all clinical classifications -XML Schema allows min an4 max an6
REVISED INTERNATIONAL PROGNOSTIC INDEX SCORENone
None
0-5
None
Range 0-5
SECONDARY DIAGNOSIS (ICD)min an4 max an6
None
None
None
Existing Format/Length allows for all clinical classifications - XML Schema allows min an4 max an6
SITE CODE (OF AXILLA ULTRASOUND)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF BREAST ULTRASOUND)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF CLINICAL ASSESSMENT)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF IMAGING)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF MAMMOGRAM)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF PATHOLOGY TEST REQUEST)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF PROVIDER CANCER TREATMENT START DATE)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF PROVIDER ENDOSCOPIC OR RADIOLOGICAL PROCEDURE)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF PROVIDER FIRST CANCER SPECIALIST)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SITE CODE (OF PROVIDER FIRST SEEN)min an3 max an12
Removed
None
None
Field size extended to future proof for ODS ORGANISATION CODE changes
SPLEEN BELOW COSTAL MARGINNone
None
0-50
None
Range 0-50
TOPOGRAPHY (SNOMED)None
None
None
d{1,18}
Format pattern applied to allow correct reporting of TOPOGRAPHY (SNOMED)
TURP TUMOUR PERCENTAGENone
None
0-100
None
Range 0-100
WHITE BLOOD CELL COUNT (HIGHEST PRETREATMENT)None
None
None
d{1,3}(.d{1}){1}
Format pattern applied to allow correct reporting of WHITE BLOOD CELL COUNT (HIGHEST PRETREATMENT)

The following Data Elements are not included in the Cancer Outcomes and Services Data Set Message.

Cancer Registries obtain the data from another source, or the item is submitted under another Standard and is included for reference only: