openehr 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,440 @@
1
+ archetype (adl_version=1.4)
2
+ openEHR-EHR-OBSERVATION.uterine_contractions.v1
3
+
4
+ concept
5
+ [at0000] -- Uterine contractions
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ translations = <
9
+ ["ar-sy"] = <
10
+ language = <[ISO_639-1::ar-sy]>
11
+ author = <
12
+ ["name"] = <"Mona Saleh">
13
+ ["email"] = <"monasaleh01@live.com">
14
+ >
15
+ >
16
+ >
17
+ description
18
+ original_author = <
19
+ ["name"] = <"unknown">
20
+ >
21
+ details = <
22
+ ["en"] = <
23
+ language = <[ISO_639-1::en]>
24
+ purpose = <"Documenting details about uterine contractions.">
25
+ use = <"">
26
+ misuse = <"">
27
+ copyright = <"© openEHR Foundation">
28
+ >
29
+ ["ar-sy"] = <
30
+ language = <[ISO_639-1::ar-sy]>
31
+ purpose = <"توثيق تفاصيل التقلصات الرحمية">
32
+ use = <"">
33
+ misuse = <"">
34
+ copyright = <"© openEHR Foundation">
35
+ >
36
+ >
37
+ lifecycle_state = <"AuthorDraft">
38
+ other_contributors = <>
39
+ other_details = <
40
+ ["references"] = <"">
41
+ >
42
+
43
+ definition
44
+ OBSERVATION[at0000] matches { -- Uterine contractions
45
+ data matches {
46
+ HISTORY[at0001] matches { -- Event Series
47
+ events cardinality matches {1..*; unordered} matches {
48
+ EVENT[at0002] occurrences matches {0..1} matches { -- Any event
49
+ data matches {
50
+ ITEM_TREE[at0003] matches { -- Tree
51
+ items cardinality matches {0..*; unordered} matches {
52
+ ELEMENT[at0004] occurrences matches {0..1} matches { -- Strength
53
+ value matches {
54
+ 0|[local::at0005], -- Not noticable to mother
55
+ 1|[local::at0006], -- Very mild
56
+ 2|[local::at0007], -- Mild
57
+ 3|[local::at0008], -- Moderate
58
+ 4|[local::at0009], -- Strong
59
+ 5|[local::at0010] -- Very strong
60
+ }
61
+ }
62
+ ELEMENT[at0016] occurrences matches {0..1} matches { -- Pattern
63
+ value matches {
64
+ DV_CODED_TEXT matches {
65
+ defining_code matches {
66
+ [local::
67
+ at0017, -- Regular
68
+ at0018, -- Irregular
69
+ at0019, -- Continuous
70
+ at0036] -- Diminishing
71
+ }
72
+ }
73
+ }
74
+ }
75
+ ELEMENT[at0011] occurrences matches {0..1} matches { -- Duration
76
+ value matches {
77
+ DV_DURATION matches {
78
+ value matches {PTMS}
79
+ }
80
+ }
81
+ }
82
+ ELEMENT[at0037] occurrences matches {0..1} matches { -- Duration comment
83
+ value matches {
84
+ DV_TEXT matches {*}
85
+ }
86
+ }
87
+ CLUSTER[at0012] occurrences matches {0..1} matches { -- Frequency
88
+ items cardinality matches {1..*; unordered} matches {
89
+ ELEMENT[at0013] occurrences matches {0..1} matches { -- Begin every...
90
+ value matches {
91
+ DV_DURATION matches {
92
+ value matches {PTMS}
93
+ }
94
+ }
95
+ }
96
+ ELEMENT[at0014] occurrences matches {0..1} matches { -- Frequency per 10 minutes
97
+ value matches {
98
+ C_DV_QUANTITY <
99
+ property = <[openehr::382]>
100
+ list = <
101
+ ["1"] = <
102
+ units = <"/min">
103
+ >
104
+ >
105
+ >
106
+ }
107
+ }
108
+ ELEMENT[at0035] occurrences matches {0..1} matches { -- Frequency per hour
109
+ value matches {
110
+ C_DV_QUANTITY <
111
+ property = <[openehr::382]>
112
+ list = <
113
+ ["1"] = <
114
+ units = <"/h">
115
+ >
116
+ >
117
+ >
118
+ }
119
+ }
120
+ }
121
+ }
122
+ ELEMENT[at0024] occurrences matches {0..1} matches { -- Effectiveness
123
+ value matches {
124
+ DV_CODED_TEXT matches {
125
+ defining_code matches {
126
+ [local::
127
+ at0023, -- Not effective
128
+ at0025, -- Effective
129
+ at0026] -- Expulsive
130
+ }
131
+ }
132
+ }
133
+ }
134
+ ELEMENT[at0015] occurrences matches {0..1} matches { -- Intra-uterine pressure
135
+ value matches {
136
+ C_DV_QUANTITY <
137
+ property = <[openehr::125]>
138
+ list = <
139
+ ["1"] = <
140
+ units = <"mm[Hg]">
141
+ >
142
+ >
143
+ >
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+ protocol matches {
154
+ ITEM_LIST[at0027] matches { -- List
155
+ items cardinality matches {0..*; unordered} matches {
156
+ ELEMENT[at0028] occurrences matches {0..1} matches { -- Method
157
+ value matches {
158
+ DV_CODED_TEXT matches {
159
+ defining_code matches {
160
+ [local::
161
+ at0029, -- Manual
162
+ at0030, -- Maternal report
163
+ at0031] -- Tocogram
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+
174
+ ontology
175
+ term_definitions = <
176
+ ["en"] = <
177
+ items = <
178
+ ["at0000"] = <
179
+ text = <"Uterine contractions">
180
+ description = <"The strength, duration and frequency of uterine contractions">
181
+ >
182
+ ["at0001"] = <
183
+ text = <"Event Series">
184
+ description = <"@ internal @">
185
+ >
186
+ ["at0002"] = <
187
+ text = <"Any event">
188
+ description = <"*">
189
+ >
190
+ ["at0003"] = <
191
+ text = <"Tree">
192
+ description = <"@ internal @">
193
+ >
194
+ ["at0004"] = <
195
+ text = <"Strength">
196
+ description = <"The strength of uterine contractions">
197
+ >
198
+ ["at0005"] = <
199
+ text = <"Not noticable to mother">
200
+ description = <"The contractions are not noticable">
201
+ >
202
+ ["at0006"] = <
203
+ text = <"Very mild">
204
+ description = <"Noticable but not effective">
205
+ >
206
+ ["at0007"] = <
207
+ text = <"Mild">
208
+ description = <"Causing some sensation in the back or lower pelvis">
209
+ >
210
+ ["at0008"] = <
211
+ text = <"Moderate">
212
+ description = <"Causing discomfort or strong pressure in the back or lower pelvis">
213
+ >
214
+ ["at0009"] = <
215
+ text = <"Strong">
216
+ description = <"Fully active uterus during labour">
217
+ >
218
+ ["at0010"] = <
219
+ text = <"Very strong">
220
+ description = <"Possibly excessively strong contractions">
221
+ >
222
+ ["at0011"] = <
223
+ text = <"Duration">
224
+ description = <"The duration of the contractions">
225
+ >
226
+ ["at0012"] = <
227
+ text = <"Frequency">
228
+ description = <"A group of frequency statements">
229
+ >
230
+ ["at0013"] = <
231
+ text = <"Begin every...">
232
+ description = <"The time from the begining of one contraction to the beginning of the next">
233
+ >
234
+ ["at0014"] = <
235
+ text = <"Frequency per 10 minutes">
236
+ description = <"*">
237
+ >
238
+ ["at0015"] = <
239
+ text = <"Intra-uterine pressure">
240
+ description = <"The peak intra-uterine pressure during the contraction.">
241
+ >
242
+ ["at0016"] = <
243
+ text = <"Pattern">
244
+ description = <"The rhythm of the contractions">
245
+ >
246
+ ["at0017"] = <
247
+ text = <"Regular">
248
+ description = <"The contractions are regular or equally spaced">
249
+ >
250
+ ["at0018"] = <
251
+ text = <"Irregular">
252
+ description = <"The contractions are irregular or at different intervals">
253
+ >
254
+ ["at0019"] = <
255
+ text = <"Continuous">
256
+ description = <"The uterus is not relaxing between contractions">
257
+ >
258
+ ["at0023"] = <
259
+ text = <"Not effective">
260
+ description = <"Contractions are not effective">
261
+ >
262
+ ["at0024"] = <
263
+ text = <"Effectiveness">
264
+ description = <"The effectiveness of the contractions">
265
+ >
266
+ ["at0025"] = <
267
+ text = <"Effective">
268
+ description = <"Contractions are effective">
269
+ >
270
+ ["at0026"] = <
271
+ text = <"Expulsive">
272
+ description = <"Uterine contractions are expelling the baby">
273
+ >
274
+ ["at0027"] = <
275
+ text = <"List">
276
+ description = <"@ internal @">
277
+ >
278
+ ["at0028"] = <
279
+ text = <"Method">
280
+ description = <"The method used to determine the uterine contraction features">
281
+ >
282
+ ["at0029"] = <
283
+ text = <"Manual">
284
+ description = <"By palpation">
285
+ >
286
+ ["at0030"] = <
287
+ text = <"Maternal report">
288
+ description = <"By the subjects report">
289
+ >
290
+ ["at0031"] = <
291
+ text = <"Tocogram">
292
+ description = <"Measurement with a tocogram">
293
+ >
294
+ ["at0035"] = <
295
+ text = <"Frequency per hour">
296
+ description = <"*">
297
+ >
298
+ ["at0036"] = <
299
+ text = <"Diminishing">
300
+ description = <"*">
301
+ >
302
+ ["at0037"] = <
303
+ text = <"Duration comment">
304
+ description = <"A textual comment on the duration of contractions - e.g. '10 to 20 seconds'">
305
+ >
306
+ >
307
+ >
308
+ ["ar-sy"] = <
309
+ items = <
310
+ ["at0000"] = <
311
+ text = <"التقلصات الرَّحِمية">
312
+ description = <"قوة و مدة و تكرار التقلصات الرَّحِمية">
313
+ >
314
+ ["at0001"] = <
315
+ text = <"*Event Series(en)">
316
+ description = <"*@ internal @(en)">
317
+ >
318
+ ["at0002"] = <
319
+ text = <"إحدى الوقائع">
320
+ description = <"**(en)">
321
+ >
322
+ ["at0003"] = <
323
+ text = <"*Tree(en)">
324
+ description = <"*@ internal @(en)">
325
+ >
326
+ ["at0004"] = <
327
+ text = <"القوة">
328
+ description = <"قوة التقلصات الرَّحِمية">
329
+ >
330
+ ["at0005"] = <
331
+ text = <"غير ملحوظة لدى الأم">
332
+ description = <"التقلصات غير ملحوظة ">
333
+ >
334
+ ["at0006"] = <
335
+ text = <"معتدل جدا">
336
+ description = <"ملحوظة لكن غير فعالة">
337
+ >
338
+ ["at0007"] = <
339
+ text = <"معتدل">
340
+ description = <"تسبب بعض الحِسّ في الظهر أو أسفل الحوض">
341
+ >
342
+ ["at0008"] = <
343
+ text = <"متوسطة">
344
+ description = <"تسبب إزعاجا أو ضغطا قويا في الظهر أو أسفل الحوض">
345
+ >
346
+ ["at0009"] = <
347
+ text = <"قوي">
348
+ description = <"الرحم نشِط بشكل كلّي في أثناء الوضع/المخاض">
349
+ >
350
+ ["at0010"] = <
351
+ text = <"قوي جدا">
352
+ description = <"احتمال تقلصات قوية بشكل مفرط">
353
+ >
354
+ ["at0011"] = <
355
+ text = <"المدة">
356
+ description = <"مدة التقلصات">
357
+ >
358
+ ["at0012"] = <
359
+ text = <"التكرار">
360
+ description = <"مجموعة من البيانات عن التكرار">
361
+ >
362
+ ["at0013"] = <
363
+ text = <"يبدأ كل ...">
364
+ description = <"الفترة بين بداية تقلص إلى بداية التقلص الذي يليه">
365
+ >
366
+ ["at0014"] = <
367
+ text = <"التكرار لكل 10 دقائق">
368
+ description = <"**(en)">
369
+ >
370
+ ["at0015"] = <
371
+ text = <"الضغط داخل الرحم">
372
+ description = <"ذِروة قياس الضغط داخل الرحم في أثناء التقلصات">
373
+ >
374
+ ["at0016"] = <
375
+ text = <"الطراز">
376
+ description = <"نَظْم التقلصات">
377
+ >
378
+ ["at0017"] = <
379
+ text = <"منتظمة">
380
+ description = <"التقلصات منتظمة أو متباعدة بشكل متساوي">
381
+ >
382
+ ["at0018"] = <
383
+ text = <"غير منتظمة">
384
+ description = <"التقلصات غير منتظمة أو تحدث على فواصل / فترات مختلفة">
385
+ >
386
+ ["at0019"] = <
387
+ text = <"مستمر">
388
+ description = <"الرحم لا يرتخي / يسهل بين التقلصات">
389
+ >
390
+ ["at0023"] = <
391
+ text = <"غير فعالة">
392
+ description = <"التقلصات غير فعالة">
393
+ >
394
+ ["at0024"] = <
395
+ text = <"الفعالية">
396
+ description = <"فعالية التقلصات">
397
+ >
398
+ ["at0025"] = <
399
+ text = <"فعالة">
400
+ description = <"التقلصات فعالة">
401
+ >
402
+ ["at0026"] = <
403
+ text = <"طارد/ دافع">
404
+ description = <"التقلصات تطرد / تدفع الطفل / الرضيع">
405
+ >
406
+ ["at0027"] = <
407
+ text = <"*List(en)">
408
+ description = <"*@ internal @(en)">
409
+ >
410
+ ["at0028"] = <
411
+ text = <"الطريقة">
412
+ description = <"الطريقة المستخدمة لتحديد ملامح / قسمات التقلصات الرحمية">
413
+ >
414
+ ["at0029"] = <
415
+ text = <"يدوية">
416
+ description = <"عن طريق الجَسّ">
417
+ >
418
+ ["at0030"] = <
419
+ text = <"تقرير أمومي">
420
+ description = <"عن طريق التقرير الموضوعي">
421
+ >
422
+ ["at0031"] = <
423
+ text = <"مِخطاط قوة المخاض">
424
+ description = <"القياس عن طريق مِخطاط قوة المخاض">
425
+ >
426
+ ["at0035"] = <
427
+ text = <"التكرار لكل ساعة">
428
+ description = <"**(en)">
429
+ >
430
+ ["at0036"] = <
431
+ text = <"متناقص">
432
+ description = <"**(en)">
433
+ >
434
+ ["at0037"] = <
435
+ text = <"تعليق حول المدة">
436
+ description = <"تعليق تعليق نصي عن مدة التقلصات, مثلا 10 إلى 20 ثانية">
437
+ >
438
+ >
439
+ >
440
+ >
@@ -0,0 +1,41 @@
1
+ require File.dirname(__FILE__) + '/../../../spec_helper'
2
+ require File.dirname(__FILE__) + '/parser_spec_helper'
3
+
4
+ shared_examples 'empty use archetypes' do
5
+ describe 'empty use is assigned nil to be valid archtype' do
6
+ it 'is not nil' do
7
+ subject.should_not be_nil
8
+ end
9
+ end
10
+
11
+ describe 'description for use is nil' do
12
+ it 'use is nil' do
13
+ subject.description.details['en'].use.should be_nil
14
+ end
15
+ end
16
+ end
17
+
18
+ describe 'openEHR-EHR-OBSERVATION.operation_record.v1.adl' do
19
+ subject { adl14_archetype('openEHR-EHR-OBSERVATION.operation_record.v1.adl') }
20
+ it_should_behave_like 'empty use archetypes'
21
+ end
22
+
23
+ describe 'openEHR-EHR-CLUSTER.exam-abdomen.v1.adl' do
24
+ subject { adl14_archetype('openEHR-EHR-CLUSTER.exam-abdomen.v1.adl') }
25
+ it_should_behave_like 'empty use archetypes'
26
+ end
27
+
28
+ describe 'openEHR-EHR-OBSERVATION.uterine_contractions.v1.adl' do
29
+ subject { adl14_archetype('openEHR-EHR-OBSERVATION.uterine_contractions.v1.adl') }
30
+ it_should_behave_like 'empty use archetypes'
31
+ end
32
+
33
+ describe 'openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl' do
34
+ subject { adl14_archetype('openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl') }
35
+ it_should_behave_like 'empty use archetypes'
36
+ end
37
+
38
+ describe 'openEHR-EHR-CLUSTER.exam-uterus.v1.adl' do
39
+ subject { adl14_archetype('openEHR-EHR-CLUSTER.exam-uterus.v1.adl') }
40
+ it_should_behave_like 'empty use archetypes'
41
+ end