renalware-core 2.0.0.pre.beta6 → 2.0.0.pre.beta7
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/vendor/xsd/ukrdc/README.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# UKRDC Schema
|
2
|
-
|
3
|
-
## Documentation
|
4
|
-
|
5
|
-
Schema Documentation (https://htmlpreview.github.io/?https://github.com/renalreg/ukrdc/blob/master/HTML/UKRDC.html)
|
6
|
-
|
7
|
-
Instructions (https://github.com/renalreg/ukrdc/raw/master/Documentation/UKRDC.docx)
|
8
|
-
|
9
|
-
Annotated UKRR v4.2 Dataset (https://github.com/renalreg/ukrdc/raw/master/Documentation/RR%20Dataset%20v4.2_UKRDC.xls)
|
@@ -1,69 +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/CF_HL7_00204.xsd"/>
|
4
|
-
<xs:include schemaLocation="../Types/CF_HL7_00206.xsd"/>
|
5
|
-
<xs:include schemaLocation="../Types/CF_SNOMED.xsd"/>
|
6
|
-
<xs:include schemaLocation="../Types/Clinician.xsd"/>
|
7
|
-
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
|
8
|
-
<xs:complexType name="Allergy">
|
9
|
-
<xs:sequence>
|
10
|
-
<xs:element name="Allergy" type="CF_SNOMED">
|
11
|
-
<xs:annotation>
|
12
|
-
<xs:documentation>Substance to which the patient is allergic. (SNOMED)</xs:documentation>
|
13
|
-
</xs:annotation>
|
14
|
-
</xs:element>
|
15
|
-
<xs:element name="AllergyCategory" type="CF_HL7_00204" minOccurs="0">
|
16
|
-
<xs:annotation>
|
17
|
-
<xs:documentation>Type of Allergy (HL7 00204)</xs:documentation>
|
18
|
-
</xs:annotation>
|
19
|
-
</xs:element>
|
20
|
-
<xs:element name="Severity" type="CF_HL7_00206" minOccurs="0">
|
21
|
-
<xs:annotation>
|
22
|
-
<xs:documentation>Severity (HL7 00206)</xs:documentation>
|
23
|
-
</xs:annotation>
|
24
|
-
</xs:element>
|
25
|
-
<xs:element name="Clinician" type="Clinician" minOccurs="0">
|
26
|
-
<xs:annotation>
|
27
|
-
<xs:documentation>Diagnosing Clinician</xs:documentation>
|
28
|
-
</xs:annotation>
|
29
|
-
</xs:element>
|
30
|
-
<xs:element name="DiscoveryTime" type="xs:dateTime" minOccurs="0">
|
31
|
-
<xs:annotation>
|
32
|
-
<xs:documentation>Reported Date</xs:documentation>
|
33
|
-
</xs:annotation>
|
34
|
-
</xs:element>
|
35
|
-
<xs:element name="ConfirmedTime" type="xs:dateTime" minOccurs="0"/>
|
36
|
-
<xs:element name="Comments" type="xs:string" minOccurs="0">
|
37
|
-
<xs:annotation>
|
38
|
-
<xs:documentation>Advice given to the patient</xs:documentation>
|
39
|
-
</xs:annotation>
|
40
|
-
</xs:element>
|
41
|
-
<xs:element name="InactiveTime" type="xs:dateTime" minOccurs="0">
|
42
|
-
<xs:annotation>
|
43
|
-
<xs:documentation>Resolved Time</xs:documentation>
|
44
|
-
</xs:annotation>
|
45
|
-
</xs:element>
|
46
|
-
<xs:element name="FreeTextAllergy" minOccurs="0">
|
47
|
-
<xs:annotation>
|
48
|
-
<xs:documentation>AL1-5 Free text definition of what happened</xs:documentation>
|
49
|
-
</xs:annotation>
|
50
|
-
<xs:simpleType>
|
51
|
-
<xs:restriction base="xs:string">
|
52
|
-
<xs:maxLength value="5000"/>
|
53
|
-
</xs:restriction>
|
54
|
-
</xs:simpleType>
|
55
|
-
</xs:element>
|
56
|
-
<xs:element name="QualifyingDetails" minOccurs="0">
|
57
|
-
<xs:annotation>
|
58
|
-
<xs:documentation>Details if patient or family reported</xs:documentation>
|
59
|
-
</xs:annotation>
|
60
|
-
<xs:simpleType>
|
61
|
-
<xs:restriction base="xs:string">
|
62
|
-
<xs:maxLength value="32000"/>
|
63
|
-
</xs:restriction>
|
64
|
-
</xs:simpleType>
|
65
|
-
</xs:element>
|
66
|
-
<xs:group ref="CommonMetadata"/>
|
67
|
-
</xs:sequence>
|
68
|
-
</xs:complexType>
|
69
|
-
</xs:schema>
|
@@ -1,27 +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/CommonMetadata.xsd"/>
|
6
|
-
<xs:complexType name="ClinicalRelationship">
|
7
|
-
<xs:sequence>
|
8
|
-
<xs:element name="FromTime" type="xs:dateTime">
|
9
|
-
<xs:annotation>
|
10
|
-
<xs:documentation>Start of the relationship</xs:documentation>
|
11
|
-
</xs:annotation>
|
12
|
-
</xs:element>
|
13
|
-
<xs:element name="ToTime" type="xs:dateTime" minOccurs="0">
|
14
|
-
<xs:annotation>
|
15
|
-
<xs:documentation>End of the relationship</xs:documentation>
|
16
|
-
</xs:annotation>
|
17
|
-
</xs:element>
|
18
|
-
<xs:element name="Clinician" type="Clinician">
|
19
|
-
<xs:annotation/>
|
20
|
-
</xs:element>
|
21
|
-
<xs:element name="FacilityCode" type="Location">
|
22
|
-
<xs:annotation/>
|
23
|
-
</xs:element>
|
24
|
-
<xs:group ref="CommonMetadata"/>
|
25
|
-
</xs:sequence>
|
26
|
-
</xs:complexType>
|
27
|
-
</xs:schema>
|
@@ -1,32 +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_EDTA_COD.xsd"/>
|
5
|
-
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
|
6
|
-
<!-- SDA: Diagnosis -->
|
7
|
-
<xs:complexType name="CauseOfDeath">
|
8
|
-
<xs:sequence>
|
9
|
-
<xs:element name="DiagnosisType" type="xs:string" minOccurs="0">
|
10
|
-
<xs:annotation>
|
11
|
-
<xs:documentation>The type of diagnosis: admitting, working, final, discharge</xs:documentation>
|
12
|
-
</xs:annotation>
|
13
|
-
</xs:element>
|
14
|
-
<xs:element name="DiagnosingClinician" type="Clinician" minOccurs="0">
|
15
|
-
<xs:annotation>
|
16
|
-
<xs:documentation>Clinician Coding Death</xs:documentation>
|
17
|
-
</xs:annotation>
|
18
|
-
</xs:element>
|
19
|
-
<xs:element name="Diagnosis" type="CF_EDTA_COD">
|
20
|
-
<xs:annotation>
|
21
|
-
<xs:documentation>Coded Caused of Death (EDTA)</xs:documentation>
|
22
|
-
</xs:annotation>
|
23
|
-
</xs:element>
|
24
|
-
<xs:element name="EnteredOn" type="xs:dateTime">
|
25
|
-
<xs:annotation>
|
26
|
-
<xs:documentation>The date the COD was recorded in the medical record.</xs:documentation>
|
27
|
-
</xs:annotation>
|
28
|
-
</xs:element>
|
29
|
-
<xs:group ref="CommonMetadata"/>
|
30
|
-
</xs:sequence>
|
31
|
-
</xs:complexType>
|
32
|
-
</xs:schema>
|
@@ -1,41 +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_SNOMED.xsd"/>
|
5
|
-
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
|
6
|
-
<xs:complexType name="Diagnosis">
|
7
|
-
<xs:sequence>
|
8
|
-
<xs:element name="DiagnosisType" type="xs:string" minOccurs="0">
|
9
|
-
<xs:annotation>
|
10
|
-
<xs:documentation>The type of diagnosis: admitting, working, final, discharge</xs:documentation>
|
11
|
-
</xs:annotation>
|
12
|
-
</xs:element>
|
13
|
-
<xs:element name="DiagnosingClinician" type="Clinician" minOccurs="0">
|
14
|
-
<xs:annotation>
|
15
|
-
<xs:documentation>National Clinicial code where possible or other local code if not.</xs:documentation>
|
16
|
-
</xs:annotation>
|
17
|
-
</xs:element>
|
18
|
-
<xs:element name="Diagnosis" type="CF_SNOMED">
|
19
|
-
<xs:annotation>
|
20
|
-
<xs:documentation>SNOMED CT coded diagnoses. Primary Renal Diagnosis should additionally be included with a EDTA code. PRD will therefore be represented twice (SNOMED and EDTA)</xs:documentation>
|
21
|
-
</xs:annotation>
|
22
|
-
</xs:element>
|
23
|
-
<xs:element name="IdentificationTime" type="xs:dateTime" minOccurs="0">
|
24
|
-
<xs:annotation>
|
25
|
-
<xs:documentation>Date of initial diagnosis</xs:documentation>
|
26
|
-
</xs:annotation>
|
27
|
-
</xs:element>
|
28
|
-
<xs:element name="OnsetTime" type="xs:dateTime" minOccurs="0">
|
29
|
-
<xs:annotation>
|
30
|
-
<xs:documentation>Date condition began. Can use approximate dates through truncation. CCYYMMDD or CCYYMM or CCYY</xs:documentation>
|
31
|
-
</xs:annotation>
|
32
|
-
</xs:element>
|
33
|
-
<xs:element name="EnteredOn" type="xs:dateTime">
|
34
|
-
<xs:annotation>
|
35
|
-
<xs:documentation>The date the diagnosis was recorded in the medical record.</xs:documentation>
|
36
|
-
</xs:annotation>
|
37
|
-
</xs:element>
|
38
|
-
<xs:group ref="CommonMetadata"/>
|
39
|
-
</xs:sequence>
|
40
|
-
</xs:complexType>
|
41
|
-
</xs:schema>
|
@@ -1,41 +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/CF_EDTA_PRD.xsd"/>
|
4
|
-
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
|
5
|
-
<!-- SDA: Diagnosis -->
|
6
|
-
<xs:complexType name="RenalDiagnosis">
|
7
|
-
<xs:sequence>
|
8
|
-
<xs:element name="DiagnosisType" type="xs:string" minOccurs="0">
|
9
|
-
<xs:annotation>
|
10
|
-
<xs:documentation>The type of diagnosis: admitting, working, final, discharge</xs:documentation>
|
11
|
-
</xs:annotation>
|
12
|
-
</xs:element>
|
13
|
-
<xs:element name="DiagnosingClinician" type="Clinician" minOccurs="0">
|
14
|
-
<xs:annotation>
|
15
|
-
<xs:documentation>Clinician Coding Death</xs:documentation>
|
16
|
-
</xs:annotation>
|
17
|
-
</xs:element>
|
18
|
-
<xs:element name="Diagnosis" type="CF_EDTA_PRD">
|
19
|
-
<xs:annotation>
|
20
|
-
<xs:documentation>Coded Caused of Death (EDTA)</xs:documentation>
|
21
|
-
</xs:annotation>
|
22
|
-
</xs:element>
|
23
|
-
<xs:element name="IdentificationTime" type="xs:dateTime" minOccurs="0">
|
24
|
-
<xs:annotation>
|
25
|
-
<xs:documentation>Date of initial diagnosis</xs:documentation>
|
26
|
-
</xs:annotation>
|
27
|
-
</xs:element>
|
28
|
-
<xs:element name="OnsetTime" type="xs:dateTime" minOccurs="0">
|
29
|
-
<xs:annotation>
|
30
|
-
<xs:documentation>Date condition began. Can use approximate dates through truncation. CCYYMMDD or CCYYMM or CCYY</xs:documentation>
|
31
|
-
</xs:annotation>
|
32
|
-
</xs:element>
|
33
|
-
<xs:element name="EnteredOn" type="xs:dateTime">
|
34
|
-
<xs:annotation>
|
35
|
-
<xs:documentation>The date the diagnosis was recorded in the medical record.</xs:documentation>
|
36
|
-
</xs:annotation>
|
37
|
-
</xs:element>
|
38
|
-
<xs:group ref="CommonMetadata"/>
|
39
|
-
</xs:sequence>
|
40
|
-
</xs:complexType>
|
41
|
-
</xs:schema>
|
@@ -1,72 +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/CodedField.xsd"/>
|
6
|
-
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
|
7
|
-
<xs:complexType name="Document">
|
8
|
-
<xs:sequence>
|
9
|
-
<xs:element name="DocumentTime" type="xs:dateTime" minOccurs="0">
|
10
|
-
<xs:annotation>
|
11
|
-
<xs:documentation>Document Creation as CCYYMMDDhhmm</xs:documentation>
|
12
|
-
</xs:annotation>
|
13
|
-
</xs:element>
|
14
|
-
<xs:element name="NoteText" type="xs:string" minOccurs="0">
|
15
|
-
<xs:annotation>
|
16
|
-
<xs:documentation>The body of the document as free text,</xs:documentation>
|
17
|
-
</xs:annotation>
|
18
|
-
</xs:element>
|
19
|
-
<xs:element name="DocumentType" type="CodedField" minOccurs="0">
|
20
|
-
<xs:annotation>
|
21
|
-
<xs:documentation>Always TEXT for now. For future use.</xs:documentation>
|
22
|
-
</xs:annotation>
|
23
|
-
</xs:element>
|
24
|
-
<xs:element name="Clinician" type="Clinician" minOccurs="0">
|
25
|
-
<xs:annotation>
|
26
|
-
<xs:documentation>The person responsibile for the content of the document</xs:documentation>
|
27
|
-
</xs:annotation>
|
28
|
-
</xs:element>
|
29
|
-
<xs:element name="DocumentName" minOccurs="0">
|
30
|
-
<xs:annotation>
|
31
|
-
<xs:documentation>Document title</xs:documentation>
|
32
|
-
</xs:annotation>
|
33
|
-
<xs:simpleType>
|
34
|
-
<xs:restriction base="xs:string">
|
35
|
-
<xs:maxLength value="220"/>
|
36
|
-
</xs:restriction>
|
37
|
-
</xs:simpleType>
|
38
|
-
</xs:element>
|
39
|
-
<xs:element name="Status" type="CodedField" minOccurs="0">
|
40
|
-
<xs:annotation>
|
41
|
-
<xs:documentation>ACTIVE or INACTIVE</xs:documentation>
|
42
|
-
</xs:annotation>
|
43
|
-
</xs:element>
|
44
|
-
<xs:element name="EnteredBy" type="Clinician" minOccurs="0">
|
45
|
-
<xs:annotation>
|
46
|
-
<xs:documentation>Person entering the document as a National Clinicial code where possible or other local code if not.</xs:documentation>
|
47
|
-
</xs:annotation>
|
48
|
-
</xs:element>
|
49
|
-
<xs:element name="EnteredAt" type="Location" minOccurs="0">
|
50
|
-
<xs:annotation>
|
51
|
-
<xs:documentation>Location the procedure was performed at. Use National coding e.g. RXF01</xs:documentation>
|
52
|
-
</xs:annotation>
|
53
|
-
</xs:element>
|
54
|
-
<xs:element name="FileType" type="CodedField" minOccurs="0">
|
55
|
-
<xs:annotation>
|
56
|
-
<xs:documentation>The type of data e.g PDF, DOC, RTF, TXT</xs:documentation>
|
57
|
-
</xs:annotation>
|
58
|
-
</xs:element>
|
59
|
-
<xs:element name="Stream" type="xs:base64Binary" minOccurs="0">
|
60
|
-
<xs:annotation>
|
61
|
-
<xs:documentation>This property is used when the Note is binary data, e.g DOC, PDF, JPG</xs:documentation>
|
62
|
-
</xs:annotation>
|
63
|
-
</xs:element>
|
64
|
-
<xs:element name="DocumentURL" type="xs:string" minOccurs="0">
|
65
|
-
<xs:annotation>
|
66
|
-
<xs:documentation>The full URL where the document can be accessed.</xs:documentation>
|
67
|
-
</xs:annotation>
|
68
|
-
</xs:element>
|
69
|
-
<xs:group ref="CommonMetadata"/>
|
70
|
-
</xs:sequence>
|
71
|
-
</xs:complexType>
|
72
|
-
</xs:schema>
|
@@ -1,121 +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/CodedField.xsd"/>
|
5
|
-
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
|
6
|
-
<xs:complexType name="Encounter">
|
7
|
-
<xs:sequence>
|
8
|
-
<xs:element name="EncounterNumber" type="xs:string"/>
|
9
|
-
<xs:element name="EncounterType">
|
10
|
-
<xs:annotation>
|
11
|
-
<xs:documentation>General Encounter Type (PV1-2)</xs:documentation>
|
12
|
-
</xs:annotation>
|
13
|
-
<xs:simpleType>
|
14
|
-
<xs:restriction base="xs:string">
|
15
|
-
<xs:enumeration value="E">
|
16
|
-
<xs:annotation>
|
17
|
-
<xs:documentation>Emergency</xs:documentation>
|
18
|
-
</xs:annotation>
|
19
|
-
</xs:enumeration>
|
20
|
-
<xs:enumeration value="I">
|
21
|
-
<xs:annotation>
|
22
|
-
<xs:documentation>Inpatient</xs:documentation>
|
23
|
-
</xs:annotation>
|
24
|
-
</xs:enumeration>
|
25
|
-
<xs:enumeration value="N">
|
26
|
-
<xs:annotation>
|
27
|
-
<xs:documentation>N/A</xs:documentation>
|
28
|
-
</xs:annotation>
|
29
|
-
</xs:enumeration>
|
30
|
-
<xs:enumeration value="G">
|
31
|
-
<xs:annotation>
|
32
|
-
<xs:documentation>?</xs:documentation>
|
33
|
-
</xs:annotation>
|
34
|
-
</xs:enumeration>
|
35
|
-
<xs:enumeration value="P">
|
36
|
-
<xs:annotation>
|
37
|
-
<xs:documentation>Pre-Admit</xs:documentation>
|
38
|
-
</xs:annotation>
|
39
|
-
</xs:enumeration>
|
40
|
-
<xs:enumeration value="S">
|
41
|
-
<xs:annotation>
|
42
|
-
<xs:documentation>?</xs:documentation>
|
43
|
-
</xs:annotation>
|
44
|
-
</xs:enumeration>
|
45
|
-
<xs:enumeration value="R">
|
46
|
-
<xs:annotation>
|
47
|
-
<xs:documentation>Reoccuring Patient</xs:documentation>
|
48
|
-
</xs:annotation>
|
49
|
-
</xs:enumeration>
|
50
|
-
<xs:enumeration value="B">
|
51
|
-
<xs:annotation>
|
52
|
-
<xs:documentation>Obstetrics</xs:documentation>
|
53
|
-
</xs:annotation>
|
54
|
-
</xs:enumeration>
|
55
|
-
<xs:enumeration value="C">
|
56
|
-
<xs:annotation>
|
57
|
-
<xs:documentation>Commercial Account</xs:documentation>
|
58
|
-
</xs:annotation>
|
59
|
-
</xs:enumeration>
|
60
|
-
<xs:enumeration value="U">
|
61
|
-
<xs:annotation>
|
62
|
-
<xs:documentation>Unknown</xs:documentation>
|
63
|
-
</xs:annotation>
|
64
|
-
</xs:enumeration>
|
65
|
-
</xs:restriction>
|
66
|
-
</xs:simpleType>
|
67
|
-
</xs:element>
|
68
|
-
<xs:element name="FromTime" type="xs:dateTime">
|
69
|
-
<xs:annotation>
|
70
|
-
<xs:documentation>Time that encounter starts as CCYYMMDD</xs:documentation>
|
71
|
-
</xs:annotation>
|
72
|
-
</xs:element>
|
73
|
-
<xs:element name="ToTime" type="xs:dateTime">
|
74
|
-
<xs:annotation>
|
75
|
-
<xs:documentation>Time that encounter ends as CCYYMMDD</xs:documentation>
|
76
|
-
</xs:annotation>
|
77
|
-
</xs:element>
|
78
|
-
<xs:element name="AdmittingClinician" type="Clinician" minOccurs="0">
|
79
|
-
<xs:annotation>
|
80
|
-
<xs:documentation>Responsible Clinician as a National Clinicial code where possible or other local code if not.</xs:documentation>
|
81
|
-
</xs:annotation>
|
82
|
-
</xs:element>
|
83
|
-
<xs:element name="HealthCareFacility" type="Location" minOccurs="0">
|
84
|
-
<xs:annotation>
|
85
|
-
<xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
|
86
|
-
</xs:annotation>
|
87
|
-
</xs:element>
|
88
|
-
<xs:element name="AdmitReason" type="CodedField" minOccurs="0">
|
89
|
-
<xs:annotation>
|
90
|
-
<xs:documentation>Reason for change of care</xs:documentation>
|
91
|
-
</xs:annotation>
|
92
|
-
</xs:element>
|
93
|
-
<xs:element name="AdmissionSource" type="Location" minOccurs="0">
|
94
|
-
<xs:annotation>
|
95
|
-
<xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
|
96
|
-
</xs:annotation>
|
97
|
-
</xs:element>
|
98
|
-
<xs:element name="DischargeReason" type="CodedField" minOccurs="0">
|
99
|
-
<xs:annotation>
|
100
|
-
<xs:documentation>Reason for Discharge (Transplant, Removed from List etc.)</xs:documentation>
|
101
|
-
</xs:annotation>
|
102
|
-
</xs:element>
|
103
|
-
<xs:element name="DischargeLocation" type="Location" minOccurs="0">
|
104
|
-
<xs:annotation>
|
105
|
-
<xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
|
106
|
-
</xs:annotation>
|
107
|
-
</xs:element>
|
108
|
-
<xs:element name="EnteredAt" type="Location" minOccurs="0">
|
109
|
-
<xs:annotation>
|
110
|
-
<xs:documentation>National code for the hospital providing care - e.g. RXF01</xs:documentation>
|
111
|
-
</xs:annotation>
|
112
|
-
</xs:element>
|
113
|
-
<xs:element name="VisitDescription" type="xs:string" minOccurs="0">
|
114
|
-
<xs:annotation>
|
115
|
-
<xs:documentation>Details of validation e.g. Date Done, by whom, who provided the info</xs:documentation>
|
116
|
-
</xs:annotation>
|
117
|
-
</xs:element>
|
118
|
-
<xs:group ref="CommonMetadata"/>
|
119
|
-
</xs:sequence>
|
120
|
-
</xs:complexType>
|
121
|
-
</xs:schema>
|
@@ -1,108 +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
|
-
<!-- To be used to record NHS B&T Waiting List periods -->
|
4
|
-
<xs:include schemaLocation="../Types/Clinician.xsd"/>
|
5
|
-
<xs:include schemaLocation="../Types/Location.xsd"/>
|
6
|
-
<xs:include schemaLocation="../Types/CodedField.xsd"/>
|
7
|
-
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
|
8
|
-
<xs:complexType name="TransplantList">
|
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="O">
|
28
|
-
<xs:annotation>
|
29
|
-
<xs:documentation>Outpatient</xs:documentation>
|
30
|
-
</xs:annotation>
|
31
|
-
</xs:enumeration>
|
32
|
-
<xs:enumeration value="N">
|
33
|
-
<xs:annotation>
|
34
|
-
<xs:documentation>N/A</xs:documentation>
|
35
|
-
</xs:annotation>
|
36
|
-
</xs:enumeration>
|
37
|
-
<xs:enumeration value="G">
|
38
|
-
<xs:annotation>
|
39
|
-
<xs:documentation>?</xs:documentation>
|
40
|
-
</xs:annotation>
|
41
|
-
</xs:enumeration>
|
42
|
-
<xs:enumeration value="P">
|
43
|
-
<xs:annotation>
|
44
|
-
<xs:documentation>Pre-Admit</xs:documentation>
|
45
|
-
</xs:annotation>
|
46
|
-
</xs:enumeration>
|
47
|
-
<xs:enumeration value="S">
|
48
|
-
<xs:annotation>
|
49
|
-
<xs:documentation>?</xs:documentation>
|
50
|
-
</xs:annotation>
|
51
|
-
</xs:enumeration>
|
52
|
-
</xs:restriction>
|
53
|
-
</xs:simpleType>
|
54
|
-
</xs:element>
|
55
|
-
<xs:element name="FromTime" type="xs:dateTime">
|
56
|
-
<xs:annotation>
|
57
|
-
<xs:documentation>Time that encounter starts as CCYYMMDD</xs:documentation>
|
58
|
-
</xs:annotation>
|
59
|
-
</xs:element>
|
60
|
-
<xs:element name="ToTime" type="xs:dateTime">
|
61
|
-
<xs:annotation>
|
62
|
-
<xs:documentation>Time that encounter ends as CCYYMMDD</xs:documentation>
|
63
|
-
</xs:annotation>
|
64
|
-
</xs:element>
|
65
|
-
<xs:element name="AdmittingClinician" type="Clinician" minOccurs="0">
|
66
|
-
<xs:annotation>
|
67
|
-
<xs:documentation>Responsible Clinician as a National Clinicial code where possible or other local code if not.</xs:documentation>
|
68
|
-
</xs:annotation>
|
69
|
-
</xs:element>
|
70
|
-
<xs:element name="HealthCareFacility" type="Location" minOccurs="0">
|
71
|
-
<xs:annotation>
|
72
|
-
<xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
|
73
|
-
</xs:annotation>
|
74
|
-
</xs:element>
|
75
|
-
<xs:element name="AdmitReason" type="CodedField" minOccurs="0">
|
76
|
-
<xs:annotation>
|
77
|
-
<xs:documentation>Type of Organ</xs:documentation>
|
78
|
-
</xs:annotation>
|
79
|
-
</xs:element>
|
80
|
-
<xs:element name="AdmissionSource" type="Location" minOccurs="0">
|
81
|
-
<xs:annotation>
|
82
|
-
<xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
|
83
|
-
</xs:annotation>
|
84
|
-
</xs:element>
|
85
|
-
<xs:element name="DischargeReason" type="CodedField" minOccurs="0">
|
86
|
-
<xs:annotation>
|
87
|
-
<xs:documentation>Reason for Discharge (Transplant, Removed from List etc.)</xs:documentation>
|
88
|
-
</xs:annotation>
|
89
|
-
</xs:element>
|
90
|
-
<xs:element name="DischargeLocation" type="Location" minOccurs="0">
|
91
|
-
<xs:annotation>
|
92
|
-
<xs:documentation>Parent renal unit as national ODS code (e.g. RXF01)</xs:documentation>
|
93
|
-
</xs:annotation>
|
94
|
-
</xs:element>
|
95
|
-
<xs:element name="EnteredAt" type="Location" minOccurs="0">
|
96
|
-
<xs:annotation>
|
97
|
-
<xs:documentation>National code for the hospital providing care - e.g. RXF01</xs:documentation>
|
98
|
-
</xs:annotation>
|
99
|
-
</xs:element>
|
100
|
-
<xs:element name="VisitDescription" type="xs:string" minOccurs="0">
|
101
|
-
<xs:annotation>
|
102
|
-
<xs:documentation>Details of validation e.g. Date Done, by whom, who provided the info</xs:documentation>
|
103
|
-
</xs:annotation>
|
104
|
-
</xs:element>
|
105
|
-
<xs:group ref="CommonMetadata"/>
|
106
|
-
</xs:sequence>
|
107
|
-
</xs:complexType>
|
108
|
-
</xs:schema>
|