open_ehr 0.6.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/Gemfile +10 -2
  2. data/Gemfile.lock +58 -18
  3. data/Guardfile +2 -1
  4. data/History.txt +10 -3
  5. data/Manifest.txt +3 -5
  6. data/README.rdoc +36 -32
  7. data/Rakefile +1 -1
  8. data/VERSION +1 -1
  9. data/bin/adl_validator.rb +84 -0
  10. data/lib/open_ehr/am/archetype/constraint_model/primitive.rb +11 -7
  11. data/lib/open_ehr/am/archetype/constraint_model.rb +4 -16
  12. data/lib/open_ehr/am/archetype/ontology.rb +37 -6
  13. data/lib/open_ehr/am/archetype.rb +6 -7
  14. data/lib/open_ehr/am/open_ehr_profile/data_types/text.rb +5 -2
  15. data/lib/open_ehr/parser/adl.rb +19 -0
  16. data/lib/open_ehr/parser/adl_grammar.tt +155 -0
  17. data/lib/open_ehr/parser/adl_parser.rb +48 -0
  18. data/lib/open_ehr/parser/cadl_grammar.tt +803 -0
  19. data/lib/open_ehr/parser/dadl.rb +13 -0
  20. data/lib/open_ehr/parser/dadl_grammar.tt +358 -0
  21. data/lib/open_ehr/parser/exception.rb +68 -0
  22. data/lib/open_ehr/parser/scanner/adl_scanner.rb +819 -0
  23. data/lib/open_ehr/parser/shared_token_grammar.tt +1200 -0
  24. data/lib/open_ehr/parser/validator.rb +20 -0
  25. data/lib/open_ehr/parser.rb +16 -12
  26. data/lib/open_ehr.rb +1 -0
  27. data/open_ehr.gemspec +364 -0
  28. data/spec/lib/open_ehr/am/archetype/archetype_spec.rb +7 -2
  29. data/spec/lib/open_ehr/am/archetype/constraint_model/c_multiple_attribute_spec.rb +0 -6
  30. data/spec/lib/open_ehr/am/archetype/constraint_model/c_object_spec.rb +10 -10
  31. data/spec/lib/open_ehr/am/archetype/constraint_model/c_single_attribute_spec.rb +0 -6
  32. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_boolean_spec.rb +5 -0
  33. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_date_time_spec.rb +5 -0
  34. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_duration_spec.rb +5 -0
  35. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_integer_spec.rb +5 -0
  36. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_primitive_spec.rb +8 -6
  37. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_real_spec.rb +7 -2
  38. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_string_spec.rb +5 -0
  39. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_time_spec.rb +5 -0
  40. data/spec/lib/open_ehr/am/archetype/ontology/archetype_ontology_spec.rb +27 -7
  41. data/spec/lib/open_ehr/am/archetype/ontology/archetype_term_spec.rb +3 -3
  42. data/spec/lib/open_ehr/parser/adl/adl-test-ENTRY.assumed_types.v1.adl +88 -0
  43. data/spec/lib/open_ehr/parser/adl/adl-test-ENTRY.basic_types.v1.adl +143 -0
  44. data/spec/lib/open_ehr/parser/adl/adl-test-ENTRY.basic_types_fail.v1.adl +50 -0
  45. data/spec/lib/open_ehr/parser/adl/adl-test-ENTRY.most_minimal.v1.adl +27 -0
  46. data/spec/lib/open_ehr/parser/adl/adl-test-ENTRY.structure_test1.v1.adl +46 -0
  47. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ACTION.imaging.v1.adl +275 -0
  48. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ACTION.referral.v1.adl +351 -0
  49. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.auscultation-chest.v1.adl +765 -0
  50. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.auscultation.v1.adl +217 -0
  51. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.dimensions-circumference.v1.adl +134 -0
  52. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.dimensions.v1.adl +241 -0
  53. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-abdomen.v1.adl +321 -0
  54. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-chest.v1.adl +379 -0
  55. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-fetus.v1.adl +577 -0
  56. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic-joint.v1.adl +146 -0
  57. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic-lymphnode.v1.adl +176 -0
  58. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic-mass.v1.adl +221 -0
  59. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic.v1.adl +139 -0
  60. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-nervous_system.v1.adl +116 -0
  61. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl +420 -0
  62. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-uterus.v1.adl +293 -0
  63. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-COMPOSITION.discharge.v1draft.adl +53 -0
  64. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-COMPOSITION.encounter.v1draft.adl +45 -0
  65. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-EVALUATION.adverse.v1.adl +411 -0
  66. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-INSTRUCTION.medication.v1.adl +88 -0
  67. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-INSTRUCTION.referral.v1.adl +84 -0
  68. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.Laboratory_request.v1.adl +492 -0
  69. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.follow_up.v1draft.adl +94 -0
  70. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.imaging.v1.adl +127 -0
  71. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.medication-formulation.v1.adl +457 -0
  72. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.medication.v1.adl +869 -0
  73. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.referral.v1.adl +494 -0
  74. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-OBSERVATION.apgar.v1.adl +545 -0
  75. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl +673 -0
  76. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-OBSERVATION.body_mass_index.v1.adl +166 -0
  77. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.findings.v1.adl +47 -0
  78. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.reason_for_encounter.v1.adl +51 -0
  79. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.summary.v1.adl +52 -0
  80. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.vital_signs.v1.adl +54 -0
  81. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-cadl_sample.v1.adl +9 -0
  82. data/spec/lib/open_ehr/parser/adl_parser_spec.rb +210 -0
  83. data/spec/lib/open_ehr/parser/base_spec.rb +19 -0
  84. data/spec/spec.opts +2 -1
  85. data/spec/spec_helper.rb +3 -0
  86. metadata +166 -52
  87. data/doc/README_rdoc.html +0 -148
  88. data/doc/created.rid +0 -2
  89. data/doc/images/brick.png +0 -0
  90. data/doc/images/brick_link.png +0 -0
  91. data/doc/images/bug.png +0 -0
  92. data/doc/images/bullet_black.png +0 -0
  93. data/doc/images/bullet_toggle_minus.png +0 -0
  94. data/doc/images/bullet_toggle_plus.png +0 -0
  95. data/doc/images/date.png +0 -0
  96. data/doc/images/find.png +0 -0
  97. data/doc/images/loadingAnimation.gif +0 -0
  98. data/doc/images/macFFBgHack.png +0 -0
  99. data/doc/images/package.png +0 -0
  100. data/doc/images/page_green.png +0 -0
  101. data/doc/images/page_white_text.png +0 -0
  102. data/doc/images/page_white_width.png +0 -0
  103. data/doc/images/plugin.png +0 -0
  104. data/doc/images/ruby.png +0 -0
  105. data/doc/images/tag_green.png +0 -0
  106. data/doc/images/wrench.png +0 -0
  107. data/doc/images/wrench_orange.png +0 -0
  108. data/doc/images/zoom.png +0 -0
  109. data/doc/index.html +0 -54
  110. data/doc/js/darkfish.js +0 -116
  111. data/doc/js/jquery.js +0 -32
  112. data/doc/js/quicksearch.js +0 -114
  113. data/doc/js/thickbox-compressed.js +0 -10
  114. data/doc/rdoc.css +0 -706
  115. data/lib/#open_ehr.rb# +0 -11
