renalware-core 2.0.0.pre.beta6 → 2.0.0.pre.beta7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/lib/renalware/version.rb +1 -1
- data/spec/factories/accesses/patients.rb +3 -0
- data/spec/factories/accesses/plans.rb +11 -0
- data/spec/factories/accesses/plans_types.rb +5 -0
- data/spec/factories/accesses/procedures.rb +7 -0
- data/spec/factories/accesses/profiles.rb +14 -0
- data/spec/factories/accesses/sites.rb +6 -0
- data/spec/factories/accesses/types.rb +8 -0
- data/spec/factories/clinical/allergies.rb +7 -0
- data/spec/factories/clinical/body_compositions.rb +23 -0
- data/spec/factories/clinical/dry_weights.rb +11 -0
- data/spec/factories/clinical/patients.rb +3 -0
- data/spec/factories/clinics/appointments.rb +8 -0
- data/spec/factories/clinics/clinic_visits.rb +16 -0
- data/spec/factories/clinics/clinics.rb +6 -0
- data/spec/factories/deaths/cause.rb +6 -0
- data/spec/factories/deaths/modality_descriptions.rb +5 -0
- data/spec/factories/directory/people.rb +9 -0
- data/spec/factories/drugs/drug.rb +5 -0
- data/spec/factories/drugs/drug_types.rb +6 -0
- data/spec/factories/events/events.rb +26 -0
- data/spec/factories/events/events_types.rb +16 -0
- data/spec/factories/hd/cannulation_types.rb +5 -0
- data/spec/factories/hd/dialysers.rb +6 -0
- data/spec/factories/hd/hd_session_document.rb +69 -0
- data/spec/factories/hd/modality_descriptions.rb +5 -0
- data/spec/factories/hd/patient_statistics.rb +8 -0
- data/spec/factories/hd/patients.rb +3 -0
- data/spec/factories/hd/preference_sets.rb +10 -0
- data/spec/factories/hd/profiles.rb +18 -0
- data/spec/factories/hd/sessions.rb +34 -0
- data/spec/factories/hd/stations.rb +5 -0
- data/spec/factories/hospitals/centres.rb +6 -0
- data/spec/factories/hospitals/units.rb +15 -0
- data/spec/factories/letters/archives.rb +5 -0
- data/spec/factories/letters/contact_descriptions.rb +16 -0
- data/spec/factories/letters/contacts.rb +5 -0
- data/spec/factories/letters/descriptions.rb +5 -0
- data/spec/factories/letters/letterheads.rb +10 -0
- data/spec/factories/letters/letters.rb +25 -0
- data/spec/factories/letters/patients.rb +3 -0
- data/spec/factories/letters/primary_care_physicians.rb +5 -0
- data/spec/factories/letters/recipients.rb +11 -0
- data/spec/factories/medications/medication_route.rb +11 -0
- data/spec/factories/medications/prescription.rb +17 -0
- data/spec/factories/medications/prescription_terminations.rb +7 -0
- data/spec/factories/medications/prescription_version.rb +4 -0
- data/spec/factories/messaging/authors.rb +5 -0
- data/spec/factories/messaging/message.rb +11 -0
- data/spec/factories/messaging/patients.rb +5 -0
- data/spec/factories/messaging/receipt.rb +7 -0
- data/spec/factories/messaging/recipients.rb +5 -0
- data/spec/factories/modalities/modalities.rb +27 -0
- data/spec/factories/modalities/modality_descriptions.rb +34 -0
- data/spec/factories/modalities/modality_reasons.rb +20 -0
- data/spec/factories/pathology/consultant.rb +3 -0
- data/spec/factories/pathology/lab.rb +5 -0
- data/spec/factories/pathology/measurement_units.rb +8 -0
- data/spec/factories/pathology/observation_descriptions.rb +7 -0
- data/spec/factories/pathology/observation_requests.rb +8 -0
- data/spec/factories/pathology/observations.rb +8 -0
- data/spec/factories/pathology/patients.rb +3 -0
- data/spec/factories/pathology/request_descriptions.rb +6 -0
- data/spec/factories/pathology/requests/drug_category.rb +6 -0
- data/spec/factories/pathology/requests/global_rule.rb +7 -0
- data/spec/factories/pathology/requests/global_rule_set.rb +6 -0
- data/spec/factories/pathology/requests/patient_rule.rb +13 -0
- data/spec/factories/pathology/requests/request.rb +10 -0
- data/spec/factories/patients/alerts.rb +8 -0
- data/spec/factories/patients/bookmarks.rb +6 -0
- data/spec/factories/patients/ethnicities.rb +6 -0
- data/spec/factories/patients/languages.rb +5 -0
- data/spec/factories/patients/patients.rb +32 -0
- data/spec/factories/patients/practices.rb +17 -0
- data/spec/factories/patients/primary_care_physicians.rb +21 -0
- data/spec/factories/patients/religions.rb +5 -0
- data/spec/factories/patients/users.rb +3 -0
- data/spec/factories/pd/assessments.rb +22 -0
- data/spec/factories/pd/bag_types.rb +17 -0
- data/spec/factories/pd/episode_types.rb +6 -0
- data/spec/factories/pd/exit_site_infections.rb +9 -0
- data/spec/factories/pd/fluid_descriptions.rb +6 -0
- data/spec/factories/pd/infection_organisms.rb +10 -0
- data/spec/factories/pd/modality_descriptions.rb +5 -0
- data/spec/factories/pd/organism_codes.rb +6 -0
- data/spec/factories/pd/patients.rb +3 -0
- data/spec/factories/pd/pd_regimes.rb +36 -0
- data/spec/factories/pd/peritonitis_episode_type_descriptions.rb +8 -0
- data/spec/factories/pd/peritonitis_episodes.rb +20 -0
- data/spec/factories/pd/pet_adequacies.rb +38 -0
- data/spec/factories/pd/regime_bags.rb +44 -0
- data/spec/factories/pd/systems.rb +11 -0
- data/spec/factories/pd/training_sessions.rb +16 -0
- data/spec/factories/pd/training_sites.rb +6 -0
- data/spec/factories/pd/training_types.rb +5 -0
- data/spec/factories/problems/problems.rb +7 -0
- data/spec/factories/renal/patients.rb +3 -0
- data/spec/factories/renal/prd_description.rb +6 -0
- data/spec/factories/renal/profiles.rb +5 -0
- data/spec/factories/reporting/audits.rb +8 -0
- data/spec/factories/snippets/snippets.rb +6 -0
- data/spec/factories/snippets/users.rb +4 -0
- data/spec/factories/system/addresses.rb +11 -0
- data/spec/factories/system/roles.rb +27 -0
- data/spec/factories/system/templates.rb +15 -0
- data/spec/factories/system/users.rb +58 -0
- data/spec/factories/transplants/donations.rb +8 -0
- data/spec/factories/transplants/donor_stage.rb +12 -0
- data/spec/factories/transplants/donor_stage_position.rb +5 -0
- data/spec/factories/transplants/donor_stage_status.rb +5 -0
- data/spec/factories/transplants/live_donor_modality_description.rb +6 -0
- data/spec/factories/transplants/modality_descriptions.rb +10 -0
- data/spec/factories/transplants/patients.rb +3 -0
- data/spec/factories/transplants/recipient_followups.rb +4 -0
- data/spec/factories/transplants/recipient_operations.rb +15 -0
- data/spec/factories/transplants/registration_status_descriptions.rb +7 -0
- data/spec/factories/transplants/registration_statuses.rb +9 -0
- data/spec/factories/transplants/registrations.rb +46 -0
- data/spec/support/capybara_helper.rb +9 -0
- data/spec/support/database_cleaner.rb +18 -0
- data/spec/support/date_helpers.rb +9 -0
- data/spec/support/devise_spec_helper.rb +29 -0
- data/spec/support/drugs_spec_helper.rb +49 -0
- data/spec/support/factory_girl.rb +29 -0
- data/spec/support/json_helpers.rb +5 -0
- data/spec/support/letters_spec_helper.rb +36 -0
- data/spec/support/login_macros.rb +26 -0
- data/spec/support/matchers/document.rb +5 -0
- data/spec/support/matchers/validate_timeliness_of.rb +16 -0
- data/spec/support/pathology_spec_helper.rb +37 -0
- data/spec/support/patients_spec_helper.rb +16 -0
- data/spec/support/poltergeist.rb +2 -0
- data/spec/support/pundit_matcher.rb +13 -0
- data/spec/support/roles_spec_helper.rb +7 -0
- data/spec/support/select2_spec_helper.rb +13 -0
- data/spec/support/select_date_spec_helper.rb +11 -0
- data/spec/support/shared_contexts/a_global_rule_set.rb +19 -0
- data/spec/support/translations.rb +12 -0
- data/spec/support/travel.rb +7 -0
- data/spec/support/webmock.rb +3 -0
- metadata +142 -58
- data/vendor/xsd/ukrdc/README.md +0 -9
- data/vendor/xsd/ukrdc/Schema/Allergies/Allergy.xsd +0 -69
- data/vendor/xsd/ukrdc/Schema/ClinicalRelationships/ClinicalRelationship.xsd +0 -27
- data/vendor/xsd/ukrdc/Schema/Diagnoses/CauseOfDeath.xsd +0 -32
- data/vendor/xsd/ukrdc/Schema/Diagnoses/Diagnosis.xsd +0 -41
- data/vendor/xsd/ukrdc/Schema/Diagnoses/RenalDiagnosis.xsd +0 -41
- data/vendor/xsd/ukrdc/Schema/Documents/Document.xsd +0 -72
- data/vendor/xsd/ukrdc/Schema/Encounters/Encounter.xsd +0 -121
- data/vendor/xsd/ukrdc/Schema/Encounters/TransplantList.xsd +0 -108
- data/vendor/xsd/ukrdc/Schema/Encounters/Treatment.xsd +0 -207
- data/vendor/xsd/ukrdc/Schema/FamilyHistories/FamilyHistory.xsd +0 -42
- data/vendor/xsd/ukrdc/Schema/LabOrders/LabOrder.xsd +0 -181
- data/vendor/xsd/ukrdc/Schema/Medications/Medication.xsd +0 -88
- data/vendor/xsd/ukrdc/Schema/Observations/Observation.xsd +0 -65
- data/vendor/xsd/ukrdc/Schema/Patient.xsd +0 -87
- data/vendor/xsd/ukrdc/Schema/Procedures/DialysisSession.xsd +0 -61
- data/vendor/xsd/ukrdc/Schema/Procedures/Procedure.xsd +0 -38
- data/vendor/xsd/ukrdc/Schema/Procedures/Transplant.xsd +0 -160
- data/vendor/xsd/ukrdc/Schema/Procedures/VascularAccess.xsd +0 -49
- data/vendor/xsd/ukrdc/Schema/ProgramMemberships/ProgramMembership.xsd +0 -46
- data/vendor/xsd/ukrdc/Schema/README.md +0 -1
- data/vendor/xsd/ukrdc/Schema/SocialHistories/SocialHistory.xsd +0 -15
- data/vendor/xsd/ukrdc/Schema/Surveys/Survey.xsd +0 -143
- data/vendor/xsd/ukrdc/Schema/Types/ActionCode.xsd +0 -37
- data/vendor/xsd/ukrdc/Schema/Types/Address.xsd +0 -67
- data/vendor/xsd/ukrdc/Schema/Types/CF_DMD.xsd +0 -27
- data/vendor/xsd/ukrdc/Schema/Types/CF_EDTA_COD.xsd +0 -343
- data/vendor/xsd/ukrdc/Schema/Types/CF_EDTA_PRD.xsd +0 -356
- data/vendor/xsd/ukrdc/Schema/Types/CF_HL7_0004.xsd +0 -76
- data/vendor/xsd/ukrdc/Schema/Types/CF_HL7_00204.xsd +0 -46
- data/vendor/xsd/ukrdc/Schema/Types/CF_HL7_00206.xsd +0 -41
- data/vendor/xsd/ukrdc/Schema/Types/CF_RR1.xsd +0 -567
- data/vendor/xsd/ukrdc/Schema/Types/CF_RR23.xsd +0 -82
- data/vendor/xsd/ukrdc/Schema/Types/CF_RR7_Discharge.xsd +0 -80
- data/vendor/xsd/ukrdc/Schema/Types/CF_RR7_Treatment.xsd +0 -241
- data/vendor/xsd/ukrdc/Schema/Types/CF_SNOMED.xsd +0 -27
- data/vendor/xsd/ukrdc/Schema/Types/Clinician.xsd +0 -27
- data/vendor/xsd/ukrdc/Schema/Types/CodeTableDetail.xsd +0 -27
- data/vendor/xsd/ukrdc/Schema/Types/CodedField.xsd +0 -27
- data/vendor/xsd/ukrdc/Schema/Types/CommonMetadata.xsd +0 -23
- data/vendor/xsd/ukrdc/Schema/Types/ContactDetail.xsd +0 -55
- data/vendor/xsd/ukrdc/Schema/Types/DrugProduct.xsd +0 -41
- data/vendor/xsd/ukrdc/Schema/Types/EthnicGroup.xsd +0 -114
- data/vendor/xsd/ukrdc/Schema/Types/FamilyDoctor.xsd +0 -21
- data/vendor/xsd/ukrdc/Schema/Types/LabResultItem.xsd +0 -160
- data/vendor/xsd/ukrdc/Schema/Types/LabTestItem.xsd +0 -24
- data/vendor/xsd/ukrdc/Schema/Types/Language.xsd +0 -981
- data/vendor/xsd/ukrdc/Schema/Types/Location.xsd +0 -27
- data/vendor/xsd/ukrdc/Schema/Types/NV_RR14.xsd +0 -39
- data/vendor/xsd/ukrdc/Schema/Types/Name.xsd +0 -51
- data/vendor/xsd/ukrdc/Schema/Types/Occupation.xsd +0 -75
- data/vendor/xsd/ukrdc/Schema/Types/Order.xsd +0 -48
- data/vendor/xsd/ukrdc/Schema/Types/PatientNumber.xsd +0 -90
- data/vendor/xsd/ukrdc/Schema/Types/PersonalContactType.xsd +0 -11
- data/vendor/xsd/ukrdc/Schema/Types/Result.xsd +0 -178
- data/vendor/xsd/ukrdc/Schema/UKRDC.xsd +0 -148
|
@@ -1,207 +0,0 @@
|
|
|
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>
|
|
@@ -1,42 +0,0 @@
|
|
|
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>
|
|
@@ -1,181 +0,0 @@
|
|
|
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>
|
|
@@ -1,88 +0,0 @@
|
|
|
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>
|