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,3}(\.\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 LYMPHOCYTE COUNTNone
None
None
\d{1,3}(\.\d){1}
Format pattern applied to allow correct reporting of BLOOD LYMPHOCYTE COUNT
BLOOD MYELOBLASTS PERCENTAGENone
None
0-100
None
Range 0-100
BONE MARROW BLAST CELLS PERCENTAGENone
None
0-100
None
Range 0-100
BODY MASS INDEXNone
None
None
\d{2}(\.\d){1}
Format pattern applied to allow correct reporting of BODY MASS INDEX
BRESLOW THICKNESSNone
None
None
\d{1,2}\.\d{1,2}
Format pattern applied to allow correct reporting of BRESLOW THICKNESS
CANCER SYMPTOMS FIRST NOTED DATENone
None
None
((19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])|(19|20)\d\d-(0[1-9]|1[012])|(19|20)\d\d)
Format pattern applied to allow correct reporting of CANCER SYMPTOMS FIRST NOTED DATE
CARDIOPULMONARY EXERCISE TEST RESULTNone
None
0-200
None
Range 0-200
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
CELLULARITY PERCENTAGENone
None
0-100
None
Range 0-100
CHRONIC MYELOID LEUKAEMIA INDEX SCORE (SOKAL)None
None
None
\d{1}(\.\d){1}
Format pattern applied to allow correct reporting of CHRONIC MYELOID LEUKAEMIA INDEX SCORE (SOKAL)
CONSULTANT CODE (FIRST SEEN)None
Removed
None
None
Default codes not enumerated in the XML Schema
CONSULTANT CODE (MULTIDISCIPLINARY TEAM LEAD)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 (RESPONSIBLE SURGEON)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
D29 MINIMAL RESIDUAL DISEASE RESULTNone
None
None
\d{1}\.\d{1,4}
Format pattern applied to allow correct reporting of D29 MINIMAL RESIDUAL DISEASE RESULT
DIAGNOSIS (SNOMED CT)None
None
None
[0-9]{6,18}
Format pattern applied to allow correct reporting of DIAGNOSIS (SNOMED CT)
DIFFUSION CAPACITY TEST RESULTNone
None
0-200
None
Range 0-200
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 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 MARGINNone
None
None
\d{1,2}\.\d{1}
Format pattern applied to allow correct reporting of DISTANCE TO MARGIN
ETHNIC CATEGORYmax an2
None
None
None
Existing Format/Length an2 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 an2
FOLLICULAR LYMPHOMA INTERNATIONAL PROGNOSTIC INDEX 2 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].\d\d){1}
Range 0.10 to 9.99.
Format pattern applied to allow correct reporting of FORCED EXPIRATORY VOLUME IN 1 SECOND (ABSOLUTE AMOUNT)
FORCED EXPIRATORY VOLUME IN 1 SECOND (PERCENTAGE)None
None
1-150
None
Range 1 to 150
GENERAL MEDICAL PRACTICE CODE (PATIENT REGISTRATION)None
Removed
None
[A-Z0-9]{6}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of GENERAL MEDICAL PRACTICE CODE (PATIENT REGISTRATION)
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
IMAGING CODE (SNOMED CT)None
None
None
[0-9]{6,18}
Format pattern applied to allow correct reporting of IMAGING CODE (SNOMED CT)
INTERNATIONAL PROGNOSTIC SCORING SYSTEM SCORENone
None
0.0-3.0
([0-2]{1}\.\d{1}|3.0)
Range 0.0-3.0.
Format pattern applied to allow correct reporting of INTERNATIONAL PROGNOSTIC SCORING SYSTEM SCORE
INVASIVE THICKNESSNone
None
None
\d{1,2}\.\d{1,2}
Format pattern applied to allow correct reporting of INVASIVE THICKNESS
LESION SIZE (PATHOLOGICAL)None
None
None
\d{1,3}\.\d{1,2}
Format pattern applied to allow correct reporting of LESION SIZE (PATHOLOGICAL)
LESION SIZE (RADIOLOGICAL)None
None
None
\d{1,3}\.\d{1,2}
Format pattern applied to allow correct reporting of LESION SIZE (RADIOLOGICAL)
LOCAL PATIENT IDENTIFIER (EXTENDED)min an1 max an20
None
None
None
Existing Format/Length means fixed length which is incorrect. Unable to change this as it is used in other data sets.
XML Schema allows min an1 max an20
MOLECULAR DIAGNOSTIC CODENone
None
None
(0[6-9]|[1-8][0-9]|9[012389])
Format pattern applied to allow correct reporting of MOLECULAR DIAGNOSTIC CODE
MORPHOLOGY (SNOMED CANCER TRANSFORMATION)None
None
None
[A-Z0-9]{6,18}
Format pattern applied to allow correct reporting of MORPHOLOGY (SNOMED CANCER TRANSFORMATION)
MORPHOLOGY (SNOMED DIAGNOSIS)None
None
None
[A-Z0-9]{6,18}
Format pattern applied to allow correct reporting of MORPHOLOGY (SNOMED DIAGNOSIS)
MORPHOLOGY (SNOMED PATHOLOGY)None
None
None
[A-Z0-9]{6,18}
Format pattern applied to allow correct reporting of MORPHOLOGY (SNOMED PATHOLOGY)
MULTIDISCIPLINARY TEAM MEETING TYPE (CANCER)None
Removed
None
None
National Codes not enumerated in the XML Schema
NEUTROPHIL COUNTNone
None
None
\d{1,3}(\.\d){1}
Format pattern applied to allow correct reporting of NEUTROPHIL COUNT
NHS NUMBERNone
None
None
[0-9]{10}
Format pattern applied to allow correct reporting of NHS NUMBER
NON INVASIVE TUMOUR SIZENone
None
None
\d{1,3}\.\d{1,2}
Format pattern applied to allow correct reporting of NON INVASIVE TUMOUR SIZE
NOTTINGHAM PROGNOSTIC INDEX SCORENone
None
None
\d{1,2}\.\d{1,2}
Format pattern applied to allow correct reporting of NOTTINGHAM PROGNOSTIC INDEX SCORE
NUMBER OF LYMPHADENOPATHY AREASNone
None
0-3
None
Range 0-3
ORGANISATION IDENTIFIER (CODE OF PROVIDER)min an3 max an5
Removed
None
[A-Z0-9]{3,5}
Default codes not enumerated in the XML Schema.
an6 is not applicable for the Cancer Outcomes and Services Data Set.
Format pattern applied to allow correct reporting of ORGANISATION IDENTIFIER (CODE OF PROVIDER).
ORGANISATION IDENTIFIER (CODE OF SUBMITTING ORGANISATION)None
None
None
[A-Z0-9]{3,6}
Format pattern applied to allow correct reporting of ORGANISATION IDENTIFIER (CODE OF SUBMITTING ORGANISATION)
ORGANISATION IDENTIFIER (REPORTING LABORATORY)None
None
None
[A-Z0-9]{3,5}
Format pattern applied to allow correct reporting of ORGANISATION IDENTIFIER (REPORTING LABORATORY)
ORGANISATION IDENTIFIER (OF REPORTING PATHOLOGIST)None
None
None
[A-Z0-9]{3,5}
Format pattern applied to allow correct reporting of ORGANISATION IDENTIFIER (OF REPORTING PATHOLOGIST)
ORGANISATION SITE IDENTIFIER (OF CLINICAL ASSESSMENT)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF CLINICAL ASSESSMENT).
ORGANISATION SITE IDENTIFIER (OF DIAGNOSIS)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION IDENTIFIER (CODE OF PROVIDER).
ORGANISATION SITE IDENTIFIER (OF IMAGING)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF IMAGING).
ORGANISATION SITE IDENTIFIER (OF MULTIDISCIPLINARY TEAM MEETING)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF MULTIDISCIPLINARY TEAM MEETING).
ORGANISATION SITE IDENTIFIER (OF PATHOLOGY TEST REQUEST)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF PATHOLOGY TEST REQUEST).
ORGANISATION SITE IDENTIFIER (OF PROVIDER CANCER TREATMENT START DATE) None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF PROVIDER CANCER TREATMENT START DATE) .
ORGANISATION SITE IDENTIFIER (OF PROVIDER FIRST CANCER SPECIALIST)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF PROVIDER FIRST CANCER SPECIALIST).
ORGANISATION SITE IDENTIFIER (OF PROVIDER FIRST SEEN)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF PROVIDER FIRST SEEN).
ORGANISATION SITE IDENTIFIER (OF TNM STAGE GROUPING FINAL PRETREATMENT)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF TNM STAGE GROUPING FINAL PRETREATMENT).
ORGANISATION SITE IDENTIFIER (OF TNM STAGE GROUPING INTEGRATED)None
Removed
None
[A-Z0-9]{5,9}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF TNM STAGE GROUPING INTEGRATED)).
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}
Format pattern applied to allow correct reporting of PERSON WEIGHT
PLATELETS COUNTNone
None
0-5000
None
Range 0-5000
PRIMARY PROCEDURE (SNOMED CT)None
None
None
[0-9]{6,18}
Format pattern applied to allow correct reporting of PRIMARY PROCEDURE (SNOMED CT)
PROCEDURE (SNOMED CT)None
None
None
[0-9]{6,18}
Format pattern applied to allow correct reporting of PROCEDURE (SNOMED CT)
PROSTATE SPECIFIC ANTIGEN (DIAGNOSIS)None
None
None
\d{1,5}(\.\d){1}
Format pattern applied to allow correct reporting of PROSTATE SPECIFIC ANTIGEN (DIAGNOSIS)
PROSTATE SPECIFIC ANTIGEN (PRETREATMENT)None
None
None
\d{1,5}(\.\d){1}
Format pattern applied to allow correct reporting of PROSTATE SPECIFIC ANTIGEN (PRETREATMENT)
REVISED INTERNATIONAL PROGNOSTIC INDEX SCORENone
None
0-5
None
Range 0-5
SPLEEN BELOW COSTAL MARGINNone
None
0-50
None
Range 0-50
TOPOGRAPHY (SNOMED PATHOLOGY)None
None
None
[A-Z0-9]{6,18}
Format pattern applied to allow correct reporting of TOPOGRAPHY (SNOMED PATHOLOGY)
TRANSTHORACIC ECHOCARDIOGRAM TEST RESULTNone
None
0-100
None
Range 0-100
TUMOUR NECROSISNone
None
0-100
None
Range 0-100
TURP TUMOUR PERCENTAGENone
None
0-100
None
Range 0-100
UNINVOLVED CERVICAL STROMA THICKNESSNone
None
None
\d{1,2}\.\d{1,2}
Format pattern applied to allow correct reporting of UNINVOLVED CERVICAL STROMA THICKNESS
URINE VANILLYLMANDELIC ACID CREATININE RATIONone
None
0.0-10.0
\d\.[0-9]|10\.[0]
Range 0.0-10.0.
Format pattern applied to allow correct reporting of URINE VANILLYLMANDELIC ACID CREATININE RATIO
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)
WHOLE TUMOUR SIZENone
None
None
\d{1,3}\.\d{1,2}
Format pattern applied to allow correct reporting of WHOLE TUMOUR SIZE