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

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.
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,27 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:complexType name="Location">
3
+ <xs:sequence>
4
+ <xs:element name="CodingStandard" minOccurs="0">
5
+ <xs:simpleType>
6
+ <xs:restriction base="xs:string">
7
+ <xs:maxLength value="32000"/>
8
+ </xs:restriction>
9
+ </xs:simpleType>
10
+ </xs:element>
11
+ <xs:element name="Code" minOccurs="0">
12
+ <xs:simpleType>
13
+ <xs:restriction base="xs:string">
14
+ <xs:maxLength value="32000"/>
15
+ </xs:restriction>
16
+ </xs:simpleType>
17
+ </xs:element>
18
+ <xs:element name="Description" minOccurs="0">
19
+ <xs:simpleType>
20
+ <xs:restriction base="xs:string">
21
+ <xs:maxLength value="32000"/>
22
+ </xs:restriction>
23
+ </xs:simpleType>
24
+ </xs:element>
25
+ </xs:sequence>
26
+ </xs:complexType>
27
+ </xs:schema>
@@ -0,0 +1,39 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:simpleType name="NV_RR14">
3
+
4
+ <xs:restriction base="xs:string">
5
+
6
+ <xs:enumeration value="10">
7
+ <xs:annotation>
8
+ <xs:documentation>Heart</xs:documentation>
9
+ </xs:annotation>
10
+ </xs:enumeration>
11
+
12
+ <xs:enumeration value="11">
13
+ <xs:annotation>
14
+ <xs:documentation>Lungs</xs:documentation>
15
+ </xs:annotation>
16
+ </xs:enumeration>
17
+
18
+ <xs:enumeration value="12">
19
+ <xs:annotation>
20
+ <xs:documentation>Liver</xs:documentation>
21
+ </xs:annotation>
22
+ </xs:enumeration>
23
+
24
+ <xs:enumeration value="13">
25
+ <xs:annotation>
26
+ <xs:documentation>Pancreas</xs:documentation>
27
+ </xs:annotation>
28
+ </xs:enumeration>
29
+
30
+ <xs:enumeration value="14">
31
+ <xs:annotation>
32
+ <xs:documentation>Intestines</xs:documentation>
33
+ </xs:annotation>
34
+ </xs:enumeration>
35
+
36
+ </xs:restriction>
37
+
38
+ </xs:simpleType>
39
+ </xs:schema>
@@ -0,0 +1,51 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:complexType name="Name">
3
+ <xs:sequence>
4
+ <xs:element name="Prefix" minOccurs="0">
5
+ <xs:annotation>
6
+ <xs:documentation>Prefix or title e.g. Mr, Mrs etc</xs:documentation>
7
+ </xs:annotation>
8
+ <xs:simpleType>
9
+ <xs:restriction base="xs:string">
10
+ <xs:maxLength value="220"/>
11
+ </xs:restriction>
12
+ </xs:simpleType>
13
+ </xs:element>
14
+ <xs:element name="Family" minOccurs="0">
15
+ <xs:annotation>
16
+ <xs:documentation>Surname or family name. Mandatory on Usual name</xs:documentation>
17
+ </xs:annotation>
18
+ <xs:simpleType>
19
+ <xs:restriction base="xs:string">
20
+ <xs:maxLength value="80"/>
21
+ </xs:restriction>
22
+ </xs:simpleType>
23
+ </xs:element>
24
+ <xs:element name="Given" minOccurs="0" maxOccurs="2">
25
+ <xs:annotation>
26
+ <xs:documentation>Up to 2 given names. If the person has more than 2 concatenate in the 2nd occurrence. 1 occurrence is mandatory for a Usual name.</xs:documentation>
27
+ </xs:annotation>
28
+ <xs:simpleType>
29
+ <xs:restriction base="xs:string">
30
+ <xs:maxLength value="60"/>
31
+ </xs:restriction>
32
+ </xs:simpleType>
33
+ </xs:element>
34
+ <xs:element name="Suffix" minOccurs="0">
35
+ <xs:annotation>
36
+ <xs:documentation>Suffix e.g. Jnr, Snr etc.</xs:documentation>
37
+ </xs:annotation>
38
+ <xs:simpleType>
39
+ <xs:restriction base="xs:string">
40
+ <xs:maxLength value="220"/>
41
+ </xs:restriction>
42
+ </xs:simpleType>
43
+ </xs:element>
44
+ </xs:sequence>
45
+ <xs:attribute name="use">
46
+ <xs:annotation>
47
+ <xs:documentation>Use codes from PDS L=Usual A=Alias (0..*) PREFERRED=Preferred PREVIOUS-BIRTH=Birth name</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:attribute>
50
+ </xs:complexType>
51
+ </xs:schema>
@@ -0,0 +1,75 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:complexType name="Occupation">
3
+ <xs:sequence>
4
+ <xs:element name="CodingStandard" minOccurs="0">
5
+ <xs:simpleType>
6
+ <xs:restriction base="xs:string">
7
+ <xs:enumeration value="NHS_DATA_DICTIONARY_EMPLOYMENT_STATUS">
8
+ <xs:annotation>
9
+ <xs:documentation>http://www.datadictionary.nhs.uk/data_dictionary/attributes/e/emp/employment_status_de.asp</xs:documentation>
10
+ </xs:annotation>
11
+ </xs:enumeration>
12
+ </xs:restriction>
13
+ </xs:simpleType>
14
+ </xs:element>
15
+ <xs:element name="Code" minOccurs="0">
16
+ <xs:simpleType>
17
+ <xs:restriction base="xs:string">
18
+ <xs:enumeration value="0l">
19
+ <xs:annotation>
20
+ <xs:documentation>Employed</xs:documentation>
21
+ </xs:annotation>
22
+ </xs:enumeration>
23
+ <xs:enumeration value="02">
24
+ <xs:annotation>
25
+ <xs:documentation>Unemployed</xs:documentation>
26
+ </xs:annotation>
27
+ </xs:enumeration>
28
+ <xs:enumeration value="03">
29
+ <xs:annotation>
30
+ <xs:documentation>Students who are undertaking full (at least 16 hours per week) or part-time (less than 16 hours per week) education or training and who are not working or actively seeking work</xs:documentation>
31
+ </xs:annotation>
32
+ </xs:enumeration>
33
+ <xs:enumeration value="04">
34
+ <xs:annotation>
35
+ <xs:documentation>Long-term sick or disabled, those who are receiving Incapacity Benefit, Income Support or both; or Employment and Support Allowance</xs:documentation>
36
+ </xs:annotation>
37
+ </xs:enumeration>
38
+ <xs:enumeration value="05">
39
+ <xs:annotation>
40
+ <xs:documentation>Homemaker looking after the family or home and who are not working or actively seeking work</xs:documentation>
41
+ </xs:annotation>
42
+ </xs:enumeration>
43
+ <xs:enumeration value="06">
44
+ <xs:annotation>
45
+ <xs:documentation>Not receiving benefits and who are not working or actively seeking work</xs:documentation>
46
+ </xs:annotation>
47
+ </xs:enumeration>
48
+ <xs:enumeration value="07">
49
+ <xs:annotation>
50
+ <xs:documentation>Unpaid voluntary work who are not working or actively seeking work</xs:documentation>
51
+ </xs:annotation>
52
+ </xs:enumeration>
53
+ <xs:enumeration value="08">
54
+ <xs:annotation>
55
+ <xs:documentation>Retired</xs:documentation>
56
+ </xs:annotation>
57
+ </xs:enumeration>
58
+ <xs:enumeration value="ZZ">
59
+ <xs:annotation>
60
+ <xs:documentation>Not Stated (Asked but declined to provide a response)</xs:documentation>
61
+ </xs:annotation>
62
+ </xs:enumeration>
63
+ </xs:restriction>
64
+ </xs:simpleType>
65
+ </xs:element>
66
+ <xs:element name="Description" minOccurs="0">
67
+ <xs:simpleType>
68
+ <xs:restriction base="xs:string">
69
+ <xs:maxLength value="32000"/>
70
+ </xs:restriction>
71
+ </xs:simpleType>
72
+ </xs:element>
73
+ </xs:sequence>
74
+ </xs:complexType>
75
+ </xs:schema>
@@ -0,0 +1,48 @@
1
+ <xs:complexType name="Order">
2
+ <xs:complexContent>
3
+ <xs:extension base="CodeTableTranslated"/>
4
+ </xs:complexContent>
5
+ </xs:complexType>
6
+ <xs:complexType name="OrderCategory">
7
+ <xs:complexContent>
8
+ <xs:extension base="CodeTableDetail"/>
9
+ </xs:complexContent>
10
+ </xs:complexType>
11
+ <xs:complexType name="Frequency">
12
+ <xs:complexContent>
13
+ <xs:extension base="CodeTableDetail">
14
+ <xs:sequence>
15
+ <xs:element minOccurs="0" name="Factor">
16
+ <xs:annotation>
17
+ <xs:documentation>HSDB: User.HS.PHCFreq(PHCFRFactor)&lt;br&gt;
18
+ Default 1</xs:documentation>
19
+ </xs:annotation>
20
+ <xs:simpleType>
21
+ <xs:restriction base="xs:string">
22
+ <xs:maxLength value="32000"/>
23
+ </xs:restriction>
24
+ </xs:simpleType>
25
+ </xs:element>
26
+ </xs:sequence>
27
+ </xs:extension>
28
+ </xs:complexContent>
29
+ </xs:complexType>
30
+ <xs:complexType name="Duration">
31
+ <xs:complexContent>
32
+ <xs:extension base="CodeTableDetail">
33
+ <xs:sequence>
34
+ <xs:element minOccurs="0" name="Factor">
35
+ <xs:annotation>
36
+ <xs:documentation>Number of days
37
+ HSDB: User.HS.PHCDuration(PHCDUFactor)</xs:documentation>
38
+ </xs:annotation>
39
+ <xs:simpleType>
40
+ <xs:restriction base="xs:string">
41
+ <xs:maxLength value="32000"/>
42
+ </xs:restriction>
43
+ </xs:simpleType>
44
+ </xs:element>
45
+ </xs:sequence>
46
+ </xs:extension>
47
+ </xs:complexContent>
48
+ </xs:complexType>
@@ -0,0 +1,90 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+ <xs:complexType name="PatientNumber">
3
+ <xs:sequence>
4
+ <xs:element name="Number" minOccurs="0">
5
+ <xs:annotation>
6
+ <xs:documentation>Patient Idenfitication Number</xs:documentation>
7
+ </xs:annotation>
8
+ <xs:simpleType>
9
+ <xs:restriction base="xs:string">
10
+ <xs:maxLength value="220"/>
11
+ </xs:restriction>
12
+ </xs:simpleType>
13
+ </xs:element>
14
+
15
+ <xs:element name="Organization" minOccurs="0">
16
+ <xs:annotation>
17
+ <xs:documentation>Organisation that issued the number</xs:documentation>
18
+ </xs:annotation>
19
+ <xs:simpleType>
20
+ <xs:restriction base="xs:string">
21
+ <xs:enumeration value="NHS">
22
+ <xs:annotation>
23
+ <xs:documentation>NHS Number (England and Wales)</xs:documentation>
24
+ </xs:annotation>
25
+ </xs:enumeration>
26
+ <xs:enumeration value="CHI">
27
+ <xs:annotation>
28
+ <xs:documentation>NHS Number (Scotland)</xs:documentation>
29
+ </xs:annotation>
30
+ </xs:enumeration>
31
+ <xs:enumeration value="HSC">
32
+ <xs:annotation>
33
+ <xs:documentation>NHS Number (Ireland)</xs:documentation>
34
+ </xs:annotation>
35
+ </xs:enumeration>
36
+ <xs:enumeration value="UKRR">
37
+ <xs:annotation>
38
+ <xs:documentation>UK Renal Registry</xs:documentation>
39
+ </xs:annotation>
40
+ </xs:enumeration>
41
+ <xs:enumeration value="SRR">
42
+ <xs:annotation>
43
+ <xs:documentation>Scottish Renal Registry</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:enumeration>
46
+ <xs:enumeration value="NHSBT">
47
+ <xs:annotation>
48
+ <xs:documentation>NHS Blood and Transplant</xs:documentation>
49
+ </xs:annotation>
50
+ </xs:enumeration>
51
+ <xs:enumeration value="RADAR">
52
+ <xs:annotation>
53
+ <xs:documentation>Rare Disease Registry</xs:documentation>
54
+ </xs:annotation>
55
+ </xs:enumeration>
56
+ <xs:enumeration value="BAPN">
57
+ <xs:annotation>
58
+ <xs:documentation>British Association For Paediatric Nephrology</xs:documentation>
59
+ </xs:annotation>
60
+ </xs:enumeration>
61
+ <xs:enumeration value="LOCALHOSP">
62
+ <xs:annotation>
63
+ <xs:documentation>Local Hospital Number</xs:documentation>
64
+ <!-- TODO: Ideally this would be the Trust ID but this wouldn't allow the enumeration. We could swap LOCALHOSP for that on load? -->
65
+ </xs:annotation>
66
+ </xs:enumeration>
67
+ </xs:restriction>
68
+ </xs:simpleType>
69
+ </xs:element>
70
+
71
+ <xs:element minOccurs="0" name="NumberType">
72
+ <xs:simpleType>
73
+ <xs:restriction base="xs:string">
74
+ <xs:enumeration value="MRN">
75
+ <xs:annotation>
76
+ <xs:documentation>Primary Identifier for that Organisation</xs:documentation>
77
+ </xs:annotation>
78
+ </xs:enumeration>
79
+ <xs:enumeration value="NI">
80
+ <xs:annotation>
81
+ <xs:documentation>For 3rd-Party Identifiers such as NHS Numbers</xs:documentation>
82
+ </xs:annotation>
83
+ </xs:enumeration>
84
+ </xs:restriction>
85
+ </xs:simpleType>
86
+ </xs:element>
87
+
88
+ </xs:sequence>
89
+ </xs:complexType>
90
+ </xs:schema>
@@ -0,0 +1,11 @@
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="ContactDetail.xsd"/>
4
+ <xs:complexType name="PersonalContactType">
5
+ <xs:sequence>
6
+ <xs:element name="Name" type="xs:string"/>
7
+ <xs:element name="ContactDetails" type="ContactDetail" minOccurs="0" maxOccurs="unbounded"/>
8
+ <xs:element name="Relationship" type="xs:string"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:schema>
@@ -0,0 +1,178 @@
1
+ <xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
2
+
3
+ <xs:complexType name="Result">
4
+ <xs:sequence>
5
+ <xs:element minOccurs="0" name="FromTime" type="TimeStamp">
6
+ <xs:annotation>
7
+ <xs:documentation>start of time range.</xs:documentation>
8
+ </xs:annotation>
9
+ </xs:element>
10
+ <xs:element minOccurs="0" name="ToTime" type="TimeStamp">
11
+ <xs:annotation>
12
+ <xs:documentation>End of time range</xs:documentation>
13
+ </xs:annotation>
14
+ </xs:element>
15
+ <xs:element minOccurs="0" name="CustomPairs" type="ArrayOfNVPairNVPair">
16
+ <xs:annotation>
17
+ <xs:documentation>The generic container to hold all sorts of data about this object</xs:documentation>
18
+ </xs:annotation>
19
+ </xs:element>
20
+ <xs:element minOccurs="0" name="ResultType" type="xs:string">
21
+ <xs:annotation>
22
+ <xs:documentation>Describes the type of result. Atomic results are treated differently than other results - they have a list of ResultItems, where non-atomic results have either a ResultText or a Stream (for IM types)</xs:documentation>
23
+ </xs:annotation>
24
+ </xs:element>
25
+ <xs:element minOccurs="0" name="ResultItems">
26
+ <xs:annotation>
27
+ <xs:documentation>A list of the lab result's items, used for atomic results</xs:documentation>
28
+ </xs:annotation>
29
+ <xs:complexType>
30
+ <xs:sequence>
31
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="LabResultItem" nillable="true" type="LabResultItem"/>
32
+ </xs:sequence>
33
+ </xs:complexType>
34
+ </xs:element>
35
+ <xs:element minOccurs="0" name="VerifiedBy" type="CareProvider">
36
+ <xs:annotation>
37
+ <xs:documentation>Care provider who verified result</xs:documentation>
38
+ </xs:annotation>
39
+ </xs:element>
40
+ <xs:element minOccurs="0" name="ResultTime" type="TimeStamp">
41
+ <xs:annotation>
42
+ <xs:documentation>Time of result</xs:documentation>
43
+ </xs:annotation>
44
+ </xs:element>
45
+ <xs:element minOccurs="0" name="ResultStatus" type="xs:string">
46
+ <xs:annotation>
47
+ <xs:documentation>Result status</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:element>
50
+ <xs:element minOccurs="0" name="ResultText" type="xs:string">
51
+ <xs:annotation>
52
+ <xs:documentation>The actual text of the result</xs:documentation>
53
+ </xs:annotation>
54
+ </xs:element>
55
+ <xs:element minOccurs="0" name="FileType" type="xs:string">
56
+ <xs:annotation>
57
+ <xs:documentation>The type of data e.g PDF, DOC, RTF, TXT</xs:documentation>
58
+ </xs:annotation>
59
+ </xs:element>
60
+ <xs:element minOccurs="0" name="DocumentName">
61
+ <xs:annotation>
62
+ <xs:documentation>This is the name of the document.</xs:documentation>
63
+ </xs:annotation>
64
+ <xs:simpleType>
65
+ <xs:restriction base="xs:string">
66
+ <xs:maxLength value="220"/>
67
+ </xs:restriction>
68
+ </xs:simpleType>
69
+ </xs:element>
70
+ <xs:element minOccurs="0" name="Stream" type="xs:base64Binary">
71
+ <xs:annotation>
72
+ <xs:documentation>This property contains the (text) result, which can be lines of text (if FileType="TXT")</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:element>
75
+ <xs:element minOccurs="0" name="DocumentURL">
76
+ <xs:annotation>
77
+ <xs:documentation>The full URL where the document can be accessed</xs:documentation>
78
+ </xs:annotation>
79
+ <xs:simpleType>
80
+ <xs:restriction base="xs:string">
81
+ <xs:maxLength value="32000"/>
82
+ </xs:restriction>
83
+ </xs:simpleType>
84
+ </xs:element>
85
+ <xs:element minOccurs="0" name="DocumentNumber">
86
+ <xs:annotation>
87
+ <xs:documentation>Used as an external reference Id.</xs:documentation>
88
+ </xs:annotation>
89
+ <xs:simpleType>
90
+ <xs:restriction base="xs:string">
91
+ <xs:maxLength value="220"/>
92
+ </xs:restriction>
93
+ </xs:simpleType>
94
+ </xs:element>
95
+ <xs:element minOccurs="0" name="Comments" type="xs:string">
96
+ <xs:annotation>
97
+ <xs:documentation></xs:documentation>
98
+ </xs:annotation>
99
+ </xs:element>
100
+ <xs:element minOccurs="0" name="AuthorizationTime" type="TimeStamp">
101
+ <xs:annotation>
102
+ <xs:documentation>Time result was authenticated/verified</xs:documentation>
103
+ </xs:annotation>
104
+ </xs:element>
105
+ <xs:element minOccurs="0" name="PerformedAt" type="Organization">
106
+ <xs:annotation>
107
+ <xs:documentation>PerformedAt / ProducersID</xs:documentation>
108
+ </xs:annotation>
109
+ </xs:element>
110
+ <xs:element minOccurs="0" name="ResultInterpretation" type="xs:string">
111
+ <xs:annotation>
112
+ <xs:documentation></xs:documentation>
113
+ </xs:annotation>
114
+ </xs:element>
115
+ <xs:element minOccurs="0" name="GUID" type="xs:string">
116
+ <xs:annotation>
117
+ <xs:documentation>The unique identifier for a radiology image cached by eHGT.</xs:documentation>
118
+ </xs:annotation>
119
+ </xs:element>
120
+ <xs:element minOccurs="0" name="GUIDExpDate" type="TimeStamp">
121
+ <xs:annotation>
122
+ <xs:documentation>The date on which the image cache identified by the GUID expires.</xs:documentation>
123
+ </xs:annotation>
124
+ </xs:element>
125
+ <xs:element minOccurs="0" name="EnteredBy" type="User">
126
+ <xs:annotation>
127
+ <xs:documentation></xs:documentation>
128
+ </xs:annotation>
129
+ </xs:element>
130
+ <xs:element minOccurs="0" name="EnteredAt" type="Organization">
131
+ <xs:annotation>
132
+ <xs:documentation></xs:documentation>
133
+ </xs:annotation>
134
+ </xs:element>
135
+ <xs:element minOccurs="0" name="EnteredOn" type="TimeStamp">
136
+ <xs:annotation>
137
+ <xs:documentation></xs:documentation>
138
+ </xs:annotation>
139
+ </xs:element>
140
+ <xs:element minOccurs="0" name="ExternalId">
141
+ <xs:annotation>
142
+ <xs:documentation>Used as a default for FillerId for an Order</xs:documentation>
143
+ </xs:annotation>
144
+ <xs:simpleType>
145
+ <xs:restriction base="xs:string">
146
+ <xs:maxLength value="220"/>
147
+ </xs:restriction>
148
+ </xs:simpleType>
149
+ </xs:element>
150
+ <xs:element minOccurs="0" name="ActionCode" type="xs:string">
151
+ <xs:annotation>
152
+ <xs:documentation>Not used.</xs:documentation>
153
+ </xs:annotation>
154
+ </xs:element>
155
+ <xs:element minOccurs="0" name="ActionScope" type="xs:string">
156
+ <xs:annotation>
157
+ <xs:documentation>Not used.</xs:documentation>
158
+ </xs:annotation>
159
+ </xs:element>
160
+ <xs:element minOccurs="0" name="UpdatedOn" type="TimeStamp">
161
+ <xs:annotation>
162
+ <xs:documentation>Not used.</xs:documentation>
163
+ </xs:annotation>
164
+ </xs:element>
165
+ <xs:element minOccurs="0" name="EncounterNumber">
166
+ <xs:annotation>
167
+ <xs:documentation>Not used.</xs:documentation>
168
+ </xs:annotation>
169
+ <xs:simpleType>
170
+ <xs:restriction base="xs:string">
171
+ <xs:maxLength value="220"/>
172
+ </xs:restriction>
173
+ </xs:simpleType>
174
+ </xs:element>
175
+ </xs:sequence>
176
+ </xs:complexType>
177
+
178
+ </xs:schema>