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
ABBREVIATED MENTAL TEST SCORENone
None
0-10
None
Range 0-10
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
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)
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
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-200
None
Range 1 to 200
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
2-5
None
Range 2-5
GLEASON GRADE (SECONDARY)None
None
2-5
None
Range 2-5
GLEASON GRADE (TERTIARY)None
None
3-5 and 8
None
Range 3-5 and 8
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)
INVASIVE THICKNESSNone
None
None
\d{1,2}\.\d{1,2}
Format pattern applied to allow correct reporting of INVASIVE THICKNESS
KI-67 PERCENTAGE RESULTNone
None
0-100
None
Range 0-100
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
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
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 AUTHORISING PATHOLOGIST)None
None
None
[A-Z0-9]{3,5}
Format pattern applied to allow correct reporting of ORGANISATION IDENTIFIER (OF AUTHORISING PATHOLOGIST)
ORGANISATION SITE IDENTIFIER (OF ACUTE ONCOLOGY ASSESSMENT)None
Removed
None
[A-Z0-9]{5}
Default codes not enumerated in the XML Schema.
Format pattern applied to allow correct reporting of ORGANISATION SITE IDENTIFIER (OF ACUTE ONCOLOGY ASSESSMENT).
ORGANISATION SITE IDENTIFIER (OF CANCER SITE SPECIFIC STAGE)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 CANCER SITE SPECIFIC STAGE).
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 DIAGNOSTIC PROCEDURE)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 DIAGNOSTIC PROCEDURE).
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 IDENTIFIER (OF LABORATORY RESULT)None
Removed
None
[A-Z0-9]{3,5}
Format pattern applied to allow correct reporting of ORGANISATION IDENTIFIER (OF LABORATORY RESULT).
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 PROVIDER FIRST SEEN NON PRIMARY CANCER PATHWAY)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 NON PRIMARY CANCER PATHWAY)
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
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)
REVISED INTERNATIONAL PROGNOSTIC INDEX SCORENone
None
0-5
None
Range 0-5
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 NECROSIS PERCENTAGENone
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