renalware-core 2.0.0.pre.beta5 → 2.0.0.pre.beta6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/renalware/session_timeout_redirect.js.erb +8 -4
  3. data/app/assets/stylesheets/renalware/partials/_navigation.scss +2 -2
  4. data/app/controllers/renalware/admin/users_controller.rb +3 -3
  5. data/app/helpers/renalware/application_helper.rb +2 -1
  6. data/app/helpers/renalware/layout_helper.rb +2 -2
  7. data/app/views/renalware/clinical/body_compositions/_form.html.slim +6 -2
  8. data/app/views/renalware/clinical/body_compositions/new.html.slim +4 -3
  9. data/app/views/renalware/clinics/clinic_visits/edit.html.slim +5 -2
  10. data/app/views/renalware/events/swabs/edit.html.slim +4 -2
  11. data/app/views/renalware/hd/historical_profiles/show.html.slim +6 -3
  12. data/app/views/renalware/patients/alerts/_form.html.slim +1 -1
  13. data/app/views/renalware/renal/profiles/edit.html.slim +5 -3
  14. data/app/views/renalware/transplants/donor_operations/edit.html.slim +7 -3
  15. data/lib/breadcrumb.rb +8 -0
  16. data/lib/renalware/version.rb +1 -1
  17. data/vendor/assets/fonts/foundation-icons.eot +0 -0
  18. data/vendor/assets/fonts/foundation-icons.scss +594 -0
  19. data/vendor/assets/fonts/foundation-icons.svg +970 -0
  20. data/vendor/assets/fonts/foundation-icons.ttf +0 -0
  21. data/vendor/assets/fonts/foundation-icons.woff +0 -0
  22. data/vendor/assets/javascripts/renalware/iframeResizer.contentWindow.js +1108 -0
  23. data/vendor/assets/javascripts/renalware/iframeResizer.js +1002 -0
  24. data/vendor/assets/javascripts/renalware/jquery-readyselector.js +17 -0
  25. data/vendor/assets/javascripts/renalware/masonry.min.js +9 -0
  26. data/vendor/assets/javascripts/renalware/modernizr.js +3 -0
  27. data/vendor/assets/javascripts/renalware/mousetrap.js +1044 -0
  28. data/vendor/assets/javascripts/renalware/print.min.js +1 -0
  29. data/vendor/assets/javascripts/renalware/rails.validations.js +660 -0
  30. data/vendor/assets/javascripts/renalware/rails.validations.simple_form.js +46 -0
  31. data/vendor/assets/stylesheets/renalware/print.min.css +1 -0
  32. data/vendor/assets/stylesheets/renalware/select2/css/select2.css +431 -0
  33. data/vendor/assets/stylesheets/renalware/select2/css/select2.min.css +1 -0
  34. data/vendor/xsd/ukrdc/README.md +9 -0
  35. data/vendor/xsd/ukrdc/Schema/Allergies/Allergy.xsd +69 -0
  36. data/vendor/xsd/ukrdc/Schema/ClinicalRelationships/ClinicalRelationship.xsd +27 -0
  37. data/vendor/xsd/ukrdc/Schema/Diagnoses/CauseOfDeath.xsd +32 -0
  38. data/vendor/xsd/ukrdc/Schema/Diagnoses/Diagnosis.xsd +41 -0
  39. data/vendor/xsd/ukrdc/Schema/Diagnoses/RenalDiagnosis.xsd +41 -0
  40. data/vendor/xsd/ukrdc/Schema/Documents/Document.xsd +72 -0
  41. data/vendor/xsd/ukrdc/Schema/Encounters/Encounter.xsd +121 -0
  42. data/vendor/xsd/ukrdc/Schema/Encounters/TransplantList.xsd +108 -0
  43. data/vendor/xsd/ukrdc/Schema/Encounters/Treatment.xsd +207 -0
  44. data/vendor/xsd/ukrdc/Schema/FamilyHistories/FamilyHistory.xsd +42 -0
  45. data/vendor/xsd/ukrdc/Schema/LabOrders/LabOrder.xsd +181 -0
  46. data/vendor/xsd/ukrdc/Schema/Medications/Medication.xsd +88 -0
  47. data/vendor/xsd/ukrdc/Schema/Observations/Observation.xsd +65 -0
  48. data/vendor/xsd/ukrdc/Schema/Patient.xsd +87 -0
  49. data/vendor/xsd/ukrdc/Schema/Procedures/DialysisSession.xsd +61 -0
  50. data/vendor/xsd/ukrdc/Schema/Procedures/Procedure.xsd +38 -0
  51. data/vendor/xsd/ukrdc/Schema/Procedures/Transplant.xsd +160 -0
  52. data/vendor/xsd/ukrdc/Schema/Procedures/VascularAccess.xsd +49 -0
  53. data/vendor/xsd/ukrdc/Schema/ProgramMemberships/ProgramMembership.xsd +46 -0
  54. data/vendor/xsd/ukrdc/Schema/README.md +1 -0
  55. data/vendor/xsd/ukrdc/Schema/SocialHistories/SocialHistory.xsd +15 -0
  56. data/vendor/xsd/ukrdc/Schema/Surveys/Survey.xsd +143 -0
  57. data/vendor/xsd/ukrdc/Schema/Types/ActionCode.xsd +37 -0
  58. data/vendor/xsd/ukrdc/Schema/Types/Address.xsd +67 -0
  59. data/vendor/xsd/ukrdc/Schema/Types/CF_DMD.xsd +27 -0
  60. data/vendor/xsd/ukrdc/Schema/Types/CF_EDTA_COD.xsd +343 -0
  61. data/vendor/xsd/ukrdc/Schema/Types/CF_EDTA_PRD.xsd +356 -0
  62. data/vendor/xsd/ukrdc/Schema/Types/CF_HL7_0004.xsd +76 -0
  63. data/vendor/xsd/ukrdc/Schema/Types/CF_HL7_00204.xsd +46 -0
  64. data/vendor/xsd/ukrdc/Schema/Types/CF_HL7_00206.xsd +41 -0
  65. data/vendor/xsd/ukrdc/Schema/Types/CF_RR1.xsd +567 -0
  66. data/vendor/xsd/ukrdc/Schema/Types/CF_RR23.xsd +82 -0
  67. data/vendor/xsd/ukrdc/Schema/Types/CF_RR7_Discharge.xsd +80 -0
  68. data/vendor/xsd/ukrdc/Schema/Types/CF_RR7_Treatment.xsd +241 -0
  69. data/vendor/xsd/ukrdc/Schema/Types/CF_SNOMED.xsd +27 -0
  70. data/vendor/xsd/ukrdc/Schema/Types/Clinician.xsd +27 -0
  71. data/vendor/xsd/ukrdc/Schema/Types/CodeTableDetail.xsd +27 -0
  72. data/vendor/xsd/ukrdc/Schema/Types/CodedField.xsd +27 -0
  73. data/vendor/xsd/ukrdc/Schema/Types/CommonMetadata.xsd +23 -0
  74. data/vendor/xsd/ukrdc/Schema/Types/ContactDetail.xsd +55 -0
  75. data/vendor/xsd/ukrdc/Schema/Types/DrugProduct.xsd +41 -0
  76. data/vendor/xsd/ukrdc/Schema/Types/EthnicGroup.xsd +114 -0
  77. data/vendor/xsd/ukrdc/Schema/Types/FamilyDoctor.xsd +21 -0
  78. data/vendor/xsd/ukrdc/Schema/Types/LabResultItem.xsd +160 -0
  79. data/vendor/xsd/ukrdc/Schema/Types/LabTestItem.xsd +24 -0
  80. data/vendor/xsd/ukrdc/Schema/Types/Language.xsd +981 -0
  81. data/vendor/xsd/ukrdc/Schema/Types/Location.xsd +27 -0
  82. data/vendor/xsd/ukrdc/Schema/Types/NV_RR14.xsd +39 -0
  83. data/vendor/xsd/ukrdc/Schema/Types/Name.xsd +51 -0
  84. data/vendor/xsd/ukrdc/Schema/Types/Occupation.xsd +75 -0
  85. data/vendor/xsd/ukrdc/Schema/Types/Order.xsd +48 -0
  86. data/vendor/xsd/ukrdc/Schema/Types/PatientNumber.xsd +90 -0
  87. data/vendor/xsd/ukrdc/Schema/Types/PersonalContactType.xsd +11 -0
  88. data/vendor/xsd/ukrdc/Schema/Types/Result.xsd +178 -0
  89. data/vendor/xsd/ukrdc/Schema/UKRDC.xsd +148 -0
  90. metadata +78 -5
  91. data/lib/renalware/breadcrumb.rb +0 -10