@@ -0,0 +1,411 @@
1
+ archetype (adl_version=1.4)
2
+ openEHR-EHR-EVALUATION.adverse.v1
3
+
4
+ concept
5
+ [at0000] -- Adverse reaction
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ translations = <
9
+ ["de"] = <
10
+ language = <[ISO_639-1::de]>
11
+ author = <
12
+ ["name"] = <"Jasmin Buck, Sebastian Garde">
13
+ ["organisation"] = <"University of Heidelberg, Central Queensland University">
14
+ >
15
+ >
16
+ >
17
+ description
18
+ original_author = <
19
+ ["name"] = <"Sam Heard">
20
+ ["organisation"] = <"Ocean Informatics">
21
+ ["date"] = <"23/04/2006">
22
+ ["email"] = <"sam.heard@oceaninformatics.biz">
23
+ >
24
+ details = <
25
+ ["de"] = <
26
+ language = <[ISO_639-1::de]>
27
+ purpose = <"Zur Dokumentation von Nebenwirkungen auf einen bestimmten Wirkstoff. Die Art dieses Stoffes kann ebenfalls Dokumentiert werden. Fr�herer Aufzeichnungen k�nnen hinzugef�gt werden und auch die Art der Reaktion beim jeweiligen Ereignis.">
28
+ use = <"">
29
+ keywords = <"Reaktion", "allergisch", "Allergie", "Intoleranz">
30
+ misuse = <"Nicht zur Dokumentation keines Verlaufs einer Reaktion auf eine Substanz. F�r diesen Zweck openEHR-EVALUATION.excluded-adverse benutzen. F�r unbekannte Reaktionen auf beliebige Wirkstoffe openEHR-EVALUATION.excluded benutzen.">
31
+ >
32
+ ["en"] = <
33
+ language = <[ISO_639-1::en]>
34
+ purpose = <"For recording adverse reaction(s) to a particular 'Agent' the type of which may be recorded also. Historical recordings may be added and the type of reaction on each occasion.">
35
+ use = <"">
36
+ keywords = <"reaction", "allergic", "allergy", "intolerance">
37
+ misuse = <"Do not use for recording no history of a reaction to a substance. Use openEHR-EVALUATION.excluded-adverse for this purpose. No known reactions to any agents, use openEHR-EVALUATION.excluded.">
38
+ >
39
+ >
40
+ lifecycle_state = <"AuthorDraft">
41
+ other_contributors = <"NEHTA data groups (Australia)", "General Practice Computing Group (Australia)">
42
+
43
+ definition
44
+ EVALUATION[at0000] matches { -- Adverse reaction
45
+ data matches {
46
+ ITEM_TREE[at0002] matches { -- structure
47
+ items cardinality matches {0..*; unordered} matches {
48
+ ELEMENT[at0003] matches { -- Agent
49
+ value matches {
50
+ DV_TEXT matches {*}
51
+ }
52
+ }
53
+ ELEMENT[at0010] occurrences matches {0..1} matches { -- Agent category
54
+ value matches {
55
+ DV_CODED_TEXT matches {
56
+ defining_code matches {
57
+ [local::
58
+ at0011, -- Food
59
+ at0012, -- Animal
60
+ at0013, -- Medication
61
+ at0014, -- Other chemical or substance
62
+ at0031, -- Non-active ingredient of medication
63
+ at0033, -- Imaging dye or media
64
+ at0034] -- Environmental
65
+ }
66
+ }
67
+ }
68
+ }
69
+ CLUSTER[at0019] occurrences matches {0..*} matches { -- Exposure and reaction detail
70
+ items cardinality matches {1..*; unordered} matches {
71
+ ELEMENT[at0032] occurrences matches {0..1} matches { -- Specific substance
72
+ value matches {
73
+ DV_TEXT matches {*}
74
+ }
75
+ }
76
+ ELEMENT[at0015] occurrences matches {0..1} matches { -- Reaction category
77
+ value matches {
78
+ DV_CODED_TEXT matches {
79
+ defining_code matches {
80
+ [local::
81
+ at0016, -- Intolerance
82
+ at0017, -- Sensitivity
83
+ at0018, -- Allergy
84
+ at0030] -- No reaction
85
+ }
86
+ }
87
+ }
88
+ }
89
+ ELEMENT[at0004] occurrences matches {0..1} matches { -- Probability of causation
90
+ value matches {
91
+ DV_CODED_TEXT matches {
92
+ defining_code matches {
93
+ [local::
94
+ at0005, -- Certain/Highly likely
95
+ at0006, -- Probable
96
+ at0007] -- Possible
97
+ }
98
+ }
99
+ }
100
+ }
101
+ ELEMENT[at0020] occurrences matches {0..1} matches { -- Date of exposure
102
+ value matches {
103
+ DV_DATE_TIME matches {
104
+ value matches {yyyy-??-??T??:??:??}
105
+ }
106
+ }
107
+ }
108
+ ELEMENT[at0021] occurrences matches {0..1} matches { -- Duration of the exposure
109
+ value matches {
110
+ DV_DURATION matches {
111
+ value matches {PYMWDTHMS}
112
+ }
113
+ }
114
+ }
115
+ ELEMENT[at0023] occurrences matches {0..1} matches { -- Reaction severity
116
+ value matches {
117
+ DV_CODED_TEXT matches {
118
+ defining_code matches {
119
+ [local::
120
+ at0024, -- Mild
121
+ at0025, -- Disabling
122
+ at0026] -- Life threatening
123
+ }
124
+ }
125
+ }
126
+ }
127
+ ELEMENT[at0022] matches { -- Reaction description
128
+ value matches {
129
+ DV_TEXT matches {*}
130
+ }
131
+ }
132
+ ELEMENT[at0027] occurrences matches {0..1} matches { -- Date of onset of reaction
133
+ value matches {
134
+ DV_DATE_TIME matches {
135
+ value matches {yyyy-??-??T??:??:??}
136
+ }
137
+ }
138
+ }
139
+ ELEMENT[at0028] occurrences matches {0..1} matches { -- Duration of the reaction
140
+ value matches {
141
+ C_DV_QUANTITY <
142
+ property = <[openehr::128]>
143
+ >
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+
153
+ ontology
154
+ term_definitions = <
155
+ ["de"] = <
156
+ items = <
157
+ ["at0000"] = <
158
+ description = <"Zur Dokumentation des Vorhandenseins von sch�dlichen oder unerw�nschten Reaktionen auf einen Wirkstoff oder eine Substanz, einschlie�lich Nahrung, festgestellt von einem Klinikarzt - Vergiftungen und unsachgem��er Gebrauch ausgeschlossen">
159
+ text = <"Nebenwirkung">
160
+ >
161
+ ["at0002"] = <
162
+ description = <"@ internal @">
163
+ text = <"Structure">
164
+ >
165
+ ["at0003"] = <
166
+ description = <"Der Wirkstoff, die Substanz oder die Klasse, welche die Nebenwirkung ausgel�st hat">
167
+ text = <"Wirkstoff">
168
+ >
169
+ ["at0004"] = <
170
+ description = <"Grad an Sicherheit, dass der Wirkstoff der Ausl�ser der Reaktion war">
171
+ text = <"Wahrscheinlichkeit f�r kausalen Zusammenhang">
172
+ >
173
+ ["at0005"] = <
174
+ description = <"Die Reaktion ist laut einem Klinikarzt auf den Wirkstoff zur�ckzuf�hren">
175
+ text = <"Sicher/ sehr wahrscheinlich">
176
+ >
177
+ ["at0006"] = <
178
+ description = <"Die Reaktion ist wahrscheinlich auf den Wirkstoff zur�ckzuf�hren">
179
+ text = <"Wahrscheinlich">
180
+ >
181
+ ["at0007"] = <
182
+ description = <"Die Reaktion ist m�glicherweise auf den Wirkstoff zur�ckzuf�hren">
183
+ text = <"M�glicherweise">
184
+ >
185
+ ["at0010"] = <
186
+ description = <"Die Gruppe des Wirkstoffs">
187
+ text = <"Wirkstoffgruppe">
188
+ >
189
+ ["at0011"] = <
190
+ description = <"Eine Substanz, die als Teil der Ern�hrung zugef�hrt wurde ">
191
+ text = <"Nahrungsmittel">
192
+ >
193
+ ["at0012"] = <
194
+ description = <"Ein lebender Organismus und dessen Gift oder produzierter Stoff">
195
+ text = <"Tier">
196
+ >
197
+ ["at0013"] = <
198
+ description = <"Eine Substanz, die aus medizinischen Gr�nden eingenommen oder verabreicht wurde">
199
+ text = <"Medikament">
200
+ >
201
+ ["at0014"] = <
202
+ description = <"Nicht-medizinische Chemikalie oder Substanz">
203
+ text = <"Andere Chemikalie oder Substanz">
204
+ >
205
+ ["at0015"] = <
206
+ description = <"Die Art der von der Person erfahrenen Reaktion, von einem Klinikarzt ermittelt">
207
+ text = <"Reaktionsart">
208
+ >
209
+ ["at0016"] = <
210
+ description = <"F�hrt zu unerfreulichen Symptomen, die ausreichen um einen Gebrauch in der Zukunft zu vermeiden">
211
+ text = <"Intoleranz">
212
+ >
213
+ ["at0017"] = <
214
+ description = <"F�hrt zu Krankhaftigkeit die eventuell zum Wohle des Patienten behandelt werden muss">
215
+ text = <"Empfindlichkeit">
216
+ >
217
+ ["at0018"] = <
218
+ description = <"F�hrt zu einer IgE Reaktion">
219
+ text = <"Allergie">
220
+ >
221
+ ["at0019"] = <
222
+ description = <"Einzelheiten der von der Person erfahrenen Reaktion">
223
+ text = <"Exposition und Einzelheiten der Reaktion">
224
+ >
225
+ ["at0020"] = <
226
+ description = <"Das Datum (+/- Zeit) wann die Person gegen�ber dem Wirkstoff exponiert wurde">
227
+ text = <"Datum der Exposition">
228
+ >
229
+ ["at0021"] = <
230
+ description = <"Die Dauer der Exposition gegen�ber dem Wirkstoff">
231
+ text = <"Dauer der Exposition">
232
+ >
233
+ ["at0022"] = <
234
+ description = <"Eine Beschreibung der von einer Person erfahrenen Reaktion auf einen Wirkstoff">
235
+ text = <"Beschreibung der Reaktion">
236
+ >
237
+ ["at0023"] = <
238
+ description = <"Die Klasse der Reaktion f�r zuk�nftige Empfehlungen">
239
+ text = <"Schweregrad der Reaktion">
240
+ >
241
+ ["at0024"] = <
242
+ description = <"Eine Reaktion, die wenig Leiden und keinen Verlust der Arbeitsf�higkeit/ Schulf�higkeit verursacht">
243
+ text = <"Gelinde">
244
+ >
245
+ ["at0025"] = <
246
+ description = <"Eine Reaktion, die Krankheit und/oder den Verlust Funktionen verursacht">
247
+ text = <"Unf�hig machend">
248
+ >
249
+ ["at0026"] = <
250
+ description = <"Eine Reaktion die lebensbedrohlich wahr oder sein kann">
251
+ text = <"Lebensbedrohlich">
252
+ >
253
+ ["at0027"] = <
254
+ description = <"Das Datum, an dem die Reaktion eintrat">
255
+ text = <"Datum des Beginns der Reaktion">
256
+ >
257
+ ["at0028"] = <
258
+ description = <"Die Dauer der Reaktion">
259
+ text = <"Dauer der Reaktion">
260
+ >
261
+ ["at0030"] = <
262
+ description = <"Die Person war ohne Reaktion exponiert">
263
+ text = <"Keine Reaktion">
264
+ >
265
+ ["at0031"] = <
266
+ description = <"Ein nicht-medizinischer Bestandteil des Medikaments, wie Farbstoff, Konservierungsstoff, usw. (Untertyp von andere Chemikalien)">
267
+ text = <"Inaktiver Bestandteil des Medikaments">
268
+ >
269
+ ["at0032"] = <
270
+ description = <"Die charakteristische Substanz, die die Reaktion verursacht, falls verschieden vom Wirkstoff (z.B. Marken oder Teile einer Klasse)">
271
+ text = <"Charakteristische Substanz">
272
+ >
273
+ ["at0033"] = <
274
+ description = <"Zur diagnostischen Bildgebung benutzter Farbstoff oder Medium (Untertyp von anderen Chemikalien)">
275
+ text = <"Abbildender Farbstoff oder Medium">
276
+ >
277
+ ["at0034"] = <
278
+ description = <"Ein in der Umwelt vorhandener Wirkstoff">
279
+ text = <"Umgebend">
280
+ >
281
+ >
282
+ >
283
+ ["en"] = <
284
+ items = <
285
+ ["at0000"] = <
286
+ description = <"Recording the presence of a harmful or undesirable response to an agent or substance including food, as determined by the clinician - excluding poisoning and abnormal use">
287
+ text = <"Adverse reaction">
288
+ >
289
+ ["at0002"] = <
290
+ description = <"@ internal @">
291
+ text = <"structure">
292
+ >
293
+ ["at0003"] = <
294
+ description = <"The agent or substance or class that caused the adverse reaction">
295
+ text = <"Agent">
296
+ >
297
+ ["at0004"] = <
298
+ description = <"Degree of certainty that the agent was the cause of the reaction">
299
+ text = <"Probability of causation">
300
+ >
301
+ ["at0005"] = <
302
+ description = <"A reaction to the agent is deemed to be or have been present by the clinician">
303
+ text = <"Certain/Highly likely">
304
+ >
305
+ ["at0006"] = <
306
+ description = <"The reaction is deemed to be the probable cause of the reaction">
307
+ text = <"Probable">
308
+ >
309
+ ["at0007"] = <
310
+ description = <"The agent is deemed to be a possible cause of the reaction">
311
+ text = <"Possible">
312
+ >
313
+ ["at0010"] = <
314
+ description = <"The category of the agent">
315
+ text = <"Agent category">
316
+ >
317
+ ["at0011"] = <
318
+ description = <"A substance taken as part of the diet">
319
+ text = <"Food">
320
+ >
321
+ ["at0012"] = <
322
+ description = <"A living organism or its venom or produce">
323
+ text = <"Animal">
324
+ >
325
+ ["at0013"] = <
326
+ description = <"A substance taken or applied for medicinal purposes">
327
+ text = <"Medication">
328
+ >
329
+ ["at0014"] = <
330
+ description = <"Non-medicinal chemicals or substances">
331
+ text = <"Other chemical or substance">
332
+ >
333
+ ["at0015"] = <
334
+ description = <"The type of reaction experience by the person as determined by the clinician">
335
+ text = <"Reaction category">
336
+ >
337
+ ["at0016"] = <
338
+ description = <"Leads to unpleasant symptoms which are sufficient to avoid use in the future">
339
+ text = <"Intolerance">
340
+ >
341
+ ["at0017"] = <
342
+ description = <"Leads to morbidity which is potentially threatening to the wellbeing of the person">
343
+ text = <"Sensitivity">
344
+ >
345
+ ["at0018"] = <
346
+ description = <"Leads to an IgE mediated reaction">
347
+ text = <"Allergy">
348
+ >
349
+ ["at0019"] = <
350
+ description = <"Details of the reaction experienced by the person">
351
+ text = <"Exposure and reaction detail">
352
+ >
353
+ ["at0020"] = <
354
+ description = <"The date (+/- time) when the person became exposed to the agent">
355
+ text = <"Date of exposure">
356
+ >
357
+ ["at0021"] = <
358
+ description = <"The duration of the exposure to the agent">
359
+ text = <"Duration of the exposure">
360
+ >
361
+ ["at0022"] = <
362
+ description = <"A description of the reaction to this agent as experienced by the person">
363
+ text = <"Reaction description">
364
+ >
365
+ ["at0023"] = <
366
+ description = <"The category of the reaction for future reference">
367
+ text = <"Reaction severity">
368
+ >
369
+ ["at0024"] = <
370
+ description = <"A reaction which causes little distress and no loss of work/school">
371
+ text = <"Mild">
372
+ >
373
+ ["at0025"] = <
374
+ description = <"A reaction which causes morbidity and/or loss of function">
375
+ text = <"Disabling">
376
+ >
377
+ ["at0026"] = <
378
+ description = <"A reaction which was or could be lifethreatening">
379
+ text = <"Life threatening">
380
+ >
381
+ ["at0027"] = <
382
+ description = <"The date the reaction began">
383
+ text = <"Date of onset of reaction">
384
+ >
385
+ ["at0028"] = <
386
+ description = <"The duration of the reaction">
387
+ text = <"Duration of the reaction">
388
+ >
389
+ ["at0030"] = <
390
+ description = <"Person has been exposed with no reaction">
391
+ text = <"No reaction">
392
+ >
393
+ ["at0031"] = <
394
+ description = <"A non-medicinal ingredient of medication such as colouring, preservative, etc (subtype of other chemical)">
395
+ text = <"Non-active ingredient of medication">
396
+ >
397
+ ["at0032"] = <
398
+ description = <"The specific substance that caused the reaction if different from the agent (e.g. brands or members of a class)">
399
+ text = <"Specific substance">
400
+ >
401
+ ["at0033"] = <
402
+ description = <"A dye or media used in diagnostic imaging (subtype of other chemical)">
403
+ text = <"Imaging dye or media">
404
+ >
405
+ ["at0034"] = <
406
+ description = <"An agent present in the environment">
407
+ text = <"Environmental">
408
+ >
409
+ >
410
+ >
411
+ >
@@ -0,0 +1,88 @@
1
+ archetype (adl_version=1.4)
2
+ openEHR-EHR-INSTRUCTION.medication.v1
3
+
4
+ concept
5
+ [at0000] -- Medication order
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ translations = <
9
+ ["de"] = <
10
+ language = <[ISO_639-1::de]>
11
+ author = <
12
+ ["name"] = <"Jasmin Buck, Sebastian Garde">
13
+ ["organisation"] = <"University of Heidelberg, Central Queensland University">
14
+ >
15
+ >
16
+ >
17
+ description
18
+ original_author = <
19
+ ["name"] = <"Sam Heard">
20
+ ["organisation"] = <"Ocean Informatics">
21
+ ["date"] = <"21/04/2006">
22
+ ["email"] = <"sam.heard@oceaninformatics.biz">
23
+ >
24
+ details = <
25
+ ["de"] = <
26
+ language = <[ISO_639-1::de]>
27
+ purpose = <"Zur Dokumentation einer Medikationsverordnung, kann mehr als eine Aktivit�t enthalten, aber immer mit der selben Struktur">
28
+ use = <"Zur Dokumentation von Anweisungen bez�glich eines Medikaments">
29
+ keywords = <"Verschreibung", "Medikationsverordnung", "Verordnung">
30
+ misuse = <"Nicht zur Dokumentation der Verabreichung, der Gabe usw. benutzen. F�r diese Dokumentation openEHR-EHR-ACTION.medication benutzen.">
31
+ >
32
+ ["en"] = <
33
+ language = <[ISO_639-1::en]>
34
+ purpose = <"For recording a medication order, which may involve more than one activity, but all have the same structure.">
35
+ use = <"For recording an instruction about medication.">
36
+ keywords = <"prescribe", "medication order", "order">
37
+ misuse = <"Do not use for recording administration, dispensing etc. Use openEHR-EHR-ACTION.medication for these recordings.">
38
+ >
39
+ >
40
+ lifecycle_state = <"AuthorDraft">
41
+ other_contributors = <"NEHTA (Australia) data groups", ...>
42
+
43
+ definition
44
+ INSTRUCTION[at0000] matches { -- Medication order
45
+ activities cardinality matches {0..*; unordered} matches {
46
+ ACTIVITY[at0001] occurrences matches {0..*} matches { -- Medication activity
47
+ action_archetype_id matches {/medication\.v1/}
48
+ description matches {
49
+ allow_archetype ITEM_TREE occurrences matches {0..1} matches {
50
+ include
51
+ archetype_id/value matches {/medication\.v1/}
52
+ archetype_id/value matches {/medication-formulation\.v1/}
53
+ archetype_id/value matches {/medication-vaccine\.v1/}
54
+ exclude
55
+ archetype_id/value matches {/.*/}
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ ontology
63
+ term_definitions = <
64
+ ["de"] = <
65
+ items = <
66
+ ["at0000"] = <
67
+ description = <"Eine von einem Klinikarzt verfasste Verordnung oder Anweisung, die beschreibt welches Medikament wann, f�r wie lange usw. eingenommen werden soll">
68
+ text = <"Medikationsverordnung">
69
+ >
70
+ ["at0001"] = <
71
+ description = <"Informationen �ber die auszuf�hrende Medikationshandlung">
72
+ text = <"Medikationshandlung">
73
+ >
74
+ >
75
+ >
76
+ ["en"] = <
77
+ items = <
78
+ ["at0000"] = <
79
+ description = <"An order or instruction created by a clinician which specifies which medication to take, when, for how long etc.">
80
+ text = <"Medication order">
81
+ >
82
+ ["at0001"] = <
83
+ description = <"Information about the medication action(s) to be carried out">
84
+ text = <"Medication activity">
85
+ >
86
+ >
87
+ >
88
+ >
@@ -0,0 +1,84 @@
1
+ archetype (adl_version=1.4)
2
+ openEHR-EHR-INSTRUCTION.referral.v1
3
+
4
+ concept
5
+ [at0000] -- Referral to second provider
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ translations = <
9
+ ["de"] = <
10
+ language = <[ISO_639-1::de]>
11
+ author = <
12
+ ["name"] = <"Jasmin Buck, Sebastian Garde">
13
+ ["organisation"] = <"University of Heidelberg, Central Queensland University">
14
+ >
15
+ >
16
+ >
17
+ description
18
+ original_author = <
19
+ ["name"] = <"Sam Heard">
20
+ ["email"] = <"sam.heard@oceaninformatics.biz">
21
+ >
22
+ details = <
23
+ ["de"] = <
24
+ language = <[ISO_639-1::de]>
25
+ purpose = <"Zur Dokumentation einer Bitte nach Behandlung (�berweisung) durch einen zweiten Gesundheitsdienstleister.">
26
+ use = <"">
27
+ keywords = <"�berweisung", "Anfrage", "Anordnung">
28
+ misuse = <"">
29
+ >
30
+ ["en"] = <
31
+ language = <[ISO_639-1::en]>
32
+ purpose = <"For recording a request for care (referral to) a second health provider">
33
+ use = <"">
34
+ keywords = <"refer", "request", "order">
35
+ misuse = <"">
36
+ >
37
+ >
38
+ lifecycle_state = <"AuthorDraft">
39
+ other_contributors = <>
40
+
41
+ definition
42
+ INSTRUCTION[at0000] matches { -- Referral to second provider
43
+ activities cardinality matches {0..*; unordered} matches {
44
+ ACTIVITY[at0001] occurrences matches {0..1} matches { -- Refer
45
+ action_archetype_id matches {/referral\.v1/}
46
+ description matches {
47
+ allow_archetype ITEM_TREE occurrences matches {0..1} matches {
48
+ include
49
+ archetype_id/value matches {/referral\.v1/}
50
+ exclude
51
+ archetype_id/value matches {/.*/}
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ ontology
59
+ term_definitions = <
60
+ ["de"] = <
61
+ items = <
62
+ ["at0000"] = <
63
+ description = <"Eine Bitte nach Gesundheitsdienstleistung von einem Anbieter zu einem zweiten.">
64
+ text = <"�berweisung zu einem zweiten Gesundheitsdienstleister">
65
+ >
66
+ ["at0001"] = <
67
+ description = <"Die Handlung der �berweisung zu einem zweiten Gesundheitsdienstleister">
68
+ text = <"�berweisung">
69
+ >
70
+ >
71
+ >
72
+ ["en"] = <
73
+ items = <
74
+ ["at0000"] = <
75
+ description = <"A request for health care from one provider to a second provider">
76
+ text = <"Referral to second provider">
77
+ >
78
+ ["at0001"] = <
79
+ description = <"The activity of referring to a second health provider">
80
+ text = <"Refer">
81
+ >
82
+ >
83
+ >
84
+ >