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,207 @@
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/CF_RR7_Treatment.xsd"/>
6
+ <xs:include schemaLocation="../Types/CF_RR7_Discharge.xsd"/>
7
+ <xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
8
+ <xs:complexType name="Treatment">
9
+ <xs:sequence>
10
+ <xs:element name="EncounterNumber" type="xs:string"/>
11
+ <xs:element name="EncounterType">
12
+ <xs:annotation>
13
+ <xs:documentation>General Encounter Type (PV1-2)</xs:documentation>
14
+ </xs:annotation>
15
+ <xs:simpleType>
16
+ <xs:restriction base="xs:string">
17
+ <xs:enumeration value="E">
18
+ <xs:annotation>
19
+ <xs:documentation>Emergency</xs:documentation>
20
+ </xs:annotation>
21
+ </xs:enumeration>
22
+ <xs:enumeration value="I">
23
+ <xs:annotation>
24
+ <xs:documentation>Inpatient</xs:documentation>
25
+ </xs:annotation>
26
+ </xs:enumeration>
27
+ <xs:enumeration value="N">
28
+ <xs:annotation>
29
+ <xs:documentation>N/A</xs:documentation>
30
+ </xs:annotation>
31
+ </xs:enumeration>
32
+ <xs:enumeration value="G">
33
+ <xs:annotation>
34
+ <xs:documentation>?</xs:documentation>
35
+ </xs:annotation>
36
+ </xs:enumeration>
37
+ <xs:enumeration value="P">
38
+ <xs:annotation>
39
+ <xs:documentation>Pre-Admit</xs:documentation>
40
+ </xs:annotation>
41
+ </xs:enumeration>
42
+ <xs:enumeration value="S">
43
+ <xs:annotation>
44
+ <xs:documentation>?</xs:documentation>
45
+ </xs:annotation>
46
+ </xs:enumeration>
47
+ <xs:enumeration value="R">
48
+ <xs:annotation>
49
+ <xs:documentation>Reoccuring Patient</xs:documentation>
50
+ </xs:annotation>
51
+ </xs:enumeration>
52
+ <xs:enumeration value="B">
53
+ <xs:annotation>
54
+ <xs:documentation>Obstetrics</xs:documentation>
55
+ </xs:annotation>
56
+ </xs:enumeration>
57
+ <xs:enumeration value="C">
58
+ <xs:annotation>
59
+ <xs:documentation>Commercial Account</xs:documentation>
60
+ </xs:annotation>
61
+ </xs:enumeration>
62
+ <xs:enumeration value="U">
63
+ <xs:annotation>
64
+ <xs:documentation>Unknown</xs:documentation>
65
+ </xs:annotation>
66
+ </xs:enumeration>
67
+ </xs:restriction>
68
+ </xs:simpleType>
69
+ </xs:element>
70
+ <xs:element name="FromTime" type="xs:dateTime">
71
+ <xs:annotation>
72
+ <xs:documentation>Time that encounter starts as CCYYMMDD</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:element>
75
+ <xs:element name="ToTime" type="xs:dateTime" minOccurs="0">
76
+ <xs:annotation>
77
+ <xs:documentation>Time that encounter ends as CCYYMMDD</xs:documentation>
78
+ </xs:annotation>
79
+ </xs:element>
80
+ <xs:element name="AdmittingClinician" type="Clinician" minOccurs="0">
81
+ <xs:annotation>
82
+ <xs:documentation>Responsible Clinician as a National Clinicial code where possible or other local code if not.</xs:documentation>
83
+ </xs:annotation>
84
+ </xs:element>
85
+ <xs:element name="HealthCareFacility" type="Location" minOccurs="0">
86
+ <xs:annotation>
87
+ <xs:documentation>Treatment Centre</xs:documentation>
88
+ </xs:annotation>
89
+ </xs:element>
90
+ <xs:element name="AdmitReason" type="CF_RR7_TREATMENT" minOccurs="0">
91
+ <xs:annotation>
92
+ <xs:documentation>Modality</xs:documentation>
93
+ </xs:annotation>
94
+ </xs:element>
95
+ <xs:element name="AdmissionSource" type="Location" minOccurs="0">
96
+ <xs:annotation>
97
+ <xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
98
+ </xs:annotation>
99
+ </xs:element>
100
+ <xs:element name="DischargeReason" type="CF_RR7_DISCHARGE" minOccurs="0">
101
+ <xs:annotation>
102
+ <xs:documentation>Reason for Discharge</xs:documentation>
103
+ </xs:annotation>
104
+ </xs:element>
105
+ <xs:element name="DischargeLocation" type="Location" minOccurs="0">
106
+ <xs:annotation>
107
+ <xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
108
+ </xs:annotation>
109
+ </xs:element>
110
+ <xs:element name="EnteredAt" type="Location" minOccurs="0">
111
+ <xs:annotation>
112
+ <xs:documentation>National code for the hospital providing care - e.g. RXF01</xs:documentation>
113
+ </xs:annotation>
114
+ </xs:element>
115
+ <xs:element name="VisitDescription" type="xs:string" minOccurs="0">
116
+ <xs:annotation>
117
+ <xs:documentation>Details of validation e.g. Date Done, by whom, who provided the info</xs:documentation>
118
+ </xs:annotation>
119
+ </xs:element>
120
+ <xs:element name="Attributes" minOccurs="0">
121
+ <!-- SDA: NVPairs -->
122
+ <xs:complexType>
123
+ <xs:sequence>
124
+ <!-- HD Dialysis Prescription Details -->
125
+ <xs:element name="HDP01" type="xs:string">
126
+ <xs:annotation>
127
+ <xs:documentation>Times Per Week</xs:documentation>
128
+ </xs:annotation>
129
+ </xs:element>
130
+ <xs:element name="HDP02" type="xs:string">
131
+ <xs:annotation>
132
+ <xs:documentation>Time Dialysed in Minutes</xs:documentation>
133
+ </xs:annotation>
134
+ </xs:element>
135
+ <xs:element name="HDP03" type="xs:string">
136
+ <xs:annotation>
137
+ <xs:documentation>Blood Flow Rate</xs:documentation>
138
+ </xs:annotation>
139
+ </xs:element>
140
+ <xs:element name="HDP04" type="xs:string">
141
+ <xs:annotation>
142
+ <xs:documentation>Sodium in Dialysate</xs:documentation>
143
+ </xs:annotation>
144
+ </xs:element>
145
+ <xs:element name="QBL05" type="xs:string">
146
+ <xs:annotation>
147
+ <xs:documentation>HD Treatment Location</xs:documentation>
148
+ </xs:annotation>
149
+ </xs:element>
150
+ <xs:element name="QBL06" type="xs:string">
151
+ <xs:annotation>
152
+ <xs:documentation>HD Shared Care</xs:documentation>
153
+ </xs:annotation>
154
+ </xs:element>
155
+ <xs:element name="QBL07" type="xs:string">
156
+ <xs:annotation>
157
+ <xs:documentation>Patient Participation</xs:documentation>
158
+ </xs:annotation>
159
+ </xs:element>
160
+ <!-- Only for first RRT Treatment -->
161
+ <xs:element name="ERF61">
162
+ <xs:annotation>
163
+ <xs:documentation>Assessed for suitability for Transplant by start of Dialysis Date</xs:documentation>
164
+ </xs:annotation>
165
+ <xs:simpleType>
166
+ <xs:restriction base="xs:string">
167
+ <xs:enumeration value="1">
168
+ <xs:annotation>
169
+ <xs:documentation>Unsuitable</xs:documentation>
170
+ </xs:annotation>
171
+ </xs:enumeration>
172
+ <xs:enumeration value="2">
173
+ <xs:annotation>
174
+ <xs:documentation>Working Up or under discussion</xs:documentation>
175
+ </xs:annotation>
176
+ </xs:enumeration>
177
+ <xs:enumeration value="3">
178
+ <xs:annotation>
179
+ <xs:documentation>On Transplant List</xs:documentation>
180
+ </xs:annotation>
181
+ </xs:enumeration>
182
+ <xs:enumeration value="4">
183
+ <xs:annotation>
184
+ <xs:documentation>Suspended on Transplant List</xs:documentation>
185
+ </xs:annotation>
186
+ </xs:enumeration>
187
+ <xs:enumeration value="5">
188
+ <xs:annotation>
189
+ <xs:documentation>Not Assessed by Start of Dialysis</xs:documentation>
190
+ </xs:annotation>
191
+ </xs:enumeration>
192
+ </xs:restriction>
193
+ </xs:simpleType>
194
+ </xs:element>
195
+ <!-- TODO: We should be using Referrals objects for this -->
196
+ <xs:element name="PAT35" type="xs:string">
197
+ <xs:annotation>
198
+ <xs:documentation>Date of referral to renal team (i.e. date letter received)</xs:documentation>
199
+ </xs:annotation>
200
+ </xs:element>
201
+ </xs:sequence>
202
+ </xs:complexType>
203
+ </xs:element>
204
+ <xs:group ref="CommonMetadata"/>
205
+ </xs:sequence>
206
+ </xs:complexType>
207
+ </xs:schema>
@@ -0,0 +1,42 @@
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:include schemaLocation="../Types/Clinician.xsd"/>
3
+ <xs:include schemaLocation="../Types/Location.xsd"/>
4
+ <xs:include schemaLocation="../Types/CF_SNOMED.xsd"/>
5
+ <xs:include schemaLocation="../Types/CodedField.xsd"/>
6
+ <xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
7
+ <xs:complexType name="FamilyHistory">
8
+ <xs:sequence>
9
+ <xs:element name="FamilyMember" type="CodedField" minOccurs="0">
10
+ <xs:annotation>
11
+ <xs:documentation>Family member</xs:documentation>
12
+ </xs:annotation>
13
+ </xs:element>
14
+ <xs:element name="Diagnosis" type="CF_SNOMED" minOccurs="0">
15
+ <xs:annotation>
16
+ <xs:documentation>Diagnosis on family member</xs:documentation>
17
+ </xs:annotation>
18
+ </xs:element>
19
+ <xs:element name="NoteText" type="xs:string" minOccurs="0">
20
+ <xs:annotation>
21
+ <xs:documentation/>
22
+ </xs:annotation>
23
+ </xs:element>
24
+ <xs:element name="EnteredAt" type="Location" minOccurs="0">
25
+ <xs:annotation>
26
+ <xs:documentation/>
27
+ </xs:annotation>
28
+ </xs:element>
29
+ <xs:element name="FromTime" type="xs:dateTime" minOccurs="0">
30
+ <xs:annotation>
31
+ <xs:documentation>Beginning of period covered</xs:documentation>
32
+ </xs:annotation>
33
+ </xs:element>
34
+ <xs:element name="ToTime" type="xs:dateTime" minOccurs="0">
35
+ <xs:annotation>
36
+ <xs:documentation>End of period covered</xs:documentation>
37
+ </xs:annotation>
38
+ </xs:element>
39
+ <xs:group ref="CommonMetadata"/>
40
+ </xs:sequence>
41
+ </xs:complexType>
42
+ </xs:schema>
@@ -0,0 +1,181 @@
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/CF_HL7_0004.xsd"/>
5
+ <xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
6
+ <xs:include schemaLocation="../Types/CodedField.xsd"/>
7
+ <xs:include schemaLocation="../Types/Location.xsd"/>
8
+ <xs:complexType name="LabOrder">
9
+ <xs:sequence>
10
+ <xs:element name="ReceivingLocation" type="Location">
11
+ <xs:annotation>
12
+ <xs:documentation>Location or Facility receiving/performing the order. Code must be entered using national coding e.g. RXF01</xs:documentation>
13
+ </xs:annotation>
14
+ </xs:element>
15
+ <xs:element name="PlacerId" type="xs:string" minOccurs="0">
16
+ <xs:annotation>
17
+ <xs:documentation>ORC:2 Placers Order Id</xs:documentation>
18
+ </xs:annotation>
19
+ </xs:element>
20
+ <xs:element name="FillerId" type="xs:string" minOccurs="0">
21
+ <xs:annotation>
22
+ <xs:documentation>ORC:3 Labs Order Id</xs:documentation>
23
+ </xs:annotation>
24
+ </xs:element>
25
+ <xs:element name="OrderedBy" type="Clinician" minOccurs="0">
26
+ <xs:annotation>
27
+ <xs:documentation>ORC:12 Requesting Physician as a nationally coded person. Use the description if this is not coded. </xs:documentation>
28
+ </xs:annotation>
29
+ </xs:element>
30
+ <xs:element name="OrderItem" type="CodedField" minOccurs="0">
31
+ <xs:annotation>
32
+ <xs:documentation>OBR:4 Service Id - the identity of the test ordered LOINC Code ???</xs:documentation>
33
+ </xs:annotation>
34
+ </xs:element>
35
+ <xs:element name="OrderCategory" type="CodedField" minOccurs="0"/>
36
+ <xs:element name="SpecimenCollectedTime" type="xs:dateTime">
37
+ <xs:annotation>
38
+ <xs:documentation>CCYYMMDDhhmm Equivalent to OBR:22</xs:documentation>
39
+ </xs:annotation>
40
+ </xs:element>
41
+ <xs:element name="SpecimenReceivedTime" type="xs:dateTime">
42
+ <xs:annotation>
43
+ <xs:documentation>CCYYMMDDhhmm Equivalent to OBR:14</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:element>
46
+ <xs:element name="Status" type="xs:string" minOccurs="0">
47
+ <xs:annotation>
48
+ <!-- TODO: Confirm This -->
49
+ </xs:annotation>
50
+ </xs:element>
51
+ <xs:element name="Priority" type="CodedField" minOccurs="0"/>
52
+ <xs:element name="SpecimenSource" type="xs:string">
53
+ <xs:annotation>
54
+ <xs:documentation>OBR:15.1 e.g. serum, blood</xs:documentation>
55
+ </xs:annotation>
56
+ </xs:element>
57
+ <xs:element name="Duration" type="xs:string" minOccurs="0">
58
+ <xs:annotation>
59
+ <!-- TODO: Confirm This -->
60
+ <xs:documentation>OBR:27.3</xs:documentation>
61
+ </xs:annotation>
62
+ </xs:element>
63
+ <xs:element name="ResultItems">
64
+ <xs:complexType>
65
+ <xs:sequence>
66
+ <xs:element name="ResultItem" type="ResultItem" minOccurs="0" maxOccurs="unbounded"/>
67
+ </xs:sequence>
68
+ </xs:complexType>
69
+ </xs:element>
70
+ <xs:element name="PatientClass" type="CF_HL7_0004" minOccurs="0">
71
+ <xs:annotation>
72
+ <xs:documentation>In patient / out patient - equivalent ot PV1:2 Patient Class or derivation thereiof Where can this map to in SDA????</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:element>
75
+ <!-- Note: UpdatedOn is down here (rather than at the top as usual) in the SDA -->
76
+ <xs:element name="EnteredOn" type="xs:dateTime" minOccurs="0">
77
+ <xs:annotation>
78
+ <xs:documentation>Date Order entered</xs:documentation>
79
+ </xs:annotation>
80
+ </xs:element>
81
+ <xs:element name="EnteredAt" type="Location" minOccurs="0">
82
+ <xs:annotation>
83
+ <xs:documentation>Location the procedure was performed at. Use National coding e.g. RXF01</xs:documentation>
84
+ </xs:annotation>
85
+ </xs:element>
86
+ <xs:group ref="CommonMetadata"/>
87
+ </xs:sequence>
88
+ </xs:complexType>
89
+ <xs:complexType name="ResultItem">
90
+ <xs:sequence>
91
+ <xs:element name="ResultType" type="xs:string" minOccurs="0">
92
+ <xs:annotation>
93
+ <xs:documentation>AT</xs:documentation>
94
+ </xs:annotation>
95
+ </xs:element>
96
+ <xs:element name="EnteredOn" type="xs:dateTime" minOccurs="0"/>
97
+ <xs:element name="PrePost" type="xs:string" minOccurs="0">
98
+ <xs:annotation>
99
+ <xs:documentation>Was the sample taken Before (B) or After (A) dialysis</xs:documentation>
100
+ </xs:annotation>
101
+ </xs:element>
102
+ <xs:element name="ServiceId" type="CodedField" minOccurs="0">
103
+ <xs:annotation>
104
+ <xs:documentation>OBX:3 </xs:documentation>
105
+ </xs:annotation>
106
+ </xs:element>
107
+ <xs:element name="SubId" minOccurs="0">
108
+ <xs:annotation>
109
+ <xs:documentation>OBX:4</xs:documentation>
110
+ </xs:annotation>
111
+ <xs:simpleType>
112
+ <xs:restriction base="xs:string">
113
+ <xs:maxLength value="30"/>
114
+ </xs:restriction>
115
+ </xs:simpleType>
116
+ </xs:element>
117
+ <xs:element name="ResultValue" type="xs:string" minOccurs="0">
118
+ <xs:annotation>
119
+ <xs:documentation>OBX:5</xs:documentation>
120
+ </xs:annotation>
121
+ </xs:element>
122
+ <xs:element name="ResultValueUnits" minOccurs="0">
123
+ <xs:annotation>
124
+ <xs:documentation>OBX:6</xs:documentation>
125
+ </xs:annotation>
126
+ <xs:simpleType>
127
+ <xs:restriction base="xs:string">
128
+ <xs:maxLength value="30"/>
129
+ </xs:restriction>
130
+ </xs:simpleType>
131
+ </xs:element>
132
+ <xs:element name="ReferenceRange" minOccurs="0">
133
+ <xs:annotation>
134
+ <xs:documentation>OBX:7</xs:documentation>
135
+ </xs:annotation>
136
+ <xs:simpleType>
137
+ <xs:restriction base="xs:string">
138
+ <xs:maxLength value="220"/>
139
+ </xs:restriction>
140
+ </xs:simpleType>
141
+ </xs:element>
142
+ <xs:element name="AbnormalFlags" minOccurs="0">
143
+ <xs:annotation>
144
+ <xs:documentation>OBX:8 Abnormal Flags</xs:documentation>
145
+ </xs:annotation>
146
+ <xs:simpleType>
147
+ <xs:restriction base="xs:string">
148
+ <xs:maxLength value="100"/>
149
+ </xs:restriction>
150
+ </xs:simpleType>
151
+ </xs:element>
152
+ <xs:element name="Status" minOccurs="0">
153
+ <xs:annotation>
154
+ <xs:documentation>OBX:11 F=FINAL, P=PRELIMINARY, D=DELETED</xs:documentation>
155
+ </xs:annotation>
156
+ <xs:simpleType>
157
+ <xs:restriction base="xs:string">
158
+ <xs:maxLength value="100"/>
159
+ </xs:restriction>
160
+ </xs:simpleType>
161
+ </xs:element>
162
+ <xs:element name="ObservationTime" type="xs:dateTime" minOccurs="0">
163
+ <xs:annotation>
164
+ <xs:documentation>OBX:14</xs:documentation>
165
+ </xs:annotation>
166
+ </xs:element>
167
+ <xs:element name="Comments" type="xs:string" minOccurs="0">
168
+ <xs:annotation>
169
+ <xs:documentation>From NTE:3</xs:documentation>
170
+ </xs:annotation>
171
+ </xs:element>
172
+ <xs:element name="ReferenceComment" minOccurs="0">
173
+ <xs:simpleType>
174
+ <xs:restriction base="xs:string">
175
+ <xs:maxLength value="1000"/>
176
+ </xs:restriction>
177
+ </xs:simpleType>
178
+ </xs:element>
179
+ </xs:sequence>
180
+ </xs:complexType>
181
+ </xs:schema>
@@ -0,0 +1,88 @@
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/CodedField.xsd"/>
5
+ <xs:include schemaLocation="../Types/DrugProduct.xsd"/>
6
+ <xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
7
+ <xs:complexType name="Medication">
8
+ <xs:sequence>
9
+ <xs:element name="PrescriptionNumber" type="xs:string" minOccurs="0">
10
+ <xs:annotation>
11
+ <xs:documentation>Prescription Id</xs:documentation>
12
+ </xs:annotation>
13
+ </xs:element>
14
+ <xs:element name="FromTime" type="xs:dateTime">
15
+ <xs:annotation>
16
+ <xs:documentation>Start Time of the prescription</xs:documentation>
17
+ </xs:annotation>
18
+ </xs:element>
19
+ <xs:element name="ToTime" type="xs:dateTime">
20
+ <xs:annotation>
21
+ <xs:documentation>End Time of the prescription</xs:documentation>
22
+ </xs:annotation>
23
+ </xs:element>
24
+ <xs:element name="OrderedBy" type="Clinician" minOccurs="0">
25
+ <xs:annotation>
26
+ <xs:documentation>Prescriber - National Id</xs:documentation>
27
+ </xs:annotation>
28
+ </xs:element>
29
+ <xs:element name="Route" minOccurs="0">
30
+ <xs:annotation>
31
+ <xs:documentation>Medication Route from RR22 - Standard always RR22. Code is 1=Oral, 2=Topical, 3=Inhalation, 4=Injection, 5=Intra peritoneal, 9=Other - please specify in description. </xs:documentation>
32
+ </xs:annotation>
33
+ <xs:complexType>
34
+ <xs:sequence>
35
+ <xs:element name="CodingStandard" minOccurs="0">
36
+ <xs:simpleType>
37
+ <xs:restriction base="xs:string">
38
+ <xs:maxLength value="32000"/>
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:element name="DrugProduct" type="DrugProduct" minOccurs="0"/>
60
+ <xs:element name="Frequency" type="xs:string" minOccurs="0">
61
+ <xs:annotation>
62
+ <xs:documentation>Frequency</xs:documentation>
63
+ </xs:annotation>
64
+ </xs:element>
65
+ <xs:element name="Comments" type="xs:string" minOccurs="0">
66
+ <xs:annotation>
67
+ <xs:documentation>Other instructions</xs:documentation>
68
+ </xs:annotation>
69
+ </xs:element>
70
+ <xs:element name="DoseQuantity" type="xs:decimal" minOccurs="0">
71
+ <xs:annotation>
72
+ <xs:documentation>Dose</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:element>
75
+ <xs:element name="DoseUoM" type="CodedField" minOccurs="0">
76
+ <xs:annotation>
77
+ <xs:documentation/>
78
+ </xs:annotation>
79
+ </xs:element>
80
+ <xs:element name="Indication" type="xs:string" minOccurs="0">
81
+ <xs:annotation>
82
+ <xs:documentation>The condition or problem for which the drug is being prescribed</xs:documentation>
83
+ </xs:annotation>
84
+ </xs:element>
85
+ <xs:group ref="CommonMetadata"/>
86
+ </xs:sequence>
87
+ </xs:complexType>
88
+ </xs:schema>