@@ -0,0 +1,46 @@
1
+ <!-- edited with XMLSpy v2015 rel. 4 (x64) (http://www.altova.com) by Nick Jones (Agiloak Limited) -->
2
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
3
+ <xs:include schemaLocation="../Types/Clinician.xsd"/>
4
+ <xs:include schemaLocation="../Types/Location.xsd"/>
5
+ <xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
6
+ <xs:complexType name="ProgramMembership">
7
+ <xs:sequence>
8
+ <xs:element name="EnteredBy" type="Clinician" minOccurs="0">
9
+ <xs:annotation>
10
+ <xs:documentation>Person entering the consent as a National Clinicial code where possible or other local code if not.</xs:documentation>
11
+ </xs:annotation>
12
+ </xs:element>
13
+ <xs:element name="EnteredAt" type="Location" minOccurs="0">
14
+ <xs:annotation>
15
+ <xs:documentation>National code for the trust recording the consent - e.g. RXF01</xs:documentation>
16
+ </xs:annotation>
17
+ </xs:element>
18
+ <xs:element name="ProgramName" type="xs:string">
19
+ <xs:annotation>
20
+ <xs:documentation>Name of RDG or study</xs:documentation>
21
+ </xs:annotation>
22
+ </xs:element>
23
+ <xs:element name="ProgramDescription" minOccurs="0">
24
+ <xs:annotation>
25
+ <xs:documentation>Free text</xs:documentation>
26
+ </xs:annotation>
27
+ <xs:simpleType>
28
+ <xs:restriction base="xs:string">
29
+ <xs:maxLength value="220"/>
30
+ </xs:restriction>
31
+ </xs:simpleType>
32
+ </xs:element>
33
+ <xs:element name="FromTime" type="xs:dateTime">
34
+ <xs:annotation>
35
+ <xs:documentation>Date Consent Given</xs:documentation>
36
+ </xs:annotation>
37
+ </xs:element>
38
+ <xs:element name="ToTime" type="xs:dateTime" minOccurs="0">
39
+ <xs:annotation>
40
+ <xs:documentation>Date Consent Withdrawn</xs:documentation>
41
+ </xs:annotation>
42
+ </xs:element>
43
+ <xs:group ref="CommonMetadata"/>
44
+ </xs:sequence>
45
+ </xs:complexType>
46
+ </xs:schema>
@@ -0,0 +1 @@
1
+ # UK Renal Data Collaboration (UKRDC)
@@ -0,0 +1,15 @@
1
+ <!-- edited with XMLSpy v2015 rel. 4 (x64) (http://www.altova.com) by Nick Jones (Agiloak Limited) -->
2
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
3
+ <xs:include schemaLocation="../Types/CodedField.xsd"/>
4
+ <xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
5
+ <xs:complexType name="SocialHistory">
6
+ <xs:sequence>
7
+ <xs:element name="SocialHabit" type="CodedField">
8
+ <xs:annotation>
9
+ <xs:documentation>Currently only used for smoking for which CodingStandard=RRSMOKE Code=YES/NO/EX</xs:documentation>
10
+ </xs:annotation>
11
+ </xs:element>
12
+ <xs:group ref="CommonMetadata"/>
13
+ </xs:sequence>
14
+ </xs:complexType>
15
+ </xs:schema>
@@ -0,0 +1,143 @@
1
+ <!-- edited with XMLSpy v2015 rel. 4 (x64) (http://www.altova.com) by Nick Jones (Agiloak Limited) -->
2
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
3
+ <xs:include schemaLocation="../Types/Location.xsd"/>
4
+ <xs:include schemaLocation="../Types/CodedField.xsd"/>
5
+ <xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
6
+ <xs:complexType name="Survey">
7
+ <xs:sequence>
8
+ <xs:element name="SurveyTime" type="xs:dateTime" minOccurs="1">
9
+ <xs:annotation>
10
+ <xs:documentation>When the survey was completed.</xs:documentation>
11
+ </xs:annotation>
12
+ </xs:element>
13
+ <xs:element name="SurveyType" minOccurs="1" maxOccurs="1">
14
+ <xs:annotation>
15
+ <xs:documentation>Survey Type</xs:documentation>
16
+ </xs:annotation>
17
+ <xs:complexType>
18
+ <xs:sequence>
19
+ <xs:element name="CodingStandard" minOccurs="0">
20
+ <xs:simpleType>
21
+ <xs:restriction base="xs:string">
22
+ <xs:maxLength value="32000"/>
23
+ </xs:restriction>
24
+ </xs:simpleType>
25
+ </xs:element>
26
+ <xs:element name="Code" minOccurs="1">
27
+ <xs:simpleType>
28
+ <xs:restriction base="xs:string">
29
+ <xs:maxLength value="32000"/>
30
+ </xs:restriction>
31
+ </xs:simpleType>
32
+ </xs:element>
33
+ <xs:element name="Description" minOccurs="0">
34
+ <xs:simpleType>
35
+ <xs:restriction base="xs:string">
36
+ <xs:maxLength value="32000"/>
37
+ </xs:restriction>
38
+ </xs:simpleType>
39
+ </xs:element>
40
+ </xs:sequence>
41
+ </xs:complexType>
42
+ </xs:element>
43
+ <xs:element name="Questions">
44
+ <xs:complexType>
45
+ <xs:sequence>
46
+ <xs:element name="Question" minOccurs="0" maxOccurs="unbounded">
47
+ <xs:complexType>
48
+ <xs:sequence>
49
+ <xs:element name="QuestionType" minOccurs="1" maxOccurs="1">
50
+ <xs:annotation>
51
+ <xs:documentation>Question Type</xs:documentation>
52
+ </xs:annotation>
53
+ <xs:complexType>
54
+ <xs:sequence>
55
+ <xs:element name="CodingStandard" minOccurs="0">
56
+ <xs:simpleType>
57
+ <xs:restriction base="xs:string">
58
+ <xs:maxLength value="32000"/>
59
+ </xs:restriction>
60
+ </xs:simpleType>
61
+ </xs:element>
62
+ <xs:element name="Code" minOccurs="1">
63
+ <xs:simpleType>
64
+ <xs:restriction base="xs:string">
65
+ <xs:maxLength value="32000"/>
66
+ </xs:restriction>
67
+ </xs:simpleType>
68
+ </xs:element>
69
+ <xs:element name="Description" minOccurs="0">
70
+ <xs:simpleType>
71
+ <xs:restriction base="xs:string">
72
+ <xs:maxLength value="32000"/>
73
+ </xs:restriction>
74
+ </xs:simpleType>
75
+ </xs:element>
76
+ </xs:sequence>
77
+ </xs:complexType>
78
+ </xs:element>
79
+ <xs:element name="Response" type="xs:string" minOccurs="1" maxOccurs="1"/>
80
+ </xs:sequence>
81
+ </xs:complexType>
82
+ </xs:element>
83
+ </xs:sequence>
84
+ </xs:complexType>
85
+ </xs:element>
86
+ <xs:element name="Scores">
87
+ <xs:complexType>
88
+ <xs:sequence>
89
+ <xs:element name="Score" minOccurs="0" maxOccurs="unbounded">
90
+ <xs:complexType>
91
+ <xs:sequence>
92
+ <xs:element name="ScoreType" minOccurs="1" maxOccurs="1">
93
+ <xs:annotation>
94
+ <xs:documentation>Score Type</xs:documentation>
95
+ </xs:annotation>
96
+ <xs:complexType>
97
+ <xs:sequence>
98
+ <xs:element name="CodingStandard" minOccurs="0">
99
+ <xs:simpleType>
100
+ <xs:restriction base="xs:string">
101
+ <xs:maxLength value="32000"/>
102
+ </xs:restriction>
103
+ </xs:simpleType>
104
+ </xs:element>
105
+ <xs:element name="Code" minOccurs="1">
106
+ <xs:simpleType>
107
+ <xs:restriction base="xs:string">
108
+ <xs:maxLength value="32000"/>
109
+ </xs:restriction>
110
+ </xs:simpleType>
111
+ </xs:element>
112
+ <xs:element name="Description" minOccurs="0">
113
+ <xs:simpleType>
114
+ <xs:restriction base="xs:string">
115
+ <xs:maxLength value="32000"/>
116
+ </xs:restriction>
117
+ </xs:simpleType>
118
+ </xs:element>
119
+ </xs:sequence>
120
+ </xs:complexType>
121
+ </xs:element>
122
+ <xs:element name="Value" type="xs:string" minOccurs="1" maxOccurs="1"/>
123
+ <xs:element name="Level" type="xs:string" minOccurs="0" maxOccurs="1"/>
124
+ </xs:sequence>
125
+ </xs:complexType>
126
+ </xs:element>
127
+ </xs:sequence>
128
+ </xs:complexType>
129
+ </xs:element>
130
+ <xs:element name="EnteredBy" type="CodedField" minOccurs="0">
131
+ <xs:annotation>
132
+ <xs:documentation>Who completed the survey</xs:documentation>
133
+ </xs:annotation>
134
+ </xs:element>
135
+ <xs:element name="EnteredAt" type="Location" minOccurs="0">
136
+ <xs:annotation>
137
+ <xs:documentation>Where the Survey was completed</xs:documentation>
138
+ </xs:annotation>
139
+ </xs:element>
140
+ <xs:group ref="CommonMetadata"/>
141
+ </xs:sequence>
142
+ </xs:complexType>
143
+ </xs:schema>
@@ -0,0 +1,37 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:simpleType name="ActionCode">
3
+ <xs:restriction base="xs:string">
4
+ <xs:enumeration value="D">
5
+ <xs:annotation>
6
+ <xs:documentation>Delete</xs:documentation>
7
+ </xs:annotation>
8
+ </xs:enumeration>
9
+ <xs:enumeration value="E">
10
+ <xs:annotation>
11
+ <xs:documentation>Delete if Empty</xs:documentation>
12
+ </xs:annotation>
13
+ </xs:enumeration>
14
+ <xs:enumeration value="I">
15
+ <xs:annotation>
16
+ <xs:documentation>Inactivate All</xs:documentation>
17
+ </xs:annotation>
18
+ </xs:enumeration>
19
+ <xs:enumeration value="C">
20
+ <xs:annotation>
21
+ <xs:documentation>Clear All</xs:documentation>
22
+ </xs:annotation>
23
+ </xs:enumeration>
24
+ <xs:enumeration value="R">
25
+ <xs:annotation>
26
+ <xs:documentation>Replace (Patient and Encounter only)</xs:documentation>
27
+ </xs:annotation>
28
+ </xs:enumeration>
29
+ <!-- Note: In HS any value other than the ones above means Add or Update -->
30
+ <xs:enumeration value="A">
31
+ <xs:annotation>
32
+ <xs:documentation>Add or Update</xs:documentation>
33
+ </xs:annotation>
34
+ </xs:enumeration>
35
+ </xs:restriction>
36
+ </xs:simpleType>
37
+ </xs:schema>
@@ -0,0 +1,67 @@
1
+ <!-- edited with XMLSpy v2015 rel. 4 (x64) (http://www.altova.com) by Nick Jones (Agiloak Limited) -->
2
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
3
+ <xs:simpleType name="PostCode">
4
+ <xs:restriction base="xs:string">
5
+ <xs:pattern value="([A-PR-UWYZ0-9][A-HK-Y0-9][AEHJKMNPRTUVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)"/>
6
+ </xs:restriction>
7
+ </xs:simpleType>
8
+ <xs:complexType name="Address">
9
+ <xs:sequence>
10
+ <xs:element name="FromTime" type="xs:date" minOccurs="0"/>
11
+ <xs:element name="ToTime" type="xs:date" minOccurs="0"/>
12
+ <xs:element name="Street">
13
+ <xs:annotation>
14
+ <xs:documentation>Everything prior to the Town in the Address</xs:documentation>
15
+ </xs:annotation>
16
+ <xs:simpleType>
17
+ <xs:restriction base="xs:string">
18
+ <xs:maxLength value="220"/>
19
+ </xs:restriction>
20
+ </xs:simpleType>
21
+ </xs:element>
22
+ <xs:element name="Town" type="xs:string"/>
23
+ <!-- SDA: City -->
24
+ <xs:element name="County" type="xs:string" minOccurs="0"/>
25
+ <!-- SDA: State -->
26
+ <xs:element name="Postcode" type="PostCode" minOccurs="0"/>
27
+ <!-- SDA: Zip -->
28
+ <xs:element name="Country" minOccurs="0">
29
+ <xs:complexType>
30
+ <xs:sequence>
31
+ <xs:element name="CodingStandard" minOccurs="0">
32
+ <xs:simpleType>
33
+ <xs:restriction base="xs:string">
34
+ <xs:enumeration value="ISO3166-1">
35
+ <xs:annotation>
36
+ <xs:documentation>http://www.datadictionary.nhs.uk/data_dictionary/attributes/c/cou/country_code_de.asp</xs:documentation>
37
+ </xs:annotation>
38
+ </xs:enumeration>
39
+ </xs:restriction>
40
+ </xs:simpleType>
41
+ </xs:element>
42
+ <xs:element name="Code" minOccurs="0">
43
+ <xs:simpleType>
44
+ <xs:restriction base="xs:string">
45
+ <xs:maxLength value="32000"/>
46
+ </xs:restriction>
47
+ </xs:simpleType>
48
+ </xs:element>
49
+ <xs:element name="Description" minOccurs="0">
50
+ <xs:simpleType>
51
+ <xs:restriction base="xs:string">
52
+ <xs:maxLength value="32000"/>
53
+ </xs:restriction>
54
+ </xs:simpleType>
55
+ </xs:element>
56
+ </xs:sequence>
57
+ </xs:complexType>
58
+ </xs:element>
59
+ </xs:sequence>
60
+ <xs:attribute name="use">
61
+ <xs:annotation>
62
+ <xs:documentation>From National MIM H=Home TMP=Temporary PST=Postal</xs:documentation>
63
+ <!-- TODO: Get codes for this -->
64
+ </xs:annotation>
65
+ </xs:attribute>
66
+ </xs:complexType>
67
+ </xs:schema>
@@ -0,0 +1,27 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:complexType name="CF_DMD">
3
+ <xs:sequence>
4
+ <xs:element name="CodingStandard" minOccurs="0">
5
+ <xs:simpleType>
6
+ <xs:restriction base="xs:string">
7
+ <xs:enumeration value="DM+D"/>
8
+ </xs:restriction>
9
+ </xs:simpleType>
10
+ </xs:element>
11
+ <xs:element name="Code" minOccurs="0">
12
+ <xs:simpleType>
13
+ <xs:restriction base="xs:string">
14
+ <xs:maxLength value="32000"/>
15
+ </xs:restriction>
16
+ </xs:simpleType>
17
+ </xs:element>
18
+ <xs:element name="Description" minOccurs="0">
19
+ <xs:simpleType>
20
+ <xs:restriction base="xs:string">
21
+ <xs:maxLength value="32000"/>
22
+ </xs:restriction>
23
+ </xs:simpleType>
24
+ </xs:element>
25
+ </xs:sequence>
26
+ </xs:complexType>
27
+ </xs:schema>
@@ -0,0 +1,343 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:complexType name="CF_EDTA_COD">
3
+ <!-- Also known as RR5 -->
4
+ <xs:sequence>
5
+ <xs:element name="CodingStandard" minOccurs="0">
6
+ <xs:simpleType>
7
+ <xs:restriction base="xs:string">
8
+ <xs:enumeration value="EDTA"/>
9
+ </xs:restriction>
10
+ </xs:simpleType>
11
+ </xs:element>
12
+ <xs:element name="Code" minOccurs="0">
13
+ <xs:simpleType>
14
+ <xs:restriction base="xs:string">
15
+ <xs:enumeration value="0">
16
+ <xs:annotation>
17
+ <xs:documentation>Cause of death uncertain / not determined</xs:documentation>
18
+ </xs:annotation>
19
+ </xs:enumeration>
20
+ <xs:enumeration value="11">
21
+ <xs:annotation>
22
+ <xs:documentation>Myocardial Ischaemia and Infraction</xs:documentation>
23
+ </xs:annotation>
24
+ </xs:enumeration>
25
+ <xs:enumeration value="12">
26
+ <xs:annotation>
27
+ <xs:documentation>Hyperkalaemia</xs:documentation>
28
+ </xs:annotation>
29
+ </xs:enumeration>
30
+ <xs:enumeration value="13">
31
+ <xs:annotation>
32
+ <xs:documentation>Haemorrhagic Pericarditis</xs:documentation>
33
+ </xs:annotation>
34
+ </xs:enumeration>
35
+ <xs:enumeration value="14">
36
+ <xs:annotation>
37
+ <xs:documentation>Other causes of cardiac failure</xs:documentation>
38
+ </xs:annotation>
39
+ </xs:enumeration>
40
+ <xs:enumeration value="15">
41
+ <xs:annotation>
42
+ <xs:documentation>Cardiac arrest/sudden death; other cause or unknown</xs:documentation>
43
+ </xs:annotation>
44
+ </xs:enumeration>
45
+ <xs:enumeration value="16">
46
+ <xs:annotation>
47
+ <xs:documentation>Hypertensive cardiac failure</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:enumeration>
50
+ <xs:enumeration value="17">
51
+ <xs:annotation>
52
+ <xs:documentation>Hypokalaemia</xs:documentation>
53
+ </xs:annotation>
54
+ </xs:enumeration>
55
+ <xs:enumeration value="18">
56
+ <xs:annotation>
57
+ <xs:documentation>Fluid Overload / Pulmonary Oedema</xs:documentation>
58
+ </xs:annotation>
59
+ </xs:enumeration>
60
+ <xs:enumeration value="19">
61
+ <xs:annotation>
62
+ <xs:documentation>Elevated PVR / Pulmonary hypertension</xs:documentation>
63
+ </xs:annotation>
64
+ </xs:enumeration>
65
+ <xs:enumeration value="21">
66
+ <xs:annotation>
67
+ <xs:documentation>Pulmonary Embolus</xs:documentation>
68
+ </xs:annotation>
69
+ </xs:enumeration>
70
+ <xs:enumeration value="22">
71
+ <xs:annotation>
72
+ <xs:documentation>Cerebro-Vascular Accident, other cause or unspecified</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:enumeration>
75
+ <xs:enumeration value="23">
76
+ <xs:annotation>
77
+ <xs:documentation>Gastro-Intestinal Haemorrhage (Digestive)</xs:documentation>
78
+ </xs:annotation>
79
+ </xs:enumeration>
80
+ <xs:enumeration value="24">
81
+ <xs:annotation>
82
+ <xs:documentation>Haemorrhage from graft site</xs:documentation>
83
+ </xs:annotation>
84
+ </xs:enumeration>
85
+ <xs:enumeration value="25">
86
+ <xs:annotation>
87
+ <xs:documentation>Haemorrhage from vascular access or dailysis circuit</xs:documentation>
88
+ </xs:annotation>
89
+ </xs:enumeration>
90
+ <xs:enumeration value="26">
91
+ <xs:annotation>
92
+ <xs:documentation>Cerebral haemorrhage from ruptured vascular aneurysm (not code 22 or 23)</xs:documentation>
93
+ </xs:annotation>
94
+ </xs:enumeration>
95
+ <xs:enumeration value="27">
96
+ <xs:annotation>
97
+ <xs:documentation>Haemorrhage from surgery (except digestive haemorrhage</xs:documentation>
98
+ </xs:annotation>
99
+ </xs:enumeration>
100
+ <xs:enumeration value="28">
101
+ <xs:annotation>
102
+ <xs:documentation>Other haemorrhage, other site and/or other cause</xs:documentation>
103
+ </xs:annotation>
104
+ </xs:enumeration>
105
+ <xs:enumeration value="29">
106
+ <xs:annotation>
107
+ <xs:documentation>Mesenteric Infarction</xs:documentation>
108
+ </xs:annotation>
109
+ </xs:enumeration>
110
+ <xs:enumeration value="31">
111
+ <xs:annotation>
112
+ <xs:documentation>Pulmonary Infection (Bacterial)</xs:documentation>
113
+ </xs:annotation>
114
+ </xs:enumeration>
115
+ <xs:enumeration value="32">
116
+ <xs:annotation>
117
+ <xs:documentation>Pulmonary Infection (Viral)</xs:documentation>
118
+ </xs:annotation>
119
+ </xs:enumeration>
120
+ <xs:enumeration value="33">
121
+ <xs:annotation>
122
+ <xs:documentation>Pulmonary Infection (Fungal or Protozoal; parasitic)</xs:documentation>
123
+ </xs:annotation>
124
+ </xs:enumeration>
125
+ <xs:enumeration value="35">
126
+ <xs:annotation>
127
+ <xs:documentation>Septicaemia</xs:documentation>
128
+ </xs:annotation>
129
+ </xs:enumeration>
130
+ <xs:enumeration value="36">
131
+ <xs:annotation>
132
+ <xs:documentation>Tuberculosis (Lung)</xs:documentation>
133
+ </xs:annotation>
134
+ </xs:enumeration>
135
+ <xs:enumeration value="37">
136
+ <xs:annotation>
137
+ <xs:documentation>Tuberculosis (Elsewhere)</xs:documentation>
138
+ </xs:annotation>
139
+ </xs:enumeration>
140
+ <xs:enumeration value="38">
141
+ <xs:annotation>
142
+ <xs:documentation>Generalised Viral Infection</xs:documentation>
143
+ </xs:annotation>
144
+ </xs:enumeration>
145
+ <xs:enumeration value="39">
146
+ <xs:annotation>
147
+ <xs:documentation>Peritonitis (all causes except for Peritoneal Dialysis)</xs:documentation>
148
+ </xs:annotation>
149
+ </xs:enumeration>
150
+ <xs:enumeration value="41">
151
+ <xs:annotation>
152
+ <xs:documentation>Liver disease due to hepatitis B virus</xs:documentation>
153
+ </xs:annotation>
154
+ </xs:enumeration>
155
+ <xs:enumeration value="42">
156
+ <xs:annotation>
157
+ <xs:documentation>Liver disease due to other viral hepatitis</xs:documentation>
158
+ </xs:annotation>
159
+ </xs:enumeration>
160
+ <xs:enumeration value="43">
161
+ <xs:annotation>
162
+ <xs:documentation>Liver disease due to drug toxicity</xs:documentation>
163
+ </xs:annotation>
164
+ </xs:enumeration>
165
+ <xs:enumeration value="44">
166
+ <xs:annotation>
167
+ <xs:documentation>Cirrhosis - not viral (alcoholic or other cause)</xs:documentation>
168
+ </xs:annotation>
169
+ </xs:enumeration>
170
+ <xs:enumeration value="45">
171
+ <xs:annotation>
172
+ <xs:documentation>Cystic liver disease</xs:documentation>
173
+ </xs:annotation>
174
+ </xs:enumeration>
175
+ <xs:enumeration value="46">
176
+ <xs:annotation>
177
+ <xs:documentation>Liver failure - cause unknown</xs:documentation>
178
+ </xs:annotation>
179
+ </xs:enumeration>
180
+ <xs:enumeration value="51">
181
+ <xs:annotation>
182
+ <xs:documentation>Patient refused further treatment for ERF</xs:documentation>
183
+ </xs:annotation>
184
+ </xs:enumeration>
185
+ <xs:enumeration value="52">
186
+ <xs:annotation>
187
+ <xs:documentation>Suicide</xs:documentation>
188
+ </xs:annotation>
189
+ </xs:enumeration>
190
+ <xs:enumeration value="53">
191
+ <xs:annotation>
192
+ <xs:documentation>ERF Treatment ceased for any other reason</xs:documentation>
193
+ </xs:annotation>
194
+ </xs:enumeration>
195
+ <xs:enumeration value="54">
196
+ <xs:annotation>
197
+ <xs:documentation>ERF TReatment withdrawn for medical reasons</xs:documentation>
198
+ </xs:annotation>
199
+ </xs:enumeration>
200
+ <xs:enumeration value="62">
201
+ <xs:annotation>
202
+ <xs:documentation>Pancreatitis</xs:documentation>
203
+ </xs:annotation>
204
+ </xs:enumeration>
205
+ <xs:enumeration value="63">
206
+ <xs:annotation>
207
+ <xs:documentation>Bone Marrow Depression (Aplosia)</xs:documentation>
208
+ </xs:annotation>
209
+ </xs:enumeration>
210
+ <xs:enumeration value="64">
211
+ <xs:annotation>
212
+ <xs:documentation>Cachexia</xs:documentation>
213
+ </xs:annotation>
214
+ </xs:enumeration>
215
+ <xs:enumeration value="66">
216
+ <xs:annotation>
217
+ <xs:documentation>Malignant disease in patient treated by immuosuppressive therapy</xs:documentation>
218
+ </xs:annotation>
219
+ </xs:enumeration>
220
+ <xs:enumeration value="67">
221
+ <xs:annotation>
222
+ <xs:documentation>Malignant disease: solid tumours except those of 66</xs:documentation>
223
+ </xs:annotation>
224
+ </xs:enumeration>
225
+ <xs:enumeration value="68">
226
+ <xs:annotation>
227
+ <xs:documentation>Malignant disease: lymphoproliferative disorders (Except 66)</xs:documentation>
228
+ </xs:annotation>
229
+ </xs:enumeration>
230
+ <xs:enumeration value="69">
231
+ <xs:annotation>
232
+ <xs:documentation>Dementia</xs:documentation>
233
+ </xs:annotation>
234
+ </xs:enumeration>
235
+ <xs:enumeration value="70">
236
+ <xs:annotation>
237
+ <xs:documentation>Peritonitis (sclerosing, with peritoneal dialysis)</xs:documentation>
238
+ </xs:annotation>
239
+ </xs:enumeration>
240
+ <xs:enumeration value="71">
241
+ <xs:annotation>
242
+ <xs:documentation>Perforation of peptic ulcer</xs:documentation>
243
+ </xs:annotation>
244
+ </xs:enumeration>
245
+ <xs:enumeration value="72">
246
+ <xs:annotation>
247
+ <xs:documentation>Perforation of colon</xs:documentation>
248
+ </xs:annotation>
249
+ </xs:enumeration>
250
+ <xs:enumeration value="73">
251
+ <!-- NOTE: In v3.14 This was incorrectly published as Unknown -->
252
+ <xs:annotation>
253
+ <xs:documentation>COPD</xs:documentation>
254
+ </xs:annotation>
255
+ </xs:enumeration>
256
+ <xs:enumeration value="79">
257
+ <xs:annotation>
258
+ <xs:documentation>Multi-system failure</xs:documentation>
259
+ </xs:annotation>
260
+ </xs:enumeration>
261
+ <xs:enumeration value="81">
262
+ <xs:annotation>
263
+ <xs:documentation>Accident related to ERF Treatment</xs:documentation>
264
+ </xs:annotation>
265
+ </xs:enumeration>
266
+ <xs:enumeration value="82">
267
+ <xs:annotation>
268
+ <xs:documentation>Accident unrelated to ERF Treatment</xs:documentation>
269
+ </xs:annotation>
270
+ </xs:enumeration>
271
+ <xs:enumeration value="99">
272
+ <xs:annotation>
273
+ <xs:documentation>Cause of death uncertain/not determined</xs:documentation>
274
+ </xs:annotation>
275
+ </xs:enumeration>
276
+ <xs:enumeration value="100">
277
+ <xs:annotation>
278
+ <xs:documentation>Peritonitis (bacterial, with peritoneal dialysis)</xs:documentation>
279
+ </xs:annotation>
280
+ </xs:enumeration>
281
+ <xs:enumeration value="101">
282
+ <xs:annotation>
283
+ <xs:documentation>Peritonitis (fungal, with peritoneal dialysis)</xs:documentation>
284
+ </xs:annotation>
285
+ </xs:enumeration>
286
+ <xs:enumeration value="102">
287
+ <xs:annotation>
288
+ <xs:documentation>Peritonitis (due to other cause, with peritoneal dialysis)</xs:documentation>
289
+ </xs:annotation>
290
+ </xs:enumeration>
291
+ <xs:enumeration value="103">
292
+ <xs:annotation>
293
+ <xs:documentation>Peripheral Vascular Disease</xs:documentation>
294
+ </xs:annotation>
295
+ </xs:enumeration>
296
+ <xs:enumeration value="104">
297
+ <xs:annotation>
298
+ <xs:documentation>Calciphylaxis</xs:documentation>
299
+ </xs:annotation>
300
+ </xs:enumeration>
301
+ <xs:enumeration value="105">
302
+ <xs:annotation>
303
+ <xs:documentation>Ischaemic bowel</xs:documentation>
304
+ </xs:annotation>
305
+ </xs:enumeration>
306
+ <xs:enumeration value="106">
307
+ <xs:annotation>
308
+ <xs:documentation>Ruptured AAA</xs:documentation>
309
+ </xs:annotation>
310
+ </xs:enumeration>
311
+ <xs:enumeration value="107">
312
+ <xs:annotation>
313
+ <xs:documentation>Advanced CKD not on dialysis (conservative management)</xs:documentation>
314
+ </xs:annotation>
315
+ </xs:enumeration>
316
+ <xs:enumeration value="108">
317
+ <xs:annotation>
318
+ <xs:documentation>Acute Kidney Injury</xs:documentation>
319
+ </xs:annotation>
320
+ </xs:enumeration>
321
+ <xs:enumeration value="109">
322
+ <xs:annotation>
323
+ <xs:documentation>C Diff Colitis</xs:documentation>
324
+ </xs:annotation>
325
+ </xs:enumeration>
326
+ <xs:enumeration value="110">
327
+ <xs:annotation>
328
+ <xs:documentation>Line Related Sepsis</xs:documentation>
329
+ </xs:annotation>
330
+ </xs:enumeration>
331
+ </xs:restriction>
332
+ </xs:simpleType>
333
+ </xs:element>
334
+ <xs:element name="Description" minOccurs="0">
335
+ <xs:simpleType>
336
+ <xs:restriction base="xs:string">
337
+ <xs:maxLength value="32000"/>
338
+ </xs:restriction>
339
+ </xs:simpleType>
340
+ </xs:element>
341
+ </xs:sequence>
342
+ </xs:complexType>
343
+ </xs:schema>