source: ccr/trunk/p/C0CCCR0.m@ 1614

Last change on this file since 1614 was 1586, checked in by Sam Habiel, 12 years ago

Changed license to AGPL. Some clean-up for XINDEX

  • Property svn:mergeinfo set to (toggle deleted branches)
    /ccr/branches/ohum/o-old/p/C0CCCR0.m1290
    /ccr/branches/ohum/p/C0CCCR0.m1291-1543
    /ccr/branches/ohum/p/p/C0CCCR0.m1287-1289
File size: 21.8 KB
Line 
1C0CCCR0 ; CCDCCR/GPL - CCR TEMPLATE AND ACCESS ROUTINES; 5/31/08
2 ;;1.2;CCD/CCR GENERATION UTILITIES;;Oct 30, 2012;Build 50
3 ;Copyright 2008,2009 George Lilly, University of Minnesota.
4 ;
5 ; This program is free software: you can redistribute it and/or modify
6 ; it under the terms of the GNU Affero General Public License as
7 ; published by the Free Software Foundation, either version 3 of the
8 ; License, or (at your option) any later version.
9 ;
10 ; This program is distributed in the hope that it will be useful,
11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ; GNU Affero General Public License for more details.
14 ;
15 ; You should have received a copy of the GNU Affero General Public License
16 ; along with this program. If not, see <http://www.gnu.org/licenses/>.
17 ;
18 W "This is a CCR TEMPLATE with processing routines",!
19 W !
20 Q
21 ;
22ZT(ZARY,BAT,LINE) ; private routine to add a line to the ZARY array
23 ; ZARY IS PASSED BY NAME
24 ; BAT is a string identifying the section
25 ; LINE is a test which will evaluate to true or false
26 ; I '$G(@ZARY) D ;
27 ; . S @ZARY@(0)=0 ; initially there are no elements
28 ; . W "GOT HERE LOADING "_LINE,!
29 N CNT ; count of array elements
30 S CNT=@ZARY@(0) ; contains array count
31 S CNT=CNT+1 ; increment count
32 S @ZARY@(CNT)=LINE ; put the line in the array
33 ; S @ZARY@(BAT,CNT)="" ; index the test by battery
34 S @ZARY@(0)=CNT ; update the array counter
35 Q
36 ;
37ZLOAD(ZARY,ROUTINE) ; load tests into ZARY which is passed by reference
38 ; ZARY IS PASSED BY NAME
39 ; ZARY = name of the root, closed array format (e.g., "^TMP($J)")
40 ; ROUTINE = NAME OF THE ROUTINE - PASSED BY VALUE
41 K @ZARY S @ZARY=""
42 S @ZARY@(0)=0 ; initialize array count
43 N LINE,LABEL,BODY
44 N INTEST S INTEST=0 ; switch for in the TEMPLATE section
45 N SECTION S SECTION="[anonymous]" ; NO section LABEL
46 ;
47 N NUM F NUM=1:1 S LINE=$T(+NUM^@ROUTINE) Q:LINE="" D
48 . I LINE?." "1";<TEMPLATE>".E S INTEST=1 ; entering section
49 . I LINE?." "1";</TEMPLATE>".E S INTEST=0 ; leaving section
50 . I INTEST D ; within the section
51 . . I LINE?." "1";><".E D ; sub-section name found
52 . . . S SECTION=$P($P(LINE,";><",2),">",1) ; pull out name
53 . . I LINE?." "1";;".E D ; line found
54 . . . D ZT(ZARY,SECTION,$P(LINE,";;",2)) ; put the line in the array
55 Q
56 ;
57LOAD(ARY) ; LOAD A CCR TEMPLATE INTO ARY PASSED BY NAME
58 D ZLOAD(ARY,"C0CCCR0")
59 ; ZWR @ARY
60 Q
61 ;
62 ;<TEMPLATE>
63 ;;<?xml version="1.0" encoding="UTF-8"?>
64 ;;<?xml-stylesheet type="text/xsl" href="ccr.xsl"?>
65 ;;<ContinuityOfCareRecord xmlns="urn:astm-org:CCR">
66 ;;<CCRDocumentObjectID>@@CCRDOCOBJECTID@@</CCRDocumentObjectID>
67 ;;<Language>
68 ;;<Text>English</Text>
69 ;;</Language>
70 ;;<Version>V1.0</Version>
71 ;;<DateTime>
72 ;;<ExactDateTime>@@DATETIME@@</ExactDateTime>
73 ;;</DateTime>
74 ;;<Patient>
75 ;;<ActorID>@@ACTORPATIENT@@</ActorID>
76 ;;</Patient>
77 ;;<From>
78 ;;<ActorLink>
79 ;;<ActorID>@@ACTORFROM@@</ActorID>
80 ;;</ActorLink>
81 ;;<ActorLink>
82 ;;<ActorID>@@ACTORFROM2@@</ActorID>
83 ;;</ActorLink>
84 ;;</From>
85 ;;<To>
86 ;;<ActorLink>
87 ;;<ActorID>@@ACTORTO@@</ActorID>
88 ;;<ActorRole>
89 ;;<Text>@@ACTORTOTEXT@@</Text>
90 ;;</ActorRole>
91 ;;</ActorLink>
92 ;;</To>
93 ;;<Purpose>
94 ;;<Description>
95 ;;<Text>@@PURPOSEDESCRIPTION@@</Text>
96 ;;</Description>
97 ;;</Purpose>
98 ;;<Body>
99 ;;<Problems>
100 ;;<Problem>
101 ;;<CCRDataObjectID>@@PROBLEMOBJECTID@@</CCRDataObjectID>
102 ;;<DateTime>
103 ;;<ExactDateTime>@@PROBLEMDATEMOD@@</ExactDateTime>
104 ;;</DateTime>
105 ;;<Type>
106 ;;<Text>Problem</Text>
107 ;;</Type>
108 ;;<Description>
109 ;;<Text>@@PROBLEMDESCRIPTION@@</Text>
110 ;;<Code>
111 ;;<Value>@@PROBLEMCODEVALUE@@</Value>
112 ;;<CodingSystem>ICD9CM</CodingSystem>
113 ;;<Version>@@PROBLEMCODINGVERSION@@</Version>
114 ;;</Code>
115 ;;</Description>
116 ;;<Status>
117 ;;<Text>@@PROBLEMSTATUS@@</Text>
118 ;;</Status>
119 ;;<Source>
120 ;;<Actor>
121 ;;<ActorID>@@PROBLEMSOURCEACTORID@@</ActorID>
122 ;;</Actor>
123 ;;</Source>
124 ;;</Problem>
125 ;;</Problems>
126 ;;<Immunizations>
127 ;;<Immunization>
128 ;;<CCRDataObjectID>@@IMMUNEOBJECTID@@</CCRDataObjectID>
129 ;;<DateTime>
130 ;;<Type>
131 ;;<Text>@@IMMUNEDATETIMETYPETEXT@@</Text>
132 ;;</Type>
133 ;;<ExactDateTime>@@IMMUNEDATETIME@@</ExactDateTime>
134 ;;</DateTime>
135 ;;<Source>
136 ;;<Actor>
137 ;;<ActorID>@@IMMUNESOURCEACTORID@@</ActorID>
138 ;;</Actor>
139 ;;</Source>
140 ;;<Product>
141 ;;<ProductName>
142 ;;<Text>@@IMMUNEPRODUCTNAMETEXT@@</Text>
143 ;;<Code>
144 ;;<Value>@@IMMUNEPRODUCTCODE@@</Value>
145 ;;<CodingSystem>@@IMMUNEPRODUCTCODESYSTEM@@</CodingSystem>
146 ;;</Code>
147 ;;</ProductName>
148 ;;</Product>
149 ;;</Immunization>
150 ;;</Immunizations>
151 ;;<FamilyHistory>
152 ;;<FamilyProblemHistory>
153 ;;<CCRDataObjectID>@@FAMILYHISTORYOBJECTID@@</CCRDataObjectID>
154 ;;<Source>
155 ;;<Actor>
156 ;;<ActorID>@@FAMILYHISTORYACTORID@@</ActorID>
157 ;;</Actor>
158 ;;</Source>
159 ;;<FamilyMember>
160 ;;<ActorID>@@FAMILYMEMBERACTORID@@</ActorID>
161 ;;<ActorRole>
162 ;;<Text>@@FAMILYMEMBERACTORROLETEXT@@</Text>
163 ;;</ActorRole>
164 ;;<Source>
165 ;;<Actor>
166 ;;<ActorID>@@FAMILYMEMBERSOURCACTORID@@</ActorID>
167 ;;</Actor>
168 ;;</Source>
169 ;;</FamilyMember>
170 ;;<Problem>
171 ;;<Type>
172 ;;<Text>Problem</Text>
173 ;;</Type>
174 ;;<Description>
175 ;;<Text>@@FAMILYMEMBERPROBLEMDESCRIPTION@@</Text>
176 ;;<Code>
177 ;;<Value>@@FAMILYMEMBERPROBLEMCODE@@</Value>
178 ;;<CodingSystem>@@FAMILYMEMBERCODESYSTEM@@</CodingSystem>
179 ;;<Version>@@FAMILYMEMBERCODEVERSION@@</Version>
180 ;;</Code>
181 ;;</Description>
182 ;;<Source>
183 ;;<Actor>
184 ;;<ActorID>@@FAMILYMEMBERPROBLEMSOURCEID@@</ActorID>
185 ;;</Actor>
186 ;;</Source>
187 ;;</Problem>
188 ;;</FamilyProblemHistory>
189 ;;</FamilyHistory>
190 ;;<SocialHistory>
191 ;;<SocialHistoryElement>
192 ;;<CCRDataObjectID>@@SOCIALHISTORYOBJECTID@@</CCRDataObjectID>
193 ;;<Type>
194 ;;<Text>@@SOCIALHISTORYTYPETEXT@@</Text>
195 ;;</Type>
196 ;;<Description>
197 ;;<Text>@@SOCIALHISTORYDESCRIPTIONTEXT@@</Text>
198 ;;</Description>
199 ;;<Source>
200 ;;<Actor>
201 ;;<ActorID>@@SOCIALHISTORYSOURCACTORID@@</ActorID>
202 ;;</Actor>
203 ;;</Source>
204 ;;</SocialHistoryElement>
205 ;;<SocialHistoryElement>
206 ;;<CCRDataObjectID>BB0005</CCRDataObjectID>
207 ;;<Type>
208 ;;<Text>Ethnic Origin</Text>
209 ;;</Type>
210 ;;<Description>
211 ;;<Text>Not Hispanic or Latino</Text>
212 ;;</Description>
213 ;;<Source>
214 ;;<Actor>
215 ;;<ActorID>AA0001</ActorID>
216 ;;</Actor>
217 ;;</Source>
218 ;;</SocialHistoryElement>
219 ;;<SocialHistoryElement>
220 ;;<CCRDataObjectID>BB0006</CCRDataObjectID>
221 ;;<Type>
222 ;;<Text>Race</Text>
223 ;;</Type>
224 ;;<Description>
225 ;;<Text>White</Text>
226 ;;</Description>
227 ;;<Source>
228 ;;<Actor>
229 ;;<ActorID>AA0001</ActorID>
230 ;;</Actor>
231 ;;</Source>
232 ;;</SocialHistoryElement>
233 ;;<SocialHistoryElement>
234 ;;<CCRDataObjectID>BB0007</CCRDataObjectID>
235 ;;<Type>
236 ;;<Text>Occupation</Text>
237 ;;</Type>
238 ;;<Description>
239 ;;<Text>Physician</Text>
240 ;;</Description>
241 ;;<Source>
242 ;;<Actor>
243 ;;<ActorID>AA0001</ActorID>
244 ;;</Actor>
245 ;;</Source>
246 ;;</SocialHistoryElement>
247 ;;</SocialHistory>
248 ;;<Alerts>
249 ;;<Alert>
250 ;;<CCRDataObjectID>@@ALERTOBJECTID@@</CCRDataObjectID>
251 ;;<DateTime>
252 ;;<ExactDateTime>@@ALERTDATETIME@@</ExactDateTime>
253 ;;</DateTime>
254 ;;<Type>
255 ;;<Text>@@ALERTTYPE@@</Text>
256 ;;</Type>
257 ;;<Status>
258 ;;<Text>@@ALERTSTATUSTEXT@@</Text>
259 ;;</Status>
260 ;;<Description>
261 ;;<Text>@@ALERTDESCRIPTIONTEXT@@</Text>
262 ;;<Code>
263 ;;<Value>@@ALERTCODEVALUE@@</Value>
264 ;;<CodingSystem>@@ALERTCODESYSTEM@@</CodingSystem>
265 ;;</Code>
266 ;;</Description>
267 ;;<Source>
268 ;;<Actor>
269 ;;<ActorID>@@ALERTSOURCEID@@</ActorID>
270 ;;</Actor>
271 ;;</Source>
272 ;;<Agent>
273 ;;<Products>
274 ;;<Product>
275 ;;<CCRDataObjectID>@@ALERTAGENTPRODUCTOBJECTID@@</CCRDataObjectID>
276 ;;<Source>
277 ;;<Actor>
278 ;;<ActorID>@@ALERTSOURCEID@@</ActorID>
279 ;;</Actor>
280 ;;</Source>
281 ;;<Product>
282 ;;<ProductName>
283 ;;<Text>@@ALERTAGENTPRODUCTNAMETEXT@@</Text>
284 ;;<Code>
285 ;;<Value>@@ALERTAGENTPRODUCTCODEVALUE@@</Value>
286 ;;<CodingSystem>@@ALERTAGENTPRODUCTCODESYSTEM@@</CodingSystem>
287 ;;</Code>
288 ;;</ProductName>
289 ;;</Product>
290 ;;</Product>
291 ;;</Products>
292 ;;</Agent>
293 ;;<Reaction>
294 ;;<Description>
295 ;;<Text>@@ALERTREACTIOINDESCRIPTIONTEXT@@</Text>
296 ;;<Code>
297 ;;<Value>@@ALERTREACTIONCODEVALUE@@</Value>
298 ;;<CodingSystem>@@ALERTREACTIONCODESYSTEM@@</CodingSystem>
299 ;;</Code>
300 ;;</Description>
301 ;;</Reaction>
302 ;;</Alert>
303 ;;</Alerts>
304 ;;<Medications>
305 ;;<Medication>
306 ;;<CCRDataObjectID>@@MEDOBJECTID@@</CCRDataObjectID>
307 ;;<DateTime>
308 ;;<Type>
309 ;;<Text>@@MEDISSUEDATETXT@@</Text>
310 ;;</Type>
311 ;;<ExactDateTime>@@MEDISSUEDATE@@</ExactDateTime>
312 ;;</DateTime>
313 ;;<DateTime>
314 ;;<Type>
315 ;;<Text>@@MEDLASTFILLDATETXT@@</Text>
316 ;;</Type>
317 ;;<ExactDateTime>@@MEDLASTFILLDATE@@</ExactDateTime>
318 ;;</DateTime>
319 ;;<IDs>
320 ;;<Type>
321 ;;<Text>@@MEDRXNOTXT@@</Text>
322 ;;</Type>
323 ;;<ID>@@MEDRXNO@@</ID>
324 ;;</IDs>
325 ;;<Type>
326 ;;<Text>@@MEDTYPETEXT@@</Text>
327 ;;</Type>
328 ;;<Description>
329 ;;<Text>@@MEDDETAILUNADORNED@@</Text>
330 ;;</Description>
331 ;;<Status>
332 ;;<Text>@@MEDSTATUSTEXT@@</Text>
333 ;;</Status>
334 ;;<Source>
335 ;;<Actor>
336 ;;<ActorID>@@MEDSOURCEACTORID@@</ActorID>
337 ;;</Actor>
338 ;;</Source>
339 ;;<Product>
340 ;;<ProductName>
341 ;;<Text>@@MEDPRODUCTNAMETEXT@@</Text>
342 ;;<Code>
343 ;;<Value>@@MEDPRODUCTNAMECODEVALUE@@</Value>
344 ;;<CodingSystem>@@MEDPRODUCTNAMECODINGINGSYSTEM@@</CodingSystem>
345 ;;<Version>@@MEDPRODUCTNAMECODEVERSION@@</Version>
346 ;;</Code>
347 ;;</ProductName>
348 ;;<BrandName>
349 ;;<Text>@@MEDBRANDNAMETEXT@@</Text>
350 ;;</BrandName>
351 ;;<Strength>
352 ;;<Value>@@MEDSTRENGTHVALUE@@</Value>
353 ;;<Units>
354 ;;<Unit>@@MEDSTRENGTHUNIT@@</Unit>
355 ;;</Units>
356 ;;</Strength>
357 ;;<Form>
358 ;;<Text>@@MEDFORMTEXT@@</Text>
359 ;;</Form>
360 ;;<Concentration>
361 ;;<Value>@@MEDCONCVALUE@@</Value>
362 ;;<Units>
363 ;;<Unit>@@MEDCONCUNIT@@</Unit>
364 ;;</Units>
365 ;;</Concentration>
366 ;;</Product>
367 ;;<Quantity>
368 ;;<Value>@@MEDQUANTITYVALUE@@</Value>
369 ;;<Units>
370 ;;<Unit>@@MEDQUANTITYUNIT@@</Unit>
371 ;;</Units>
372 ;;</Quantity>
373 ;;<Directions>
374 ;;<Direction>
375 ;;<Description>
376 ;;<Text>@@MEDDIRECTIONDESCRIPTIONTEXT@@</Text>
377 ;;</Description>
378 ;;<DoseIndicator>
379 ;;<Text>@@MEDDOSEINDICATOR@@</Text>
380 ;;</DoseIndicator>
381 ;;<DeliveryMethod>
382 ;;<Text>@@MEDDELIVERYMETHOD@@</Text>
383 ;;</DeliveryMethod>
384 ;;<Dose>
385 ;;<Value>@@MEDDOSEVALUE@@</Value>
386 ;;<Units>
387 ;;<Unit>@@MEDDOSEUNIT@@</Unit>
388 ;;</Units>
389 ;;<Rate>
390 ;;<Value>@@MEDRATEVALUE@@</Value>
391 ;;<Units>
392 ;;<Unit>@@MEDRATEUNIT@@</Unit>
393 ;;</Units>
394 ;;</Rate>
395 ;;</Dose>
396 ;;<Vehicle>
397 ;;<Text>@@MEDVEHICLETEXT@@</Text>
398 ;;</Vehicle>
399 ;;<Route>
400 ;;<Text>@@MEDDIRECTIONROUTETEXT@@</Text>
401 ;;</Route>
402 ;;<Frequency>
403 ;;<Value>@@MEDFREQUENCYVALUE@@</Value>
404 ;;</Frequency>
405 ;;<Interval>
406 ;;<Value>@@MEDINTERVALVALUE@@</Value>
407 ;;<Units>
408 ;;<Unit>@@MEDINTERVALUNIT@@</Unit>
409 ;;</Units>
410 ;;</Interval>
411 ;;<Duration>
412 ;;<Value>@@MEDDURATIONVALUE@@</Value>
413 ;;<Units>
414 ;;<Unit>@@MEDDURATIONUNIT@@</Unit>
415 ;;</Units>
416 ;;</Duration>
417 ;;<Indication>
418 ;;<PRNFlag>
419 ;;<Text>@@MEDPRNFLAG@@</Text>
420 ;;</PRNFlag>
421 ;;<Problem>
422 ;;<CCRDataObjectID>@@MEDPROBLEMOBJECTID@@</CCRDataObjectID>
423 ;;<Type>
424 ;;<Text>@@MEDPROBLEMTYPETXT@@</Text>
425 ;;</Type>
426 ;;<Description>
427 ;;<Text>@@MEDPROBLEMDESCRIPTION@@</Text>
428 ;;<Code>
429 ;;<Value>@@MEDPROBLEMCODEVALUE@@</Value>
430 ;;<CodingSystem>@@MEDPROBLEMCODINGSYSTEM@@</CodingSystem>
431 ;;<Version>@@MEDPROBLEMCODINGVERSION@@</Version>
432 ;;</Code>
433 ;;</Description>
434 ;;<Source>
435 ;;<Actor>
436 ;;<ActorID>@@MEDPROBLEMSOURCEACTORID@@</ActorID>
437 ;;</Actor>
438 ;;</Source>
439 ;;</Problem>
440 ;;</Indication>
441 ;;<StopIndicator>
442 ;;<Text>@@MEDSTOPINDICATOR@@</Text>
443 ;;</StopIndicator>
444 ;;<DirectionSequenceModifier>@@MEDDIRSEQ@@</DirectionSequenceModifier>
445 ;;<MultipleDirectionModifier>
446 ;;<Text>@@MEDMULDIRMOD@@</Text>
447 ;;</MultipleDirectionModifier>
448 ;;</Direction>
449 ;;</Directions>
450 ;;<PatientInstructions>
451 ;;<Instruction>
452 ;;<Text>@@MEDPTINSTRUCTIONS@@</Text>
453 ;;</Instruction>
454 ;;</PatientInstructions>
455 ;;<FullfillmentInstructions>
456 ;;<Text>@@MEDFULLFILLMENTINSTRUCTIONS@@</Text>
457 ;;</FullfillmentInstructions>
458 ;;<Refills>
459 ;;<Refill>
460 ;;<Number>@@MEDRFNO@@</Number>
461 ;;</Refill>
462 ;;</Refills>
463 ;;</Medication>
464 ;;</Medications>
465 ;;<VitalSigns>
466 ;;<Result>
467 ;;<CCRDataObjectID>@@VITALSIGNSDATAOBJECTID@@</CCRDataObjectID>
468 ;;<DateTime>
469 ;;<Type>
470 ;;<Text>@@VITALSIGNSDATETIMETYPETEXT@@</Text>
471 ;;</Type>
472 ;;<ExactDateTime>@@VITALSIGNSEXACTDATETIME@@</ExactDateTime>
473 ;;</DateTime>
474 ;;<Description>
475 ;;<Text>@@VITALSIGNSDESCRIPTIONTEXT@@</Text>
476 ;;</Description>
477 ;;<Source>
478 ;;<Actor>
479 ;;<ActorID>@@VITALSIGNSSOURCEACTORID@@</ActorID>
480 ;;</Actor>
481 ;;</Source>
482 ;;<Test>
483 ;;<CCRDataObjectID>@@VITALSIGNSTESTOBJECTID@@</CCRDataObjectID>
484 ;;<Type>
485 ;;<Text>@@VITALSIGNSTESTTYPETEXT@@</Text>
486 ;;</Type>
487 ;;<Description>
488 ;;<Text>@@VITALSIGNSDESCRIPTIONTEXT@@</Text>
489 ;;<Code>
490 ;;<Value>@@VITALSIGNSDESCCODEVALUE@@</Value>
491 ;;<CodingSystem>@@VITALSIGNSDESCCODINGSYSTEM@@</CodingSystem>
492 ;;<Version>@@VITALSIGNSCODEVERSION@@</Version>
493 ;;</Code>
494 ;;</Description>
495 ;;<Source>
496 ;;<Actor>
497 ;;<ActorID>@@VITALSIGNSTESTSOURCEACTORID@@</ActorID>
498 ;;</Actor>
499 ;;</Source>
500 ;;<TestResult>
501 ;;<Value>@@VITALSIGNSTESTRESULTVALUE@@</Value>
502 ;;<Units>
503 ;;<Unit>@@VITALSIGNSTESTRESULTUNIT@@</Unit>
504 ;;</Units>
505 ;;</TestResult>
506 ;;</Test>
507 ;;</Result>
508 ;;</VitalSigns>
509 ;;<Results>
510 ;;<Result>
511 ;;<CCRDataObjectID>@@RESULTOBJECTID@@</CCRDataObjectID>
512 ;;<DateTime>
513 ;;<Type>
514 ;;<Text>Assessment Time</Text>
515 ;;</Type>
516 ;;<ExactDateTime>@@RESULTASSESSMENTDATETIME@@</ExactDateTime>
517 ;;</DateTime>
518 ;;<Description>
519 ;;<Text>@@RESULTDESCRIPTIONTEXT@@</Text>
520 ;;<Code>
521 ;;<Value>@@RESULTCODE@@</Value>
522 ;;<CodingSystem>@@RESULTCODINGSYSTEM@@</CodingSystem>
523 ;;</Code>
524 ;;</Description>
525 ;;<Status>
526 ;;<Text>@@RESULTSTATUS@@</Text>
527 ;;</Status>
528 ;;<Source>
529 ;;<Actor>
530 ;;<ActorID>@@RESULTSOURCEACTORID@@</ActorID>
531 ;;</Actor>
532 ;;</Source>
533 ;;<Test>
534 ;;<CCRDataObjectID>@@RESULTTESTOBJECTID@@</CCRDataObjectID>
535 ;;<DateTime>
536 ;;<Type>
537 ;;<Text>Assessment Time</Text>
538 ;;</Type>
539 ;;<ExactDateTime>@@RESULTTESTDATETIME@@</ExactDateTime>
540 ;;</DateTime>
541 ;;<Description>
542 ;;<Text>@@RESULTTESTDESCRIPTIONTEXT@@</Text>
543 ;;<Code>
544 ;;<Value>@@RESULTTESTCODEVALUE@@</Value>
545 ;;<CodingSystem>@@RESULTTESTCODINGSYSTEM@@</CodingSystem>
546 ;;</Code>
547 ;;</Description>
548 ;;<Status>
549 ;;<Text>@@RESULTTESTSTATUSTEXT@@</Text>
550 ;;</Status>
551 ;;<Source>
552 ;;<Actor>
553 ;;<ActorID>@@RESULTTESTSOURCEACTORID@@</ActorID>
554 ;;</Actor>
555 ;;</Source>
556 ;;<TestResult>
557 ;;<Value>@@RESULTTESTVALUE@@</Value>
558 ;;<Units>
559 ;;<Unit>@@RESULTTESTUNITS@@</Unit>
560 ;;</Units>
561 ;;</TestResult>
562 ;;<NormalResult>
563 ;;<Normal>
564 ;;<Description>
565 ;;<Text>@@RESULTTESTNORMALDESCTEXT@@</Text>
566 ;;</Description>
567 ;;<Source>
568 ;;<Actor>
569 ;;<ActorID>@@RESULTTESTNORMALSOURCEACTORID@@</ActorID>
570 ;;</Actor>
571 ;;</Source>
572 ;;</Normal>
573 ;;</NormalResult>
574 ;;<Flag>
575 ;;<Text>@@RESULTTESTFLAG@@</Text>
576 ;;</Flag>
577 ;;</Test>
578 ;;</Result>
579 ;;</Results>
580 ;;<Procedures>
581 ;;<Procedure>
582 ;;<CCRDataObjectID>@@PROCOBJECTID@@</CCRDataObjectID>
583 ;;<DateTime>
584 ;;<Type>
585 ;;<Text>@@PROCDATETEXT@@</Text>
586 ;;</Type>
587 ;;<ExactDateTime>@@PROCDATETIME@@</ExactDateTime>
588 ;;</DateTime>
589 ;;<Description>
590 ;;<Text>@@PROCDESCTEXT@@</Text>
591 ;;<ObjectAttribute>
592 ;;<Attribute>@@PROCDESCOBJATTR@@</Attribute>
593 ;;<AttributeValue>
594 ;;<Value>@@PROCDESCOBJATTRVAL@@</Value>
595 ;;<Code>
596 ;;<Value>@@PROCDESCOBJATTRCODE@@</Value>
597 ;;<CodingSystem>@@PROCDESCOBJATTRCODESYS@@</CodingSystem>
598 ;;</Code>
599 ;;</AttributeValue>
600 ;;</ObjectAttribute>
601 ;;<Code>
602 ;;<Value>@@PROCCODE@@</Value>
603 ;;<CodingSystem>@@PROCCODESYS@@</CodingSystem>
604 ;;</Code>
605 ;;</Description>
606 ;;<Status>
607 ;;<Text>@@PROCSTATUS@@</Text>
608 ;;</Status>
609 ;;<Source>
610 ;;<Actor>
611 ;;<ActorID>@@PROCACTOROBJID@@</ActorID>
612 ;;</Actor>
613 ;;</Source>
614 ;;<InternalCCRLink>
615 ;;<LinkID>@@PROCLINKID@@</LinkID>
616 ;;<LinkRelationship>@@PROCLINKREL@@</LinkRelationship>
617 ;;</InternalCCRLink>
618 ;;</Procedure>
619 ;;</Procedures>
620 ;;<Encounters>
621 ;;<Encounter>
622 ;;<CCRDataObjectID>@@ENCOBJECTID@@</CCRDataObjectID>
623 ;;<DateTime>
624 ;;<ExactDateTime>@@ENCDATETIME@@</ExactDateTime>
625 ;;</DateTime>
626 ;;<Type>
627 ;;<Text>@@ENCTYPETXT@@</Text>
628 ;;<Code>
629 ;;<Value>@@ENCTYPECODE@@</Value>
630 ;;<CodingSystem>@@ENCTYPECODESYS@@</CodingSystem>
631 ;;</Code>
632 ;;</Type>
633 ;;<Description>
634 ;;<Text>@@ENCDESCTXT@@</Text>
635 ;;<Code>
636 ;;<Value>@@ENCDESCCODE@@</Value>
637 ;;<CodingSystem>@@ENCDESCCODESYS@@</CodingSystem>
638 ;;</Code>
639 ;;</Description>
640 ;;<Location>
641 ;;<Actor>
642 ;;<ActorID>@@ENCLOCACTORID@@</ActorID>
643 ;;</Actor>
644 ;;</Location>
645 ;;<Practioner>
646 ;;<Actor>
647 ;;<ActorID>@@ENCPRVACTORID@@</ActorID>
648 ;;</Actor>
649 ;;</Practioner>
650 ;;<Indication>
651 ;;<Text>@@ENCINDTXT@@</Text>
652 ;;<Code>
653 ;;<Value>@@ENCINDCODE@@</Value>
654 ;;<CodingSystem>@@ENCINDCODESYS@@</CodingSystem>
655 ;;</Code>
656 ;;</Indication>
657 ;;<Source>
658 ;;<Actor>
659 ;;<ActorID>@@ENCACTORID@@</ActorID>
660 ;;</Actor>
661 ;;</Source>
662 ;;<CommentID>@@ENCCOMMENTID@@</CommentID>
663 ;;</Encounter>
664 ;;</Encounters>
665 ;;<HealthCareProviders>
666 ;;<Provider>
667 ;;<ActorID>AA0005</ActorID>
668 ;;<ActorRole>
669 ;;<Text>Primary Provider</Text>
670 ;;</ActorRole>
671 ;;</Provider>
672 ;;</HealthCareProviders>
673 ;;</Body>
674 ;;<Actors>
675 ;;<ACTOR-PATIENT>
676 ;;<Actor>
677 ;;<ActorObjectID>@@ACTOROBJECTID@@</ActorObjectID>
678 ;;<Person>
679 ;;<Name>
680 ;;<CurrentName>
681 ;;<Given>@@ACTORGIVENNAME@@</Given>
682 ;;<Middle>@@ACTORMIDDLENAME@@</Middle>
683 ;;<Family>@@ACTORFAMILYNAME@@</Family>
684 ;;</CurrentName>
685 ;;</Name>
686 ;;<DateOfBirth>
687 ;;<ExactDateTime>@@ACTORDATEOFBIRTH@@</ExactDateTime>
688 ;;</DateOfBirth>
689 ;;<Gender>
690 ;;<Text>@@ACTORGENDER@@</Text>
691 ;;<Code>
692 ;;<Value>@@ACTORGENDERCODE@@</Value>
693 ;;<CodingSystem>HL7 AdministrativeGender</CodingSystem>
694 ;;</Code>
695 ;;</Gender>
696 ;;</Person>
697 ;;<IDs>
698 ;;<Type>
699 ;;<Text>@@ACTORSSNTEXT@@</Text>
700 ;;</Type>
701 ;;<ID>@@ACTORSSN@@</ID>
702 ;;<Source>
703 ;;<Actor>
704 ;;<ActorID>@@ACTORSSNSOURCEID@@</ActorID>
705 ;;</Actor>
706 ;;</Source>
707 ;;</IDs>
708 ;;<Address>
709 ;;<Type>
710 ;;<Text>@@ACTORADDRESSTYPE@@</Text>
711 ;;</Type>
712 ;;<Line1>@@ACTORADDRESSLINE1@@</Line1>
713 ;;<Line2>@@ACTORADDRESSLINE2@@</Line2>
714 ;;<City>@@ACTORADDRESSCITY@@</City>
715 ;;<State>@@ACTORADDRESSSTATE@@</State>
716 ;;<PostalCode>@@ACTORADDRESSZIPCODE@@</PostalCode>
717 ;;</Address>
718 ;;<Telephone>
719 ;;<Value>@@ACTORRESTEL@@</Value>
720 ;;<Type>
721 ;;<Text>@@ACTORRESTELTEXT@@</Text>
722 ;;</Type>
723 ;;</Telephone>
724 ;;<Telephone>
725 ;;<Value>@@ACTORWORKTEL@@</Value>
726 ;;<Type>
727 ;;<Text>@@ACTORWORKTELTEXT@@</Text>
728 ;;</Type>
729 ;;</Telephone>
730 ;;<Telephone>
731 ;;<Value>@@ACTORCELLTEL@@</Value>
732 ;;<Type>
733 ;;<Text>@@ACTORCELLTELTEXT@@</Text>
734 ;;</Type>
735 ;;</Telephone>
736 ;;<EMail>
737 ;;<Value>@@ACTOREMAIL@@</Value>
738 ;;</EMail>
739 ;;<Source>
740 ;;<Actor>
741 ;;<ActorID>@@ACTORADDRESSSOURCEID@@</ActorID>
742 ;;</Actor>
743 ;;</Source>
744 ;;</Actor>
745 ;;</ACTOR-PATIENT>
746 ;;<ACTOR-SYSTEM>
747 ;;<Actor>
748 ;;<ActorObjectID>@@ACTOROBJECTID@@</ActorObjectID>
749 ;;<InformationSystem>
750 ;;<Name>@@ACTORINFOSYSNAME@@</Name>
751 ;;<Version>@@ACTORINFOSYSVER@@</Version>
752 ;;</InformationSystem>
753 ;;<Source>
754 ;;<Actor>
755 ;;<ActorID>@@ACTORINFOSYSSOURCEID@@</ActorID>
756 ;;</Actor>
757 ;;</Source>
758 ;;</Actor>
759 ;;</ACTOR-SYSTEM>
760 ;;<ACTOR-NOK>
761 ;;<Actor>
762 ;;<ActorObjectID>AA0003</ActorObjectID>
763 ;;<Person>
764 ;;<Name>
765 ;;<DisplayName>@@ACTORDISPLAYNAME@@</DisplayName>
766 ;;</Name>
767 ;;</Person>
768 ;;<Relation>
769 ;;<Text>@@ACTORRELATION@@</Text>
770 ;;</Relation>
771 ;;<Source>
772 ;;<Actor>
773 ;;<ActorID>@@ACTORRELATIONSOURCEID@@</ActorID>
774 ;;</Actor>
775 ;;</Source>
776 ;;</Actor>
777 ;;</ACTOR-NOK>
778 ;;<ACTOR-PROVIDER>
779 ;;<Actor>
780 ;;<ActorObjectID>@@ACTOROBJECTID@@</ActorObjectID>
781 ;;<Person>
782 ;;<Name>
783 ;;<CurrentName>
784 ;;<Given>@@ACTORGIVENNAME@@</Given>
785 ;;<Middle>@@ACTORMIDDLENAME@@</Middle>
786 ;;<Family>@@ACTORFAMILYNAME@@</Family>
787 ;;<Title>@@ACTORTITLE@@</Title>
788 ;;</CurrentName>
789 ;;</Name>
790 ;;</Person>
791 ;;<Specialty>
792 ;;<Text>@@ACTORSPECIALITY@@</Text>
793 ;;</Specialty>
794 ;;<Address>
795 ;;<Type>
796 ;;<Text>@@ACTORADDRESSTYPE@@</Text>
797 ;;</Type>
798 ;;<Line1>@@ACTORADDRESSLINE1@@</Line1>
799 ;;<City>@@ACTORADDRESSCITY@@</City>
800 ;;<State>@@ACTORADDRESSSTATE@@</State>
801 ;;<PostalCode>@@ACTORPOSTALCODE@@</PostalCode>
802 ;;</Address>
803 ;;<Telephone>
804 ;;<Value>@@ACTORTELEPHONE@@</Value>
805 ;;<Type>
806 ;;<Text>@@ACTORTELEPHONETYPE@@</Text>
807 ;;</Type>
808 ;;</Telephone>
809 ;;<Email>
810 ;;<Value>@@ACTOREMAIL@@</Value>
811 ;;</Email>
812 ;;<Source>
813 ;;<Actor>
814 ;;<ActorID>@@ACTORSOURCEID@@</ActorID>
815 ;;</Actor>
816 ;;</Source>
817 ;;<InternalCCRLink>
818 ;;<LinkID>@@ACTORORGLINK@@</LinkID>
819 ;;<LinkRelationship>representedOrganization</LinkRelationship>
820 ;;</InternalCCRLink>
821 ;;</Actor>
822 ;;</ACTOR-PROVIDER>
823 ;;<ACTOR-ORG>
824 ;;<Actor>
825 ;;<ActorObjectID>@@ACTOROBJECTID@@</ActorObjectID>
826 ;;<Organization>
827 ;;<Name>@@ORGANIZATIONNAME@@</Name>
828 ;;</Organization>
829 ;;<Address>
830 ;;<Type>
831 ;;<Text>@@ACTORADDRESSTYPE@@</Text>
832 ;;</Type>
833 ;;<Line1>@@ACTORADDRESSLINE1@@</Line1>
834 ;;<City>@@ACTORADDRESSCITY@@</City>
835 ;;<State>@@ACTORADDRESSSTATE@@</State>
836 ;;<PostalCode>@@ACTORPOSTALCODE@@</PostalCode>
837 ;;</Address>
838 ;;<Telephone>
839 ;;<Value>@@ACTORTELEPHONE@@</Value>
840 ;;<Type>
841 ;;<Text>@@ACTORTELEPHONETYPE@@</Text>
842 ;;</Type>
843 ;;</Telephone>
844 ;;<Source>
845 ;;<Actor>
846 ;;<ActorID>@@ACTORSOURCEID@@</ActorID>
847 ;;</Actor>
848 ;;</Source>
849 ;;</Actor>
850 ;;</ACTOR-ORG>
851 ;;</Actors>
852 ;;<Signatures>
853 ;;<CCRSignature>
854 ;;<SignatureObjectID>S0001</SignatureObjectID>
855 ;;<ExactDateTime>2008-03-18T23:10:58Z</ExactDateTime>
856 ;;<Source>
857 ;;<ActorID>AA0001</ActorID>
858 ;;</Source>
859 ;;<Signature>
860 ;;<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
861 ;;<SignedInfo>
862 ;;<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
863 ;;<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
864 ;;<Reference URI="">
865 ;;<Transforms>
866 ;;<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
867 ;;</Transforms>
868 ;;<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
869 ;;<DigestValue>YFveLLyo+75P7rSciv0/m1O6Ot4=</DigestValue>
870 ;;</Reference>
871 ;;</SignedInfo>
872 ;;<SignatureValue>Bj6sACXl74hrlbUYnu8HqnRab5VGy69BOYjOH7dETxgppXMEd7AoVYaePZvgJft78JR4oQY76hbFyGcIslYauPpJxx2hCd5d56xFeaQg01R6AQOvGnhjlq63TbpFdUq0B4tYsmiibJPbQJhTQe+TcWTBvWaQt8Fkk5blO571YvI=</SignatureValue>
873 ;;<KeyInfo>
874 ;;<KeyValue>
875 ;;<RSAKeyValue>
876 ;;<Modulus>meH817QYol+/uUEg6j8Mg89s7GTlaN9B+/CGlzrtnQH+swMigZRnEPxHVO8PhEymP/W9nlhAjTScV/CUzA9yJ9WiaOn17c+KReKhfBqL24DX9BpbJ+kLYVz7mBO5Qydk5AzUT2hFwW93irD8iRKP+/t+2Mi2CjNfj8VTjJpHpm0=</Modulus>
877 ;;<Exponent>AQAB</Exponent>
878 ;;</RSAKeyValue>
879 ;;</KeyValue>
880 ;;</KeyInfo>
881 ;;</Signature>
882 ;;</Signature>
883 ;;</CCRSignature>
884 ;;</Signatures>
885 ;;<Comments>
886 ;;<Comment>
887 ;;<CommentObjectID>@@COMMENTOBJECTID@@</CommentObjectID>
888 ;;<DateTime>
889 ;;<ExactDateTime>@@CMTDATETIME@@</ExactDateTime>
890 ;;</DateTime>
891 ;;<Description>
892 ;;<Text>
893 ;;</Text>
894 ;;</Description>
895 ;;<Source>
896 ;;<Actor>
897 ;;<ActorID>@@ACTORSOURCEID@@</ActorID>
898 ;;</Actor>
899 ;;</Source>
900 ;;</Comment>
901 ;;</Comments>
902 ;;</ContinuityOfCareRecord>
903 ;</TEMPLATE>
Note: See TracBrowser for help on using the repository browser.