source: ccr/trunk/rxnorm/tags/2.2/RXNORM_FOR_VISTA_2P2.KID

Last change on this file was 1632, checked in by Sam Habiel, 10 years ago

Added version 2.2 for testing

File size: 99.4 KB
Line 
1KIDS Distribution saved on Nov 14, 2013@15:34:29
2RxNorm for VISTA v2.2 Final
3**KIDS**:RXNORM FOR VISTA 2.2^
4
5**INSTALL NAME**
6RXNORM FOR VISTA 2.2
7"BLD",9271,0)
8RXNORM FOR VISTA 2.2^RXNORM FOR VISTA^0^3131114^y
9"BLD",9271,1,0)
10^^34^34^3131114^^
11"BLD",9271,1,1,0)
12This build and install is (C) Sam Habiel 2013. Distributed
13"BLD",9271,1,2,0)
14by the VISTA Expertise Network.
15"BLD",9271,1,3,0)
16
17"BLD",9271,1,4,0)
18Questions and Support: sam.habiel@vistaexpertise.net
19"BLD",9271,1,5,0)
20
21"BLD",9271,1,6,0)
22See accompanying License Terms for the terms of using this software.
23"BLD",9271,1,7,0)
24
25"BLD",9271,1,8,0)
26RxNorm is a vocabulary set and tables maintained by the National Library
27"BLD",9271,1,9,0)
28of Medicine. From the Website
29"BLD",9271,1,10,0)
30(http://www.nlm.nih.gov/research/umls/rxnorm/index.html):
31"BLD",9271,1,11,0)
32
33"BLD",9271,1,12,0)
34<<<
35"BLD",9271,1,13,0)
36RxNorm provides normalized names for clinical drugs and links its names to
37"BLD",9271,1,14,0)
38many of the drug vocabularies commonly used in pharmacy management and
39"BLD",9271,1,15,0)
40drug interaction software, including those of First Databank, Micromedex,
41"BLD",9271,1,16,0)
42MediSpan, Gold Standard, and Multum. By providing links between these
43"BLD",9271,1,17,0)
44vocabularies, RxNorm can mediate messages between systems not using the
45"BLD",9271,1,18,0)
46same software and vocabulary.
47"BLD",9271,1,19,0)
48
49"BLD",9271,1,20,0)
50RxNorm now includes the National Drug File - Reference Terminology
51"BLD",9271,1,21,0)
52(NDF-RT) from the Veterans Health Administration. NDF-RT is a terminology
53"BLD",9271,1,22,0)
54used to code clinical drug properties, including mechanism of action,
55"BLD",9271,1,23,0)
56physiologic effect, and therapeutic category.
57"BLD",9271,1,24,0)
58>>>
59"BLD",9271,1,25,0)
60
61"BLD",9271,1,26,0)
62This build consists of the data dictionaries for 6 files and 3 routines,
63"BLD",9271,1,27,0)
64one of them being the loader routine for the data.
65"BLD",9271,1,28,0)
66
67"BLD",9271,1,29,0)
68This build REQUIRES Fileman 22.2 and REQUIRES global nodes up to 16,000.
69"BLD",9271,1,30,0)
70This means that on GT.M databases, the record length needs to be 16,000
71"BLD",9271,1,31,0)
72characters and Fileman needs to have ^DD("STRING_LIMIT")=16000 (needs to
73"BLD",9271,1,32,0)
74be manually set).
75"BLD",9271,1,33,0)
76
77"BLD",9271,1,34,0)
78If you install this on Fileman 22.0, some features may not work.
79"BLD",9271,4,0)
80^9.64PA^50.68^8
81"BLD",9271,4,50,0)
8250
83"BLD",9271,4,50,2,0)
84^9.641^50^1
85"BLD",9271,4,50,2,50,0)
86DRUG (File-top level)
87"BLD",9271,4,50,2,50,1,0)
88^9.6411^176.002^2
89"BLD",9271,4,50,2,50,1,176.001,0)
90RXNCUI
91"BLD",9271,4,50,2,50,1,176.002,0)
92RXN SCD NAME
93"BLD",9271,4,50,222)
94y^y^p^^^^n^^n
95"BLD",9271,4,50,224)
96
97"BLD",9271,4,50.68,0)
9850.68
99"BLD",9271,4,50.68,2,0)
100^9.641^50.68^1
101"BLD",9271,4,50.68,2,50.68,0)
102VA PRODUCT (File-top level)
103"BLD",9271,4,50.68,2,50.68,1,0)
104^9.6411^176.001^1
105"BLD",9271,4,50.68,2,50.68,1,176.001,0)
106COMPUTED GCNSEQNO
107"BLD",9271,4,50.68,222)
108y^y^p^^^^n^^n
109"BLD",9271,4,50.68,224)
110
111"BLD",9271,4,176.001,0)
112176.001
113"BLD",9271,4,176.001,222)
114y^y^f^^^^n
115"BLD",9271,4,176.002,0)
116176.002
117"BLD",9271,4,176.002,222)
118y^y^f^^^^n
119"BLD",9271,4,176.003,0)
120176.003
121"BLD",9271,4,176.003,222)
122y^y^f^^^^n
123"BLD",9271,4,176.004,0)
124176.004
125"BLD",9271,4,176.004,222)
126y^y^f^^^^n
127"BLD",9271,4,176.005,0)
128176.005
129"BLD",9271,4,176.005,222)
130y^y^f^^^^n
131"BLD",9271,4,176.006,0)
132176.006
133"BLD",9271,4,176.006,222)
134y^y^f^^^^n
135"BLD",9271,4,"APDD",50,50)
136
137"BLD",9271,4,"APDD",50,50,176.001)
138
139"BLD",9271,4,"APDD",50,50,176.002)
140
141"BLD",9271,4,"APDD",50.68,50.68)
142
143"BLD",9271,4,"APDD",50.68,50.68,176.001)
144
145"BLD",9271,4,"B",50,50)
146
147"BLD",9271,4,"B",50.68,50.68)
148
149"BLD",9271,4,"B",176.001,176.001)
150
151"BLD",9271,4,"B",176.002,176.002)
152
153"BLD",9271,4,"B",176.003,176.003)
154
155"BLD",9271,4,"B",176.004,176.004)
156
157"BLD",9271,4,"B",176.005,176.005)
158
159"BLD",9271,4,"B",176.006,176.006)
160
161"BLD",9271,6.3)
16210
163"BLD",9271,"ABPKG")
164n
165"BLD",9271,"KRN",0)
166^9.67PA^779.2^20
167"BLD",9271,"KRN",.4,0)
168.4
169"BLD",9271,"KRN",.401,0)
170.401
171"BLD",9271,"KRN",.402,0)
172.402
173"BLD",9271,"KRN",.403,0)
174.403
175"BLD",9271,"KRN",.5,0)
176.5
177"BLD",9271,"KRN",.84,0)
178.84
179"BLD",9271,"KRN",3.6,0)
1803.6
181"BLD",9271,"KRN",3.8,0)
1823.8
183"BLD",9271,"KRN",9.2,0)
1849.2
185"BLD",9271,"KRN",9.8,0)
1869.8
187"BLD",9271,"KRN",9.8,"NM",0)
188^9.68A^3^3
189"BLD",9271,"KRN",9.8,"NM",1,0)
190C0CRXNRD^^0^B42158088
191"BLD",9271,"KRN",9.8,"NM",2,0)
192C0CRXNLK^^0^B98280702
193"BLD",9271,"KRN",9.8,"NM",3,0)
194C0CRXNAD^^0^B18747982
195"BLD",9271,"KRN",9.8,"NM","B","C0CRXNAD",3)
196
197"BLD",9271,"KRN",9.8,"NM","B","C0CRXNLK",2)
198
199"BLD",9271,"KRN",9.8,"NM","B","C0CRXNRD",1)
200
201"BLD",9271,"KRN",19,0)
20219
203"BLD",9271,"KRN",19,"NM",0)
204^9.68A^^
205"BLD",9271,"KRN",19.1,0)
20619.1
207"BLD",9271,"KRN",101,0)
208101
209"BLD",9271,"KRN",409.61,0)
210409.61
211"BLD",9271,"KRN",771,0)
212771
213"BLD",9271,"KRN",779.2,0)
214779.2
215"BLD",9271,"KRN",870,0)
216870
217"BLD",9271,"KRN",8989.51,0)
2188989.51
219"BLD",9271,"KRN",8989.52,0)
2208989.52
221"BLD",9271,"KRN",8994,0)
2228994
223"BLD",9271,"KRN","B",.4,.4)
224
225"BLD",9271,"KRN","B",.401,.401)
226
227"BLD",9271,"KRN","B",.402,.402)
228
229"BLD",9271,"KRN","B",.403,.403)
230
231"BLD",9271,"KRN","B",.5,.5)
232
233"BLD",9271,"KRN","B",.84,.84)
234
235"BLD",9271,"KRN","B",3.6,3.6)
236
237"BLD",9271,"KRN","B",3.8,3.8)
238
239"BLD",9271,"KRN","B",9.2,9.2)
240
241"BLD",9271,"KRN","B",9.8,9.8)
242
243"BLD",9271,"KRN","B",19,19)
244
245"BLD",9271,"KRN","B",19.1,19.1)
246
247"BLD",9271,"KRN","B",101,101)
248
249"BLD",9271,"KRN","B",409.61,409.61)
250
251"BLD",9271,"KRN","B",771,771)
252
253"BLD",9271,"KRN","B",779.2,779.2)
254
255"BLD",9271,"KRN","B",870,870)
256
257"BLD",9271,"KRN","B",8989.51,8989.51)
258
259"BLD",9271,"KRN","B",8989.52,8989.52)
260
261"BLD",9271,"KRN","B",8994,8994)
262
263"BLD",9271,"QUES",0)
264^9.62^^
265"BLD",9271,"REQB",0)
266^9.611^^
267"FIA",50)
268DRUG
269"FIA",50,0)
270^PSDRUG(
271"FIA",50,0,0)
27250I
273"FIA",50,0,1)
274y^y^p^^^^n^^n
275"FIA",50,0,10)
276
277"FIA",50,0,11)
278
279"FIA",50,0,"RLRO")
280
281"FIA",50,0,"VR")
2822.2^RXNORM FOR VISTA
283"FIA",50,50)
2841
285"FIA",50,50,176.001)
286
287"FIA",50,50,176.002)
288
289"FIA",50.68)
290VA PRODUCT
291"FIA",50.68,0)
292^PSNDF(50.68,
293"FIA",50.68,0,0)
29450.68
295"FIA",50.68,0,1)
296y^y^p^^^^n^^n
297"FIA",50.68,0,10)
298
299"FIA",50.68,0,11)
300
301"FIA",50.68,0,"RLRO")
302
303"FIA",50.68,0,"VR")
3042.2^RXNORM FOR VISTA
305"FIA",50.68,50.68)
3061
307"FIA",50.68,50.68,176.001)
308
309"FIA",176.001)
310RXNORM CONCEPT NAMES AND SOURCES
311"FIA",176.001,0)
312^C0CRXN(176.001,
313"FIA",176.001,0,0)
314176.001I
315"FIA",176.001,0,1)
316y^y^f^^^^n
317"FIA",176.001,0,10)
318
319"FIA",176.001,0,11)
320
321"FIA",176.001,0,"RLRO")
322
323"FIA",176.001,0,"VR")
3242.2^RXNORM FOR VISTA
325"FIA",176.001,176.001)
3260
327"FIA",176.002)
328RXNORM SIMPLE CONCEPT AND ATOM ATTRIBUTES
329"FIA",176.002,0)
330^C0CRXN(176.002,
331"FIA",176.002,0,0)
332176.002I
333"FIA",176.002,0,1)
334y^y^f^^^^n
335"FIA",176.002,0,10)
336
337"FIA",176.002,0,11)
338
339"FIA",176.002,0,"RLRO")
340
341"FIA",176.002,0,"VR")
3422.2^RXNORM FOR VISTA
343"FIA",176.002,176.002)
3440
345"FIA",176.003)
346RXNORM SOURCE INFORMATION
347"FIA",176.003,0)
348^C0CRXN(176.003,
349"FIA",176.003,0,0)
350176.003I
351"FIA",176.003,0,1)
352y^y^f^^^^n
353"FIA",176.003,0,10)
354
355"FIA",176.003,0,11)
356
357"FIA",176.003,0,"RLRO")
358
359"FIA",176.003,0,"VR")
3602.2^RXNORM FOR VISTA
361"FIA",176.003,176.003)
3620
363"FIA",176.004)
364RXNORM SEMANTIC TYPES
365"FIA",176.004,0)
366^C0CRXN(176.004,
367"FIA",176.004,0,0)
368176.004I
369"FIA",176.004,0,1)
370y^y^f^^^^n
371"FIA",176.004,0,10)
372
373"FIA",176.004,0,11)
374
375"FIA",176.004,0,"RLRO")
376
377"FIA",176.004,0,"VR")
3782.2^RXNORM FOR VISTA
379"FIA",176.004,176.004)
3800
381"FIA",176.005)
382RXNORM RELATED CONCEPTS
383"FIA",176.005,0)
384^C0CRXN(176.005,
385"FIA",176.005,0,0)
386176.005
387"FIA",176.005,0,1)
388y^y^f^^^^n
389"FIA",176.005,0,10)
390
391"FIA",176.005,0,11)
392
393"FIA",176.005,0,"RLRO")
394
395"FIA",176.005,0,"VR")
3962.2^RXNORM FOR VISTA
397"FIA",176.005,176.005)
3980
399"FIA",176.006)
400RXNORM DOCUMENTATION FOR ABBREVIATED VALUES
401"FIA",176.006,0)
402^C0CRXN(176.006,
403"FIA",176.006,0,0)
404176.006I
405"FIA",176.006,0,1)
406y^y^f^^^^n
407"FIA",176.006,0,10)
408
409"FIA",176.006,0,11)
410
411"FIA",176.006,0,"RLRO")
412
413"FIA",176.006,0,"VR")
4142.2^RXNORM FOR VISTA
415"FIA",176.006,176.006)
4160
417"IX",176.001,176.001,"B",0)
418176.001^B^Regular B Index^R^^F^IR^I^176.001^^^^^LS
419"IX",176.001,176.001,"B",1)
420S ^C0CRXN(176.001,"B",X,DA)=""
421"IX",176.001,176.001,"B",2)
422K ^C0CRXN(176.001,"B",X,DA)
423"IX",176.001,176.001,"B",2.5)
424K ^C0CRXN(176.001,"B")
425"IX",176.001,176.001,"B",11.1,0)
426^.114IA^1^1
427"IX",176.001,176.001,"B",11.1,1,0)
4281^F^176.001^.01^^1^F
429"IX",176.001,176.001,"B",11.1,1,3)
430
431"IX",176.001,176.001,"CODE",0)
432176.001^CODE^Code Index^R^^F^IR^I^176.001^^^^^LS
433"IX",176.001,176.001,"CODE",1)
434S ^C0CRXN(176.001,"CODE",X,DA)=""
435"IX",176.001,176.001,"CODE",2)
436K ^C0CRXN(176.001,"CODE",X,DA)
437"IX",176.001,176.001,"CODE",2.5)
438K ^C0CRXN(176.001,"CODE")
439"IX",176.001,176.001,"CODE",11.1,0)
440^.114IA^1^1
441"IX",176.001,176.001,"CODE",11.1,1,0)
4421^F^176.001^.14^^1^F
443"IX",176.001,176.001,"CODE",11.1,1,3)
444
445"IX",176.001,176.001,"STC",0)
446176.001^STC^Source Term Type Code Index^MU^^R^IR^I^176.001^^^^^LS
447"IX",176.001,176.001,"STC",.1,0)
448^^11^11^3130304^
449"IX",176.001,176.001,"STC",.1,1,0)
450Use this index to do compound searches on RxNorm Concepts.
451"IX",176.001,176.001,"STC",.1,2,0)
452
453"IX",176.001,176.001,"STC",.1,3,0)
454Examples:
455"IX",176.001,176.001,"STC",.1,4,0)
456SAB="NDDF", TTY="CDC", CODE={GCN} will give you the entry a clinical drug
457"IX",176.001,176.001,"STC",.1,5,0)
458in First Database with GCN Code {GCN}.
459"IX",176.001,176.001,"STC",.1,6,0)
460
461"IX",176.001,176.001,"STC",.1,7,0)
462SAB="RXNORM", TTY="SCD", CODE={RXNORM} will give you the entry that is
463"IX",176.001,176.001,"STC",.1,8,0)
464the Semantic Clinical Drug for the RxNorm code.
465"IX",176.001,176.001,"STC",.1,9,0)
466
467"IX",176.001,176.001,"STC",.1,10,0)
468SAB="VANDF", TTY="CD", CODE={VUID} will give you a drug that has that
469"IX",176.001,176.001,"STC",.1,11,0)
470VUID.
471"IX",176.001,176.001,"STC",1)
472S ^C0CRXN(176.001,"STC",X(1),X(2),X(3),DA)=X(4)
473"IX",176.001,176.001,"STC",2)
474K ^C0CRXN(176.001,"STC",X(1),X(2),X(3),DA)
475"IX",176.001,176.001,"STC",2.5)
476K ^C0CRXN(176.001,"STC")
477"IX",176.001,176.001,"STC",11.1,0)
478^.114IA^4^4
479"IX",176.001,176.001,"STC",11.1,1,0)
4801^F^176.001^.12^^1^F
481"IX",176.001,176.001,"STC",11.1,1,3)
482
483"IX",176.001,176.001,"STC",11.1,2,0)
4842^F^176.001^.13^^2^F
485"IX",176.001,176.001,"STC",11.1,2,3)
486
487"IX",176.001,176.001,"STC",11.1,3,0)
4883^F^176.001^.14^^3^F
489"IX",176.001,176.001,"STC",11.1,3,3)
490
491"IX",176.001,176.001,"STC",11.1,4,0)
4924^F^176.001^.01^^^F
493"IX",176.001,176.001,"STC",11.1,4,3)
494
495"IX",176.001,176.001,"STR",0)
496176.001^STR^String Lookup Index^R^^F^IR^I^176.001^^^^^LS
497"IX",176.001,176.001,"STR",1)
498S ^C0CRXN(176.001,"STR",$E(X,1,30),DA)=""
499"IX",176.001,176.001,"STR",2)
500K ^C0CRXN(176.001,"STR",$E(X,1,30),DA)
501"IX",176.001,176.001,"STR",2.5)
502K ^C0CRXN(176.001,"STR")
503"IX",176.001,176.001,"STR",11.1,0)
504^.114IA^1^1
505"IX",176.001,176.001,"STR",11.1,1,0)
5061^F^176.001^.15^30^1^F
507"IX",176.001,176.001,"STR",11.1,1,2)
508S X=$$UP^XLFSTR(X)
509"IX",176.001,176.001,"STR",11.1,1,3)
510
511"IX",176.001,176.001,"STR",11.1,1,4)
512S X=$$UP^XLFSTR(X)
513"IX",176.001,176.001,"STX",0)
514176.001^STX^Source Term Type RxCUI Code Index^MU^^R^IR^I^176.001^^^^^LS
515"IX",176.001,176.001,"STX",.1,0)
516^^5^5^3130305^
517"IX",176.001,176.001,"STX",.1,1,0)
518Use this index as a reverse of the STC index.
519"IX",176.001,176.001,"STX",.1,2,0)
520
521"IX",176.001,176.001,"STX",.1,3,0)
522The STC index will give you an entry if you know the source and the type
523"IX",176.001,176.001,"STX",.1,4,0)
524and the code. This index will give you the codes if you know the source,
525"IX",176.001,176.001,"STX",.1,5,0)
526the type, but not the code, but rather the RxNorm code.
527"IX",176.001,176.001,"STX",1)
528S ^C0CRXN(176.001,"STX",X(1),X(2),X(3),DA)=X(4)
529"IX",176.001,176.001,"STX",2)
530K ^C0CRXN(176.001,"STX",X(1),X(2),X(3),DA)
531"IX",176.001,176.001,"STX",2.5)
532K ^C0CRXN(176.001,"STX")
533"IX",176.001,176.001,"STX",11.1,0)
534^.114IA^4^4
535"IX",176.001,176.001,"STX",11.1,1,0)
5361^F^176.001^.12^^1^F
537"IX",176.001,176.001,"STX",11.1,1,3)
538
539"IX",176.001,176.001,"STX",11.1,2,0)
5402^F^176.001^.13^^2^F
541"IX",176.001,176.001,"STX",11.1,2,3)
542
543"IX",176.001,176.001,"STX",11.1,3,0)
5443^F^176.001^.01^^3^F
545"IX",176.001,176.001,"STX",11.1,3,3)
546
547"IX",176.001,176.001,"STX",11.1,4,0)
5484^F^176.001^.14^^^F
549"IX",176.001,176.001,"STX",11.1,4,3)
550
551"IX",176.002,176.002,"ANDFRT",0)
552176.002^ANDFRT^RxNorm NDFRT Index^R^^R^IR^I^176.002^^^^^S
553"IX",176.002,176.002,"ANDFRT",1)
554S ^C0CRXN(176.002,"ANDFRT",X(1),$E(X(3),1,30),$E(X(4),1,30),DA)=""
555"IX",176.002,176.002,"ANDFRT",1.4)
556S X=X(2)="NDFRT"
557"IX",176.002,176.002,"ANDFRT",2)
558K ^C0CRXN(176.002,"ANDFRT",X(1),$E(X(3),1,30),$E(X(4),1,30),DA)
559"IX",176.002,176.002,"ANDFRT",2.4)
560S X=X(2)="NDFRT"
561"IX",176.002,176.002,"ANDFRT",2.5)
562K ^C0CRXN(176.002,"ANDFRT")
563"IX",176.002,176.002,"ANDFRT",11.1,0)
564^.114IA^4^4
565"IX",176.002,176.002,"ANDFRT",11.1,1,0)
5661^F^176.002^.09^^1^F
567"IX",176.002,176.002,"ANDFRT",11.1,1,3)
568
569"IX",176.002,176.002,"ANDFRT",11.1,2,0)
5702^F^176.002^.1^^^F
571"IX",176.002,176.002,"ANDFRT",11.1,2,3)
572
573"IX",176.002,176.002,"ANDFRT",11.1,3,0)
5743^F^176.002^.01^30^2^F
575"IX",176.002,176.002,"ANDFRT",11.1,3,3)
576
577"IX",176.002,176.002,"ANDFRT",11.1,4,0)
5784^F^176.002^.11^30^3^F
579"IX",176.002,176.002,"ANDFRT",11.1,4,3)
580
581"IX",176.002,176.002,"ASAA",0)
582176.002^ASAA^SAB (Source) ATN (Attribute Name) ATV (Value) Index^MU^^R^IR^I^176.002^^^^^S
583"IX",176.002,176.002,"ASAA",1)
584S ^C0CRXN(176.002,"ASAA",X(1),$E(X(2),1,30),$E(X(3),1,30),DA)=X(4)
585"IX",176.002,176.002,"ASAA",2)
586K ^C0CRXN(176.002,"ASAA",X(1),$E(X(2),1,30),$E(X(3),1,30),DA)
587"IX",176.002,176.002,"ASAA",2.5)
588K ^C0CRXN(176.002,"ASAA")
589"IX",176.002,176.002,"ASAA",11.1,0)
590^.114IA^4^4
591"IX",176.002,176.002,"ASAA",11.1,1,0)
5921^F^176.002^.1^^1^F
593"IX",176.002,176.002,"ASAA",11.1,1,3)
594
595"IX",176.002,176.002,"ASAA",11.1,2,0)
5962^F^176.002^.01^30^2^F
597"IX",176.002,176.002,"ASAA",11.1,2,3)
598
599"IX",176.002,176.002,"ASAA",11.1,3,0)
6003^F^176.002^.11^30^3^F
601"IX",176.002,176.002,"ASAA",11.1,3,3)
602
603"IX",176.002,176.002,"ASAA",11.1,4,0)
6044^F^176.002^.09^^^F
605"IX",176.002,176.002,"ASAA",11.1,4,3)
606
607"IX",176.002,176.002,"ASAR",0)
608176.002^ASAR^SAB (Source) ATN (Attribute Name) RxCUI Index^MU^^R^IR^I^176.002^^^^^S
609"IX",176.002,176.002,"ASAR",1)
610S ^C0CRXN(176.002,"ASAR",X(1),$E(X(2),1,30),X(3),DA)=X(4)
611"IX",176.002,176.002,"ASAR",2)
612K ^C0CRXN(176.002,"ASAR",X(1),$E(X(2),1,30),X(3),DA)
613"IX",176.002,176.002,"ASAR",2.5)
614K ^C0CRXN(176.002,"ASAR")
615"IX",176.002,176.002,"ASAR",11.1,0)
616^.114IA^4^4
617"IX",176.002,176.002,"ASAR",11.1,1,0)
6181^F^176.002^.1^^1^F
619"IX",176.002,176.002,"ASAR",11.1,1,3)
620
621"IX",176.002,176.002,"ASAR",11.1,2,0)
6222^F^176.002^.01^30^2^F
623"IX",176.002,176.002,"ASAR",11.1,2,3)
624
625"IX",176.002,176.002,"ASAR",11.1,3,0)
6263^F^176.002^.09^^3^F
627"IX",176.002,176.002,"ASAR",11.1,3,3)
628
629"IX",176.002,176.002,"ASAR",11.1,4,0)
6304^F^176.002^.11^^^F
631"IX",176.002,176.002,"ASAR",11.1,4,3)
632
633"IX",176.002,176.002,"RXCUI",0)
634176.002^RXCUI^RXCUI Index^R^^F^IR^I^176.002^^^^^LS
635"IX",176.002,176.002,"RXCUI",1)
636S ^C0CRXN(176.002,"RXCUI",X,DA)=""
637"IX",176.002,176.002,"RXCUI",2)
638K ^C0CRXN(176.002,"RXCUI",X,DA)
639"IX",176.002,176.002,"RXCUI",2.5)
640K ^C0CRXN(176.002,"RXCUI")
641"IX",176.002,176.002,"RXCUI",11.1,0)
642^.114IA^1^1
643"IX",176.002,176.002,"RXCUI",11.1,1,0)
6441^F^176.002^.09^^1^F
645"IX",176.005,176.005,"B",0)
646176.005^B^Compound Index for RXCUI1/RELA/RXCUI2^R^^R^IR^I^176.005^^^^^LS
647"IX",176.005,176.005,"B",1)
648S ^C0CRXN(176.005,"B",X(1),X(2),X(3),DA)=""
649"IX",176.005,176.005,"B",2)
650K ^C0CRXN(176.005,"B",X(1),X(2),X(3),DA)
651"IX",176.005,176.005,"B",2.5)
652K ^C0CRXN(176.005,"B")
653"IX",176.005,176.005,"B",11.1,0)
654^.114IA^3^3
655"IX",176.005,176.005,"B",11.1,1,0)
6561^F^176.005^.11^^1^F
657"IX",176.005,176.005,"B",11.1,1,3)
658
659"IX",176.005,176.005,"B",11.1,2,0)
6602^F^176.005^.08^^2^F
661"IX",176.005,176.005,"B",11.1,2,3)
662
663"IX",176.005,176.005,"B",11.1,3,0)
6643^F^176.005^.05^^3^F
665"IX",176.005,176.005,"B",11.1,3,3)
666
667"MBREQ")
6680
669"PKG",222,-1)
6701^1
671"PKG",222,0)
672RXNORM FOR VISTA^C0CR^RxNorm data dictionaries and loading routines for VISTA
673"PKG",222,20,0)
674^9.402P^^
675"PKG",222,22,0)
676^9.49I^1^1
677"PKG",222,22,1,0)
6782.2^3131114
679"PKG",222,22,1,1,0)
680^^34^34^3131114
681"PKG",222,22,1,1,1,0)
682This build and install is (C) Sam Habiel 2013. Distributed
683"PKG",222,22,1,1,2,0)
684by the VISTA Expertise Network.
685"PKG",222,22,1,1,3,0)
686
687"PKG",222,22,1,1,4,0)
688Questions and Support: sam.habiel@vistaexpertise.net
689"PKG",222,22,1,1,5,0)
690
691"PKG",222,22,1,1,6,0)
692See accompanying License Terms for the terms of using this software.
693"PKG",222,22,1,1,7,0)
694
695"PKG",222,22,1,1,8,0)
696RxNorm is a vocabulary set and tables maintained by the National Library
697"PKG",222,22,1,1,9,0)
698of Medicine. From the Website
699"PKG",222,22,1,1,10,0)
700(http://www.nlm.nih.gov/research/umls/rxnorm/index.html):
701"PKG",222,22,1,1,11,0)
702
703"PKG",222,22,1,1,12,0)
704<<<
705"PKG",222,22,1,1,13,0)
706RxNorm provides normalized names for clinical drugs and links its names to
707"PKG",222,22,1,1,14,0)
708many of the drug vocabularies commonly used in pharmacy management and
709"PKG",222,22,1,1,15,0)
710drug interaction software, including those of First Databank, Micromedex,
711"PKG",222,22,1,1,16,0)
712MediSpan, Gold Standard, and Multum. By providing links between these
713"PKG",222,22,1,1,17,0)
714vocabularies, RxNorm can mediate messages between systems not using the
715"PKG",222,22,1,1,18,0)
716same software and vocabulary.
717"PKG",222,22,1,1,19,0)
718
719"PKG",222,22,1,1,20,0)
720RxNorm now includes the National Drug File - Reference Terminology
721"PKG",222,22,1,1,21,0)
722(NDF-RT) from the Veterans Health Administration. NDF-RT is a terminology
723"PKG",222,22,1,1,22,0)
724used to code clinical drug properties, including mechanism of action,
725"PKG",222,22,1,1,23,0)
726physiologic effect, and therapeutic category.
727"PKG",222,22,1,1,24,0)
728>>>
729"PKG",222,22,1,1,25,0)
730
731"PKG",222,22,1,1,26,0)
732This build consists of the data dictionaries for 6 files and 3 routines,
733"PKG",222,22,1,1,27,0)
734one of them being the loader routine for the data.
735"PKG",222,22,1,1,28,0)
736
737"PKG",222,22,1,1,29,0)
738This build REQUIRES Fileman 22.2 and REQUIRES global nodes up to 16,000.
739"PKG",222,22,1,1,30,0)
740This means that on GT.M databases, the record length needs to be 16,000
741"PKG",222,22,1,1,31,0)
742characters and Fileman needs to have ^DD("STRING_LIMIT")=16000 (needs to
743"PKG",222,22,1,1,32,0)
744be manually set).
745"PKG",222,22,1,1,33,0)
746
747"PKG",222,22,1,1,34,0)
748If you install this on Fileman 22.0, some features may not work.
749"PKG",222,"DEV")
750SAM HABIEL/VEN
751"PKG",222,"VERSION")
7522.2
753"QUES","XPF1",0)
754Y
755"QUES","XPF1","??")
756^D REP^XPDH
757"QUES","XPF1","A")
758Shall I write over your |FLAG| File
759"QUES","XPF1","B")
760YES
761"QUES","XPF1","M")
762D XPF1^XPDIQ
763"QUES","XPF2",0)
764Y
765"QUES","XPF2","??")
766^D DTA^XPDH
767"QUES","XPF2","A")
768Want my data |FLAG| yours
769"QUES","XPF2","B")
770YES
771"QUES","XPF2","M")
772D XPF2^XPDIQ
773"QUES","XPI1",0)
774YO
775"QUES","XPI1","??")
776^D INHIBIT^XPDH
777"QUES","XPI1","A")
778Want KIDS to INHIBIT LOGONs during the install
779"QUES","XPI1","B")
780NO
781"QUES","XPI1","M")
782D XPI1^XPDIQ
783"QUES","XPM1",0)
784PO^VA(200,:EM
785"QUES","XPM1","??")
786^D MG^XPDH
787"QUES","XPM1","A")
788Enter the Coordinator for Mail Group '|FLAG|'
789"QUES","XPM1","B")
790
791"QUES","XPM1","M")
792D XPM1^XPDIQ
793"QUES","XPO1",0)
794Y
795"QUES","XPO1","??")
796^D MENU^XPDH
797"QUES","XPO1","A")
798Want KIDS to Rebuild Menu Trees Upon Completion of Install
799"QUES","XPO1","B")
800NO
801"QUES","XPO1","M")
802D XPO1^XPDIQ
803"QUES","XPZ1",0)
804Y
805"QUES","XPZ1","??")
806^D OPT^XPDH
807"QUES","XPZ1","A")
808Want to DISABLE Scheduled Options, Menu Options, and Protocols
809"QUES","XPZ1","B")
810NO
811"QUES","XPZ1","M")
812D XPZ1^XPDIQ
813"QUES","XPZ2",0)
814Y
815"QUES","XPZ2","??")
816^D RTN^XPDH
817"QUES","XPZ2","A")
818Want to MOVE routines to other CPUs
819"QUES","XPZ2","B")
820NO
821"QUES","XPZ2","M")
822D XPZ2^XPDIQ
823"RTN")
8243
825"RTN","C0CRXNAD")
8260^3^B18747982
827"RTN","C0CRXNAD",1,0)
828C0CRXNAD ; VEN/SMH - Add a drug to VISTA from RxNorm;2013-04-19 5:39 PM
829"RTN","C0CRXNAD",2,0)
830 ;;2.2;RXNORM FOR VISTA;;Nov 14, 2013;Build 10
831"RTN","C0CRXNAD",3,0)
832 ; (C) 2013 Sam Habiel
833"RTN","C0CRXNAD",4,0)
834 ; Proprietary Code. Don't use if license terms aren't supplied.
835"RTN","C0CRXNAD",5,0)
836 ;
837"RTN","C0CRXNAD",6,0)
838ADDDRUG(RXN,NDC,BARCODE) ; Public Proc; Add Drug to Drug File
839"RTN","C0CRXNAD",7,0)
840 ; Input: RXN - RxNorm Semantic Clinical Drug CUI by Value. Required.
841"RTN","C0CRXNAD",8,0)
842 ; Input: NDC - Drug NDC by Value. Optional. Pass in 11 digit format without dashes.
843"RTN","C0CRXNAD",9,0)
844 ; Input: BARCODE - Wand Barcode. Optional. Pass exactly as wand reads minus control characters.
845"RTN","C0CRXNAD",10,0)
846 ; Output: Internal Entry Number
847"RTN","C0CRXNAD",11,0)
848 ;
849"RTN","C0CRXNAD",12,0)
850 ; Prelim Checks
851"RTN","C0CRXNAD",13,0)
852 I '$G(RXN) S $EC=",U1," ; Required
853"RTN","C0CRXNAD",14,0)
854 I $L($G(NDC)),$L(NDC)'=11 S $EC=",U1,"
855"RTN","C0CRXNAD",15,0)
856 ;
857"RTN","C0CRXNAD",16,0)
858 N PSSZ S PSSZ=1 ; Needed for the drug file to let me in!
859"RTN","C0CRXNAD",17,0)
860 ;
861"RTN","C0CRXNAD",18,0)
862 ; If RXN refers to a brand drug, get the generic instead.
863"RTN","C0CRXNAD",19,0)
864 I $$ISBRAND^C0CRXNLK(RXN) S RXN=$$BR2GEN^C0CRXNLK(RXN)
865"RTN","C0CRXNAD",20,0)
866 W !,"(debug) RxNorm is "_RXN,!
867"RTN","C0CRXNAD",21,0)
868 ;
869"RTN","C0CRXNAD",22,0)
870 ; Get first VUID for this RxNorm drug
871"RTN","C0CRXNAD",23,0)
872 N VUID S VUID=+$$RXN2VUI^C0CRXNLK(RXN)
873"RTN","C0CRXNAD",24,0)
874 Q:'VUID
875"RTN","C0CRXNAD",25,0)
876 W "(debug) VUID for RxNorm CUI "_RXN_" is "_VUID,!
877"RTN","C0CRXNAD",26,0)
878 ;
879"RTN","C0CRXNAD",27,0)
880 ; IEN in 50.68
881"RTN","C0CRXNAD",28,0)
882 N C0XVUID ; For Searching Compound Index
883"RTN","C0CRXNAD",29,0)
884 S C0XVUID(1)=VUID
885"RTN","C0CRXNAD",30,0)
886 S C0XVUID(2)=1
887"RTN","C0CRXNAD",31,0)
888 N F5068IEN S F5068IEN=$$FIND1^DIC(50.68,"","XQ",.C0XVUID,"AMASTERVUID")
889"RTN","C0CRXNAD",32,0)
890 Q:'F5068IEN
891"RTN","C0CRXNAD",33,0)
892 W "F 50.68 IEN (debug): "_F5068IEN,!
893"RTN","C0CRXNAD",34,0)
894 ;
895"RTN","C0CRXNAD",35,0)
896 ; FDA Array
897"RTN","C0CRXNAD",36,0)
898 N C0XFDA
899"RTN","C0CRXNAD",37,0)
900 ;
901"RTN","C0CRXNAD",38,0)
902 ; Name, shortened
903"RTN","C0CRXNAD",39,0)
904 S C0XFDA(50,"+1,",.01)=$E($$GET1^DIQ(50.68,F5068IEN,.01),1,40)
905"RTN","C0CRXNAD",40,0)
906 ;
907"RTN","C0CRXNAD",41,0)
908 ; File BarCode as a Synonym for BCMA
909"RTN","C0CRXNAD",42,0)
910 I $L($G(BARCODE)) D
911"RTN","C0CRXNAD",43,0)
912 . S C0XFDA(50.1,"+2,+1,",.01)=BARCODE
913"RTN","C0CRXNAD",44,0)
914 . S C0XFDA(50.1,"+2,+1,",1)="Q"
915"RTN","C0CRXNAD",45,0)
916 ;
917"RTN","C0CRXNAD",46,0)
918 ; Brand Names
919"RTN","C0CRXNAD",47,0)
920 N BNS S BNS=$$RXN2BNS^C0CRXNLK(RXN) ; Brands
921"RTN","C0CRXNAD",48,0)
922 I $L(BNS) N I F I=1:1:$L(BNS,U) D
923"RTN","C0CRXNAD",49,0)
924 . N IENS S IENS=I+2
925"RTN","C0CRXNAD",50,0)
926 . S C0XFDA(50.1,"+"_IENS_",+1,",.01)=$$UP^XLFSTR($E($P(BNS,U,I),1,40))
927"RTN","C0CRXNAD",51,0)
928 . S C0XFDA(50.1,"+"_IENS_",+1,",1)="T"
929"RTN","C0CRXNAD",52,0)
930 ;
931"RTN","C0CRXNAD",53,0)
932 ; NDC (string)
933"RTN","C0CRXNAD",54,0)
934 I $G(NDC) S C0XFDA(50,"+1,",31)=$E(NDC,1,5)_"-"_$E(NDC,6,9)_"-"_$E(NDC,10,11)
935"RTN","C0CRXNAD",55,0)
936 ;
937"RTN","C0CRXNAD",56,0)
938 ; Dispense Unit (string)
939"RTN","C0CRXNAD",57,0)
940 S C0XFDA(50,"+1,",14.5)=$$GET1^DIQ(50.68,F5068IEN,"VA DISPENSE UNIT")
941"RTN","C0CRXNAD",58,0)
942 ;
943"RTN","C0CRXNAD",59,0)
944 ; National Drug File Entry (pointer to 50.6)
945"RTN","C0CRXNAD",60,0)
946 S C0XFDA(50,"+1,",20)="`"_$$GET1^DIQ(50.68,F5068IEN,"VA GENERIC NAME","I")
947"RTN","C0CRXNAD",61,0)
948 ;
949"RTN","C0CRXNAD",62,0)
950 ; VA Product Name (string)
951"RTN","C0CRXNAD",63,0)
952 S C0XFDA(50,"+1,",21)=$E($$GET1^DIQ(50.68,F5068IEN,.01),1,70)
953"RTN","C0CRXNAD",64,0)
954 ;
955"RTN","C0CRXNAD",65,0)
956 ; PSNDF VA PRODUCT NAME ENTRY (pointer to 50.68)
957"RTN","C0CRXNAD",66,0)
958 S C0XFDA(50,"+1,",22)="`"_F5068IEN
959"RTN","C0CRXNAD",67,0)
960 ;
961"RTN","C0CRXNAD",68,0)
962 ; DEA, SPECIAL HDLG (string)
963"RTN","C0CRXNAD",69,0)
964 D ; From ^PSNMRG
965"RTN","C0CRXNAD",70,0)
966 . N CS S CS=$$GET1^DIQ(50.68,F5068IEN,"CS FEDERAL SCHEDULE","I")
967"RTN","C0CRXNAD",71,0)
968 . S CS=$S(CS?1(1"2n",1"3n"):+CS_"C",+CS=2!(+CS=3)&(CS'["C"):+CS_"A",1:CS)
969"RTN","C0CRXNAD",72,0)
970 . S C0XFDA(50,"+1,",3)=CS
971"RTN","C0CRXNAD",73,0)
972 ;
973"RTN","C0CRXNAD",74,0)
974 ; NATIONAL DRUG CLASS (pointer to 50.605) (triggers VA Classification field)
975"RTN","C0CRXNAD",75,0)
976 S C0XFDA(50,"+1,",25)="`"_$$GET1^DIQ(50.68,F5068IEN,"PRIMARY VA DRUG CLASS","I")
977"RTN","C0CRXNAD",76,0)
978 ;
979"RTN","C0CRXNAD",77,0)
980 ; Right Now, I don't file the following which ^PSNMRG does (cuz I don't need them)
981"RTN","C0CRXNAD",78,0)
982 ; - Package Size (derived from NDC/UPN file)
983"RTN","C0CRXNAD",79,0)
984 ; - Package Type (ditto)
985"RTN","C0CRXNAD",80,0)
986 ; - CMOP ID (from $$PROD2^PSNAPIS)
987"RTN","C0CRXNAD",81,0)
988 ; - National Formulary Indicator (from 50.68)
989"RTN","C0CRXNAD",82,0)
990 ;
991"RTN","C0CRXNAD",83,0)
992 ; Next Step is to kill Old OI if Dosage Form doesn't match
993"RTN","C0CRXNAD",84,0)
994 ; Won't do that here as it's assumed any drugs that's added is new.
995"RTN","C0CRXNAD",85,0)
996 ; This happens at ^PSNPSS
997"RTN","C0CRXNAD",86,0)
998 ;
999"RTN","C0CRXNAD",87,0)
1000 ; Now add drug to drug file, as we need the IEN for the dosages call.
1001"RTN","C0CRXNAD",88,0)
1002 N C0XERR,C0XIEN
1003"RTN","C0CRXNAD",89,0)
1004 D UPDATE^DIE("E","C0XFDA","C0XIEN","C0XERR")
1005"RTN","C0CRXNAD",90,0)
1006 S:$D(C0XERR) $EC=",U1,"
1007"RTN","C0CRXNAD",91,0)
1008 ;
1009"RTN","C0CRXNAD",92,0)
1010 ; Next Step: Kill off old doses and add new ones.
1011"RTN","C0CRXNAD",93,0)
1012 D EN2^PSSUTIL(C0XIEN(1))
1013"RTN","C0CRXNAD",94,0)
1014 ;
1015"RTN","C0CRXNAD",95,0)
1016 ; Mark uses for the Drug; use the undocumented Silent call in PSSGIU
1017"RTN","C0CRXNAD",96,0)
1018 N PSIUDA,PSIUX ; Expected Input variables
1019"RTN","C0CRXNAD",97,0)
1020 S PSIUDA=C0XIEN(1),PSIUX="O^Outpatient Pharmacy" D ENS^PSSGIU
1021"RTN","C0CRXNAD",98,0)
1022 S PSIUDA=C0XIEN(1),PSIUX="U^Unit Dose" D ENS^PSSGIU
1023"RTN","C0CRXNAD",99,0)
1024 S PSIUDA=C0XIEN(1),PSIUX="X^Non-VA Med" D ENS^PSSGIU
1025"RTN","C0CRXNAD",100,0)
1026 ;
1027"RTN","C0CRXNAD",101,0)
1028 ; Get VA Generic text and VA Product pointer for Orderable Item creation plus dosage form information
1029"RTN","C0CRXNAD",102,0)
1030 N VAGENP S VAGENP=$P(^PSDRUG(C0XIEN(1),"ND"),U) ; VA Generic Pointer
1031"RTN","C0CRXNAD",103,0)
1032 N VAGEN S VAGEN=$$VAGN^PSNAPIS(VAGENP) ; VA Generic Full name
1033"RTN","C0CRXNAD",104,0)
1034 N VAPRODP S VAPRODP=$P(^PSDRUG(C0XIEN(1),"ND"),U,3) ; VA Product Pointer
1035"RTN","C0CRXNAD",105,0)
1036 N DOSAGE S DOSAGE=$$PSJDF^PSNAPIS(0,VAPRODP) ; IEN of dose form in 50.606 ^ Text
1037"RTN","C0CRXNAD",106,0)
1038 N DOSEPTR S DOSEPTR=$P(DOSAGE,U) ; ditto
1039"RTN","C0CRXNAD",107,0)
1040 N DOSEFORM S DOSEFORM=$P(DOSAGE,U,2) ;ditto
1041"RTN","C0CRXNAD",108,0)
1042 ;
1043"RTN","C0CRXNAD",109,0)
1044 ; Get the (possibly new) Orderable Item Text
1045"RTN","C0CRXNAD",110,0)
1046 N VAG40 S VAG40=$E(VAGEN,1,40) ; Max length of .01 field
1047"RTN","C0CRXNAD",111,0)
1048 ;
1049"RTN","C0CRXNAD",112,0)
1050 ; See if there is an existing orderable item already. If so, populate the Pharmacy Orderable item on drug file.
1051"RTN","C0CRXNAD",113,0)
1052 N OI S OI=$O(^PS(50.7,"ADF",VAG40,DOSEPTR,""))
1053"RTN","C0CRXNAD",114,0)
1054 ;
1055"RTN","C0CRXNAD",115,0)
1056 ; Otherwise, add a new one. (See MCHAN+12^PSSPOIMN)
1057"RTN","C0CRXNAD",116,0)
1058 I 'OI D
1059"RTN","C0CRXNAD",117,0)
1060 . N C0XFDA,C0XERR
1061"RTN","C0CRXNAD",118,0)
1062 . S C0XFDA(50.7,"+1,",.01)=VAG40
1063"RTN","C0CRXNAD",119,0)
1064 . S C0XFDA(50.7,"+1,",.02)=DOSEPTR
1065"RTN","C0CRXNAD",120,0)
1066 . D UPDATE^DIE("",$NA(C0XFDA),$NA(OI),$NA(C0XERR))
1067"RTN","C0CRXNAD",121,0)
1068 . I $D(C0XERR) S $EC=",U1,"
1069"RTN","C0CRXNAD",122,0)
1070 . S OI=OI(1) ; For ease of use...
1071"RTN","C0CRXNAD",123,0)
1072 . ; Next two statements: See FIN^PSSPOIM1 and MF^PSSDEE.
1073"RTN","C0CRXNAD",124,0)
1074 . D EN^PSSPOIDT(OI) ; Update Indexes; activations, etc.
1075"RTN","C0CRXNAD",125,0)
1076 . D EN2^PSSHL1(OI,"MUP") ; Send HL7 message to CPRS
1077"RTN","C0CRXNAD",126,0)
1078 ;
1079"RTN","C0CRXNAD",127,0)
1080 ; Finally, add the orderable Item to the drug file.
1081"RTN","C0CRXNAD",128,0)
1082 N C0XFDA,C0XERR S C0XFDA(50,C0XIEN(1)_",",2.1)=OI ; Orderable Item
1083"RTN","C0CRXNAD",129,0)
1084 D FILE^DIE("",$NA(C0XFDA),$NA(C0XERR))
1085"RTN","C0CRXNAD",130,0)
1086 S:$D(C0XERR) $EC=",U1,"
1087"RTN","C0CRXNAD",131,0)
1088 ;
1089"RTN","C0CRXNAD",132,0)
1090EX QUIT C0XIEN(1)
1091"RTN","C0CRXNLK")
10920^2^B98280702
1093"RTN","C0CRXNLK",1,0)
1094C0CRXNLK ; VEN/SMH - RxNorm Lookup Utilities ;2013-11-14 2:43 PM
1095"RTN","C0CRXNLK",2,0)
1096 ;;2.2;RXNORM FOR VISTA;;Nov 14, 2013;Build 10
1097"RTN","C0CRXNLK",3,0)
1098 ;(c) Sam Habiel 2013
1099"RTN","C0CRXNLK",4,0)
1100 ; See accompanying license. Don't use otherwise.
1101"RTN","C0CRXNLK",5,0)
1102 ;
1103"RTN","C0CRXNLK",6,0)
1104 S IO=$P
1105"RTN","C0CRXNLK",7,0)
1106 N DIQUIET S DIQUIET=1
1107"RTN","C0CRXNLK",8,0)
1108 D DT^DICRW
1109"RTN","C0CRXNLK",9,0)
1110 D EN^XTMUNIT($T(+0),1)
1111"RTN","C0CRXNLK",10,0)
1112 QUIT
1113"RTN","C0CRXNLK",11,0)
1114 ;
1115"RTN","C0CRXNLK",12,0)
1116EXIST(RXN) ; $$ Public - Does this RxNorm CUI exist?
1117"RTN","C0CRXNLK",13,0)
1118 ; Input: RxNorm CUI by value
1119"RTN","C0CRXNLK",14,0)
1120 ; Output: Extrinsic
1121"RTN","C0CRXNLK",15,0)
1122 Q ''$D(^C0CRXN(176.001,"B",RXN))
1123"RTN","C0CRXNLK",16,0)
1124 ;
1125"RTN","C0CRXNLK",17,0)
1126GCN2RXN(GCN) ; $$ Public - Get RxNorm CUI using GCN
1127"RTN","C0CRXNLK",18,0)
1128 ; Input: GCN by Value
1129"RTN","C0CRXNLK",19,0)
1130 ; Output: Extrinsic
1131"RTN","C0CRXNLK",20,0)
1132 S GCN=$$RJ^XLFSTR(GCN,6,0) ; pad to six digits by zeros (123 becomes 000123)
1133"RTN","C0CRXNLK",21,0)
1134 N IEN S IEN=$O(^C0CRXN(176.001,"STC","NDDF","CDC",GCN,"")) ; Get Entry
1135"RTN","C0CRXNLK",22,0)
1136 Q ^(IEN)
1137"RTN","C0CRXNLK",23,0)
1138 ;
1139"RTN","C0CRXNLK",24,0)
1140GCN2RXNT ; @TEST - Test Get RxNorm CUI using GCN
1141"RTN","C0CRXNLK",25,0)
1142 Q:'$D(^C0CRXN(176.001,"STC","NDDF"))
1143"RTN","C0CRXNLK",26,0)
1144 N L F L=1:1 N LN S LN=$T(GCN2RXND+L) Q:LN["<<END>>" Q:LN="" D
1145"RTN","C0CRXNLK",27,0)
1146 . N GCN S GCN=$P(LN,";",3)
1147"RTN","C0CRXNLK",28,0)
1148 . N RXN S RXN=$P(LN,";",4)
1149"RTN","C0CRXNLK",29,0)
1150 . D CHKEQ^XTMUNIT($$GCN2RXN(GCN),RXN,"Translation from GCN to RXCUI failed")
1151"RTN","C0CRXNLK",30,0)
1152 QUIT
1153"RTN","C0CRXNLK",31,0)
1154 ;
1155"RTN","C0CRXNLK",32,0)
1156GCN2RXND ; @DATA - Data for Tests ;;GCN;EXPECTED RXNCUI
1157"RTN","C0CRXNLK",33,0)
1158 ;;16033;991632
1159"RTN","C0CRXNLK",34,0)
1160 ;;8208;310429
1161"RTN","C0CRXNLK",35,0)
1162 ;;1275;628953
1163"RTN","C0CRXNLK",36,0)
1164 ;;18;197604
1165"RTN","C0CRXNLK",37,0)
1166 ;;346;884173
1167"RTN","C0CRXNLK",38,0)
1168 ;;<<END>>
1169"RTN","C0CRXNLK",39,0)
1170 ;
1171"RTN","C0CRXNLK",40,0)
1172 ;
1173"RTN","C0CRXNLK",41,0)
1174 ;
1175"RTN","C0CRXNLK",42,0)
1176RXN2GCN(RXNCUI) ; $$ Public - Get GCN(s) given an RxNorm Number
1177"RTN","C0CRXNLK",43,0)
1178 ; Input: RXNCUI by Value
1179"RTN","C0CRXNLK",44,0)
1180 ; Output: Caret delimited Extrinsic
1181"RTN","C0CRXNLK",45,0)
1182 N GCNS S GCNS=""
1183"RTN","C0CRXNLK",46,0)
1184 N I S I=""
1185"RTN","C0CRXNLK",47,0)
1186 F S I=$O(^C0CRXN(176.001,"STX","NDDF","CDC",RXNCUI,I)) Q:I="" S GCNS=GCNS_+^(I)_U ; + b/c we want the GCN w/o leading zeros
1187"RTN","C0CRXNLK",48,0)
1188 S GCNS=$E(GCNS,1,$L(GCNS)-1) ; remove trailing ^
1189"RTN","C0CRXNLK",49,0)
1190 Q GCNS
1191"RTN","C0CRXNLK",50,0)
1192 ;
1193"RTN","C0CRXNLK",51,0)
1194RXN2GCNT ; @TEST - Test Get GCN from RXNCUI
1195"RTN","C0CRXNLK",52,0)
1196 Q:'$D(^C0CRXN(176.001,"STX","NDDF"))
1197"RTN","C0CRXNLK",53,0)
1198 N L F L=1:1 N LN S LN=$T(RXN2GCND+L) Q:LN["<<END>>" Q:LN="" D
1199"RTN","C0CRXNLK",54,0)
1200 . N RXN S RXN=$P(LN,";",3)
1201"RTN","C0CRXNLK",55,0)
1202 . N GCN S GCN=$P(LN,";",4)
1203"RTN","C0CRXNLK",56,0)
1204 . D CHKEQ^XTMUNIT($$RXN2GCN(RXN),GCN,"Translation from RXCUI to GCN failed")
1205"RTN","C0CRXNLK",57,0)
1206 QUIT
1207"RTN","C0CRXNLK",58,0)
1208 ;
1209"RTN","C0CRXNLK",59,0)
1210 ;
1211"RTN","C0CRXNLK",60,0)
1212RXN2GCND ; @DATA - Data for Tests ;;RXNORM CUI;Expected GCN; Human Readable Drug name for dear reader
1213"RTN","C0CRXNLK",61,0)
1214 ;;998689;5145;Acetabulol 200mg tab
1215"RTN","C0CRXNLK",62,0)
1216 ;;745679;5037;Albuterol Inhaler
1217"RTN","C0CRXNLK",63,0)
1218 ;;197320;2536;Allopurinol 300mg tab
1219"RTN","C0CRXNLK",64,0)
1220 ;;993691;3948^46236;Bupropion 75mg tab
1221"RTN","C0CRXNLK",65,0)
1222 ;;197591;3768;Diazepam 5mg tab
1223"RTN","C0CRXNLK",66,0)
1224 ;;<<END>>
1225"RTN","C0CRXNLK",67,0)
1226 ;
1227"RTN","C0CRXNLK",68,0)
1228 ;
1229"RTN","C0CRXNLK",69,0)
1230 ;
1231"RTN","C0CRXNLK",70,0)
1232RXN2VUI(RXNCUI) ; $$ Public - Get VUID(s) for given RXNCUI for Clinical Drug
1233"RTN","C0CRXNLK",71,0)
1234 ; Input: RXNCUI by Value
1235"RTN","C0CRXNLK",72,0)
1236 ; Output: Caret delimited extrinsic. Should not be more than 2 entries.
1237"RTN","C0CRXNLK",73,0)
1238 N C0PVUID S C0PVUID=""
1239"RTN","C0CRXNLK",74,0)
1240 N I S I=""
1241"RTN","C0CRXNLK",75,0)
1242 F S I=$O(^C0CRXN(176.001,"STX","VANDF","CD",RXNCUI,I)) Q:I="" S C0PVUID=C0PVUID_^(I)_U
1243"RTN","C0CRXNLK",76,0)
1244 S C0PVUID=$E(C0PVUID,1,$L(C0PVUID)-1) ; remove trailing ^
1245"RTN","C0CRXNLK",77,0)
1246 ; TODO: Return only the quantified form using:
1247"RTN","C0CRXNLK",78,0)
1248 ; I $O(^C0CRXN(176.005,"RXCUIREL",RXN,"has_quantified_form","")) N QF S QF=$O(^("")) Q $O(^C0CRXN(176.001,"RXN2VUID",QF,""))
1249"RTN","C0CRXNLK",79,0)
1250 Q C0PVUID
1251"RTN","C0CRXNLK",80,0)
1252 ;
1253"RTN","C0CRXNLK",81,0)
1254RXN2VUIT ; @TEST - Get VUIDs given RxNorm values
1255"RTN","C0CRXNLK",82,0)
1256 N L F L=1:1 N LN S LN=$T(RXN2VUID+L) Q:LN["<<END>>" Q:LN="" D
1257"RTN","C0CRXNLK",83,0)
1258 . N RXN S RXN=$P(LN,";",3)
1259"RTN","C0CRXNLK",84,0)
1260 . N VUIDS S VUIDS=$P(LN,";",4)
1261"RTN","C0CRXNLK",85,0)
1262 . D CHKEQ^XTMUNIT($$RXN2VUI(RXN),VUIDS,"Translation from RXNCUI to VUID failed")
1263"RTN","C0CRXNLK",86,0)
1264 QUIT
1265"RTN","C0CRXNLK",87,0)
1266 ;
1267"RTN","C0CRXNLK",88,0)
1268RXN2VUID ; @DATA - Data items for previous test
1269"RTN","C0CRXNLK",89,0)
1270 ;;991632;4006455
1271"RTN","C0CRXNLK",90,0)
1272 ;;310429;4002369^4013941
1273"RTN","C0CRXNLK",91,0)
1274 ;;628953;4000874^4000856^4013966^4015798^4015799
1275"RTN","C0CRXNLK",92,0)
1276 ;;197604;4003335^4015937
1277"RTN","C0CRXNLK",93,0)
1278 ;;884173;4002469^4013919
1279"RTN","C0CRXNLK",94,0)
1280 ;;<<END>>
1281"RTN","C0CRXNLK",95,0)
1282 ;
1283"RTN","C0CRXNLK",96,0)
1284 ;
1285"RTN","C0CRXNLK",97,0)
1286 ;
1287"RTN","C0CRXNLK",98,0)
1288VUI2VAP(VUID) ; $$ Public - Get VA Product IEN(s) from VUID
1289"RTN","C0CRXNLK",99,0)
1290 ; Input VUID by Value
1291"RTN","C0CRXNLK",100,0)
1292 ; Output: Extrinsic
1293"RTN","C0CRXNLK",101,0)
1294 D FIND^DIC(50.68,,"@","QP",VUID,,"AVUID") ; Find all in VUID index
1295"RTN","C0CRXNLK",102,0)
1296 N O S O="" ; Output
1297"RTN","C0CRXNLK",103,0)
1298 N I F I=0:0 S I=$O(^TMP("DILIST",$J,I)) Q:'I S O=O_^(I,0)_U ; Concat results together
1299"RTN","C0CRXNLK",104,0)
1300 S O=$E(O,1,$L(O)-1) ; remove trailing ^
1301"RTN","C0CRXNLK",105,0)
1302 Q O
1303"RTN","C0CRXNLK",106,0)
1304 ;
1305"RTN","C0CRXNLK",107,0)
1306VUI2VAPT ; @TEST - Get VA Product IEN from VUID
1307"RTN","C0CRXNLK",108,0)
1308 N L F L=1:1 N LN S LN=$T(VUI2VAPD+L) Q:LN["<<END>>" Q:LN="" D
1309"RTN","C0CRXNLK",109,0)
1310 . N VUID S VUID=$P(LN,";",3)
1311"RTN","C0CRXNLK",110,0)
1312 . N VAP S VAP=$P(LN,";",4)
1313"RTN","C0CRXNLK",111,0)
1314 . D CHKEQ^XTMUNIT($$VUI2VAP(VUID),VAP,"Translation from VUID to VA PRODUCT failed")
1315"RTN","C0CRXNLK",112,0)
1316 QUIT
1317"RTN","C0CRXNLK",113,0)
1318 ;
1319"RTN","C0CRXNLK",114,0)
1320VUI2VAPD ; @DATA - Data for above test
1321"RTN","C0CRXNLK",115,0)
1322 ;;4006455;5932
1323"RTN","C0CRXNLK",116,0)
1324 ;;4002369;1784
1325"RTN","C0CRXNLK",117,0)
1326 ;;4000874;252
1327"RTN","C0CRXNLK",118,0)
1328 ;;4003335;2756
1329"RTN","C0CRXNLK",119,0)
1330 ;;4002469;1884
1331"RTN","C0CRXNLK",120,0)
1332 ;;4009488;9046^10090
1333"RTN","C0CRXNLK",121,0)
1334 ;;<<END>>
1335"RTN","C0CRXNLK",122,0)
1336 ;
1337"RTN","C0CRXNLK",123,0)
1338 ;
1339"RTN","C0CRXNLK",124,0)
1340 ;
1341"RTN","C0CRXNLK",125,0)
1342VAP2MED(VAPROD) ; $$ Public - Get Drug(s) using VA Product IEN
1343"RTN","C0CRXNLK",126,0)
1344 ; Un-Unit-testable: Drug files differ between sites.
1345"RTN","C0CRXNLK",127,0)
1346 ; Input: VA Product IEN By Value
1347"RTN","C0CRXNLK",128,0)
1348 ; OUtput: Caret delimited extrinsic
1349"RTN","C0CRXNLK",129,0)
1350 ; This code inspired from PSNAPIs
1351"RTN","C0CRXNLK",130,0)
1352 ; WHY THE HELL WOULD I USE A TEXT INDEX?
1353"RTN","C0CRXNLK",131,0)
1354 ; It's my only option. Creating new xrefs on the drug file doesn't help
1355"RTN","C0CRXNLK",132,0)
1356 ; as they are not filled out when adding a drug (IX[ALL]^DIK isn't called).
1357"RTN","C0CRXNLK",133,0)
1358 N MEDS S MEDS="" ; result
1359"RTN","C0CRXNLK",134,0)
1360 N PN,PN1 ; Product Name, abbreviated product name.
1361"RTN","C0CRXNLK",135,0)
1362 S PN=$P(^PSNDF(50.68,VAPROD,0),"^"),PN1=$E(PN,1,30)
1363"RTN","C0CRXNLK",136,0)
1364 N P50 S P50=0 ; looper through VAPN index which is DRUG file entry
1365"RTN","C0CRXNLK",137,0)
1366 F S P50=$O(^PSDRUG("VAPN",PN1,P50)) Q:'P50 D ; for each text match
1367"RTN","C0CRXNLK",138,0)
1368 . I $P(^PSDRUG(P50,"ND"),"^",3)=VAPROD S MEDS=$G(MEDS)_P50_U ; check that the VA PRODUCT pointer is the same as ours.
1369"RTN","C0CRXNLK",139,0)
1370 S:MEDS MEDS=$E(MEDS,1,$L(MEDS)-1) ; remove trailing ^
1371"RTN","C0CRXNLK",140,0)
1372 Q MEDS
1373"RTN","C0CRXNLK",141,0)
1374 ;
1375"RTN","C0CRXNLK",142,0)
1376 ;
1377"RTN","C0CRXNLK",143,0)
1378RXN2MEDS(RXNCUI) ; $$ Public - Convert RxNorm value to currently existing drugs in File 50.
1379"RTN","C0CRXNLK",144,0)
1380 ; Input: SCD RXNCUI
1381"RTN","C0CRXNLK",145,0)
1382 ; Output; Caret delimited extrinsic
1383"RTN","C0CRXNLK",146,0)
1384 ; Un-unit testable
1385"RTN","C0CRXNLK",147,0)
1386 N VUIDS S VUIDS=$$RXN2VUI(RXNCUI) ; Get VUID from RXNCUI (multiple VUIDs per CUI)
1387"RTN","C0CRXNLK",148,0)
1388 Q:'VUIDS ""
1389"RTN","C0CRXNLK",149,0)
1390 N MEDS S MEDS=""
1391"RTN","C0CRXNLK",150,0)
1392 N DONE S DONE=0
1393"RTN","C0CRXNLK",151,0)
1394 N I F I=1:1:$L(VUIDS,U) D Q:DONE
1395"RTN","C0CRXNLK",152,0)
1396 . N VUID S VUID=$P(VUIDS,U,I)
1397"RTN","C0CRXNLK",153,0)
1398 . N VAPRODS S VAPRODS=$$VUI2VAP(VUID) ; Get VA Product from VUID (multiple products per VUID)
1399"RTN","C0CRXNLK",154,0)
1400 . I '$L(VAPRODS) S $ECODE=",U-NO-VA-PRODUCT-CORRUPT-NDF," ; MUST EXIST. Every VUID must have a product to go with it.
1401"RTN","C0CRXNLK",155,0)
1402 . N J F J=1:1:$L(VAPRODS,U) D Q:DONE
1403"RTN","C0CRXNLK",156,0)
1404 . . N VAPROD S VAPROD=$P(VAPRODS,U,J)
1405"RTN","C0CRXNLK",157,0)
1406 . . S MEDS=$$VAP2MED(VAPROD) ; Get Meds from VA Product
1407"RTN","C0CRXNLK",158,0)
1408 . . I $L(MEDS) S DONE=1
1409"RTN","C0CRXNLK",159,0)
1410 QUIT MEDS
1411"RTN","C0CRXNLK",160,0)
1412 ;
1413"RTN","C0CRXNLK",161,0)
1414FDI2RXN(BASE) ; $$ Public - Get RxNorm CUI for FDB Ingredient/Base
1415"RTN","C0CRXNLK",162,0)
1416 ; ^C0CRXN(176.001,"STC","NDDF","IN","014739",1000870)=1362160
1417"RTN","C0CRXNLK",163,0)
1418 ; Input: BASE By Value
1419"RTN","C0CRXNLK",164,0)
1420 ; Output: RxNorm CUI
1421"RTN","C0CRXNLK",165,0)
1422 S BASE=$$RJ^XLFSTR(BASE,6,0) ; pad to six digits by zeros (123 becomes 000123)
1423"RTN","C0CRXNLK",166,0)
1424 N IEN S IEN=$O(^C0CRXN(176.001,"STC","NDDF","IN",BASE,"")) Q ^(IEN)
1425"RTN","C0CRXNLK",167,0)
1426 ;
1427"RTN","C0CRXNLK",168,0)
1428FDI2RXNT ; @TEST - Test Get RxNorm CUI for FDB Ingredient/Base
1429"RTN","C0CRXNLK",169,0)
1430 Q:'$D(^C0CRXN(176.001,"STC","NDDF"))
1431"RTN","C0CRXNLK",170,0)
1432 D CHKEQ^XTMUNIT($$FDI2RXN(14739),1362160,"$$FDI2RXN failed")
1433"RTN","C0CRXNLK",171,0)
1434 QUIT
1435"RTN","C0CRXNLK",172,0)
1436 ;
1437"RTN","C0CRXNLK",173,0)
1438 ;
1439"RTN","C0CRXNLK",174,0)
1440 ;
1441"RTN","C0CRXNLK",175,0)
1442RXN2VIN(RXNCUI) ; $$ Public - Get VUID Ingredient for RxNorm CUI
1443"RTN","C0CRXNLK",176,0)
1444 ; ^C0CRXN(176.001,"STX","VANDF","IN",1366467,1008555)=4031768
1445"RTN","C0CRXNLK",177,0)
1446 ; Input: RXNCUI By Value
1447"RTN","C0CRXNLK",178,0)
1448 ; Output: VUID
1449"RTN","C0CRXNLK",179,0)
1450 N IEN S IEN=$O(^C0CRXN(176.001,"STX","VANDF","IN",RXNCUI,"")) Q ^(IEN)
1451"RTN","C0CRXNLK",180,0)
1452 ;
1453"RTN","C0CRXNLK",181,0)
1454RXN2VINT ; @TEST - Test Get VUID Ingredient for RxNorm CUI
1455"RTN","C0CRXNLK",182,0)
1456 D CHKEQ^XTMUNIT($$RXN2VIN(1366467),4031768,"$$RXN2VIN failed")
1457"RTN","C0CRXNLK",183,0)
1458 QUIT
1459"RTN","C0CRXNLK",184,0)
1460 ;
1461"RTN","C0CRXNLK",185,0)
1462 ;
1463"RTN","C0CRXNLK",186,0)
1464 ;
1465"RTN","C0CRXNLK",187,0)
1466VIN2VAG(VUID) ; $$ Public - Get VA Generic for VUID Ingredient
1467"RTN","C0CRXNLK",188,0)
1468 ; Input: VUID By Value
1469"RTN","C0CRXNLK",189,0)
1470 ; Output: IEN^VA Generic Name (i.e. .01 field value)
1471"RTN","C0CRXNLK",190,0)
1472 N C0PIEN S C0PIEN=$$FIND1^DIC(50.6,"","QX",VUID,"AVUID")
1473"RTN","C0CRXNLK",191,0)
1474 N C0P01 S C0P01=$$GET1^DIQ(50.6,C0PIEN,.01)
1475"RTN","C0CRXNLK",192,0)
1476 Q C0PIEN_"^"_C0P01
1477"RTN","C0CRXNLK",193,0)
1478 ;
1479"RTN","C0CRXNLK",194,0)
1480VIN2VAGT ; @TEST - Test Get VA Generic for VUID Ingredient
1481"RTN","C0CRXNLK",195,0)
1482 D CHKEQ^XTMUNIT(+$$VIN2VAG(4023636),2832,"$$VIN2VAG failed")
1483"RTN","C0CRXNLK",196,0)
1484 QUIT
1485"RTN","C0CRXNLK",197,0)
1486 ;
1487"RTN","C0CRXNLK",198,0)
1488 ;
1489"RTN","C0CRXNLK",199,0)
1490 ;
1491"RTN","C0CRXNLK",200,0)
1492FDI2VAG(BASE) ; $$ Public - Get VA Generic for FDB Ingredient/Base
1493"RTN","C0CRXNLK",201,0)
1494 ; TODO:Not tested...
1495"RTN","C0CRXNLK",202,0)
1496 ; Input: BASE By Value
1497"RTN","C0CRXNLK",203,0)
1498 ; Output: IEN^VA Generic Name (i.e. .01 field value)
1499"RTN","C0CRXNLK",204,0)
1500 Q $$VIN2VAG($$RXN2VIN($$FDI2RXN(BASE)))
1501"RTN","C0CRXNLK",205,0)
1502 ;
1503"RTN","C0CRXNLK",206,0)
1504VIN2DIN(VUID) ; $$ Public - Get Drug Ingredient for VUID Ingredient
1505"RTN","C0CRXNLK",207,0)
1506 ; TODO:Not tested...
1507"RTN","C0CRXNLK",208,0)
1508 ; Input: VUID By Value
1509"RTN","C0CRXNLK",209,0)
1510 ; Output: IEN^Drug Ingredient Name (i.e. .01 field value)
1511"RTN","C0CRXNLK",210,0)
1512 N C0PIEN S C0PIEN=$$FIND1^DIC(50.416,"","QX",VUID,"AVUID")
1513"RTN","C0CRXNLK",211,0)
1514 N C0P01 S C0P01=$$GET1^DIQ(50.416,C0PIEN,.01)
1515"RTN","C0CRXNLK",212,0)
1516 Q C0PIEN_"^"_C0P01
1517"RTN","C0CRXNLK",213,0)
1518 ;
1519"RTN","C0CRXNLK",214,0)
1520FDI2DIN(BASE) ; $$ Public - Get Drug Ingredient for FDB Ingredient/Base
1521"RTN","C0CRXNLK",215,0)
1522 ; TODO:Not tested...
1523"RTN","C0CRXNLK",216,0)
1524 ; Input: BASE By Value
1525"RTN","C0CRXNLK",217,0)
1526 ; Output: IEN^Drug Ingredient Name (i.e. .01 field value)
1527"RTN","C0CRXNLK",218,0)
1528 Q $$VIN2DIN($$RXN2VIN($$FDI2RXN(BASE)))
1529"RTN","C0CRXNLK",219,0)
1530 ;
1531"RTN","C0CRXNLK",220,0)
1532VUI2RXN(VUID) ; $$ Public - Get RXNCUI for VUID (any VUID type)
1533"RTN","C0CRXNLK",221,0)
1534 ; Input: VUID By Value
1535"RTN","C0CRXNLK",222,0)
1536 ; Output: RXNCUIs delimited by ^
1537"RTN","C0CRXNLK",223,0)
1538 ; Get all entries whose code is the VUID and are in the VA NDF which are clinical drugs
1539"RTN","C0CRXNLK",224,0)
1540 D FIND^DIC(176.001,,"@;.01","PQX",VUID,,"CODE","I $P(^(0),U,12,13)=""VANDF^CD""")
1541"RTN","C0CRXNLK",225,0)
1542 ; Deserialise it into a single string
1543"RTN","C0CRXNLK",226,0)
1544 ; ^TMP("DILIST",4844,0)="1^*^0^"
1545"RTN","C0CRXNLK",227,0)
1546 ; ^TMP("DILIST",4844,0,"MAP")="IEN^.01"
1547"RTN","C0CRXNLK",228,0)
1548 ; ^TMP("DILIST",4844,1,0)="1006351^1364462"
1549"RTN","C0CRXNLK",229,0)
1550 N RXNS S RXNS=""
1551"RTN","C0CRXNLK",230,0)
1552 N I F I=0:0 S I=$O(^TMP("DILIST",$J,I)) Q:'I S RXNS=RXNS_$P(^(I,0),U,2)_U
1553"RTN","C0CRXNLK",231,0)
1554 S RXNS=$E(RXNS,1,$L(RXNS)-1)
1555"RTN","C0CRXNLK",232,0)
1556 QUIT RXNS
1557"RTN","C0CRXNLK",233,0)
1558 ;
1559"RTN","C0CRXNLK",234,0)
1560VUI2GCN(VUID) ; $$ Public - Get GCNs for a given VUID (any VUID type)
1561"RTN","C0CRXNLK",235,0)
1562 ; Input: VUID by Value
1563"RTN","C0CRXNLK",236,0)
1564 ; Output: GCNs delimited by ^
1565"RTN","C0CRXNLK",237,0)
1566 ; TODO: Unit Test
1567"RTN","C0CRXNLK",238,0)
1568 N RXNS S RXNS=$$VUI2RXN(VUID)
1569"RTN","C0CRXNLK",239,0)
1570 N GCNS S GCNS=""
1571"RTN","C0CRXNLK",240,0)
1572 N I F I=1:1:$L(RXNS,U) S GCNS=GCNS_$$RXN2GCN($P(RXNS,U,I))_U
1573"RTN","C0CRXNLK",241,0)
1574 S GCNS=$E(GCNS,1,$L(GCNS)-1)
1575"RTN","C0CRXNLK",242,0)
1576 QUIT GCNS
1577"RTN","C0CRXNLK",243,0)
1578 ;
1579"RTN","C0CRXNLK",244,0)
1580MED2RXN(DA) ; $$ Public - Get RxNorm CUI for Drug
1581"RTN","C0CRXNLK",245,0)
1582 ; Input: DA - Medication IEN
1583"RTN","C0CRXNLK",246,0)
1584 ; Output: RXNCUIs delimited by ^
1585"RTN","C0CRXNLK",247,0)
1586 N ND S ND=$G(^PSDRUG(DA,"ND")) ; ND Node
1587"RTN","C0CRXNLK",248,0)
1588 N VAP S VAP=$P(ND,U,3) ; VA Product Pointer
1589"RTN","C0CRXNLK",249,0)
1590 Q:'VAP "" ; quit if empty
1591"RTN","C0CRXNLK",250,0)
1592 N VUID S VUID=+^PSNDF(50.68,VAP,"VUID") ; Get VUID
1593"RTN","C0CRXNLK",251,0)
1594 I 'VUID S $EC=",U1," ; Must exist
1595"RTN","C0CRXNLK",252,0)
1596 Q $$VUI2RXN(VUID)
1597"RTN","C0CRXNLK",253,0)
1598 ;
1599"RTN","C0CRXNLK",254,0)
1600MED2SCDN(DA) ; $$ Public - Medication to Semantic Clinical Drug Name
1601"RTN","C0CRXNLK",255,0)
1602 ; Input: DA - Medication IEN
1603"RTN","C0CRXNLK",256,0)
1604 ; Output: The Canonical Semantic Clinical Drug name
1605"RTN","C0CRXNLK",257,0)
1606 N RXNCUI S RXNCUI=$$MED2RXN(DA)
1607"RTN","C0CRXNLK",258,0)
1608 Q:'RXNCUI ""
1609"RTN","C0CRXNLK",259,0)
1610 N IEN S IEN=$O(^C0CRXN(176.001,"STC","RXNORM","SCD",RXNCUI,"")) ; Let's try generic drug
1611"RTN","C0CRXNLK",260,0)
1612 I 'IEN S IEN=$O(^C0CRXN(176.001,"STC","RXNORM","SBD",RXNCUI,"")) ; Let's try non-bioequivalent Brands then
1613"RTN","C0CRXNLK",261,0)
1614 I 'IEN S IEN=$O(^C0CRXN(176.001,"STC","RXNORM","GPCK",RXNCUI,"")) ; Let's try a Generic combination package
1615"RTN","C0CRXNLK",262,0)
1616 I 'IEN S IEN=$O(^C0CRXN(176.001,"STC","RXNORM","SCDF",RXNCUI,"")) ; Let's try a Clinical Drug and Form (Like Metamucil)
1617"RTN","C0CRXNLK",263,0)
1618 Q:'IEN "" ; Apparently not every VUID has a corresponding RXNCUI SCD.
1619"RTN","C0CRXNLK",264,0)
1620 Q $P(^C0CRXN(176.001,IEN,0),U,15)
1621"RTN","C0CRXNLK",265,0)
1622 ;
1623"RTN","C0CRXNLK",266,0)
1624RXN2NDI(RXNCUI) ; $$ Public - Get NDDF Ingredient for RXNCUI
1625"RTN","C0CRXNLK",267,0)
1626 ; Input: RXNCUI By Value
1627"RTN","C0CRXNLK",268,0)
1628 ; Output: NDDF Base code
1629"RTN","C0CRXNLK",269,0)
1630 ; TODO:Not tested...
1631"RTN","C0CRXNLK",270,0)
1632 N IEN S IEN=$O(^C0CRXN(176.001,"STX","NDDF","IN",RXNCUI,"")) Q ^(IEN)
1633"RTN","C0CRXNLK",271,0)
1634 ;
1635"RTN","C0CRXNLK",272,0)
1636VIN2NDI(VUID) ; $$ Public - Get NDDF Ingredient for VUID
1637"RTN","C0CRXNLK",273,0)
1638 ; NB: WILL ONLY WORK IF VUID IS AN INGREDIENT VUID, NOT A CLINICAL DRUG
1639"RTN","C0CRXNLK",274,0)
1640 ; Input: VUID By Value
1641"RTN","C0CRXNLK",275,0)
1642 ; Output: NDDF Base code
1643"RTN","C0CRXNLK",276,0)
1644 ; TODO:Not tested...
1645"RTN","C0CRXNLK",277,0)
1646 Q $$RXN2NDI($$VUI2RXN(VUID))
1647"RTN","C0CRXNLK",278,0)
1648 ;
1649"RTN","C0CRXNLK",279,0)
1650 ; ---
1651"RTN","C0CRXNLK",280,0)
1652 ;
1653"RTN","C0CRXNLK",281,0)
1654NDC2RXN(NDC) ; $$ Public - Get RxCUI given the NDC
1655"RTN","C0CRXNLK",282,0)
1656 ; NB: Will only work if passed NDC is in 5-4-2 format.
1657"RTN","C0CRXNLK",283,0)
1658 ; Input: NDC By Value in 5-4-2 Format
1659"RTN","C0CRXNLK",284,0)
1660 ; Output: RxNorm Code.
1661"RTN","C0CRXNLK",285,0)
1662 S NDC=$TR(NDC,"-")
1663"RTN","C0CRXNLK",286,0)
1664 N IEN S IEN=$O(^C0CRXN(176.002,"ASAA","RXNORM","NDC",NDC,"")) Q ^(IEN)
1665"RTN","C0CRXNLK",287,0)
1666 ;
1667"RTN","C0CRXNLK",288,0)
1668NDC2RXNT ; @TEST - Test Get RxCUI given the NDC
1669"RTN","C0CRXNLK",289,0)
1670 D CHKEQ^XTMUNIT($$NDC2RXN("30142-0917-71"),198439,"$$NDC2RXN failed")
1671"RTN","C0CRXNLK",290,0)
1672 QUIT
1673"RTN","C0CRXNLK",291,0)
1674 ;
1675"RTN","C0CRXNLK",292,0)
1676 ; ---
1677"RTN","C0CRXNLK",293,0)
1678 ;
1679"RTN","C0CRXNLK",294,0)
1680ISBRAND(RXN) ; $$ Public - Is this RxCUI for a brand drug?
1681"RTN","C0CRXNLK",295,0)
1682 ; Input: RxCUI
1683"RTN","C0CRXNLK",296,0)
1684 ; Output: 0 or 1
1685"RTN","C0CRXNLK",297,0)
1686 Q ''$D(^C0CRXN(176.001,"STC","RXNORM","SBD",RXN))
1687"RTN","C0CRXNLK",298,0)
1688ISBRANDT ; @TEST - Test Is this RxCUI for a brand drug?
1689"RTN","C0CRXNLK",299,0)
1690 D CHKEQ^XTMUNIT($$ISBRAND(205535),1,"$$ISBRAND failed") ; Brand Prozac
1691"RTN","C0CRXNLK",300,0)
1692 D CHKEQ^XTMUNIT($$ISBRAND(310384),0,"$$ISBRAND failed") ; Generic Fluoxetine
1693"RTN","C0CRXNLK",301,0)
1694 QUIT
1695"RTN","C0CRXNLK",302,0)
1696 ;
1697"RTN","C0CRXNLK",303,0)
1698 ; ---
1699"RTN","C0CRXNLK",304,0)
1700 ;
1701"RTN","C0CRXNLK",305,0)
1702BR2GEN(RXN) ; $$ Public - Convert Brand RxCUI to Generic RxCUI (many to 1)
1703"RTN","C0CRXNLK",306,0)
1704 ; Input: RxCUI of Brand
1705"RTN","C0CRXNLK",307,0)
1706 ; Output: RxCUI of Generic
1707"RTN","C0CRXNLK",308,0)
1708 Q $O(^C0CRXN(176.005,"B",RXN,"has_tradename",""))
1709"RTN","C0CRXNLK",309,0)
1710BR2GENT ; @TEST - Test Convert Brand RxCUI to Generic RxCUI (many to 1)
1711"RTN","C0CRXNLK",310,0)
1712 D CHKEQ^XTMUNIT($$BR2GEN(205535),310384,"$$BR2GEN failed")
1713"RTN","C0CRXNLK",311,0)
1714 QUIT
1715"RTN","C0CRXNLK",312,0)
1716 ;
1717"RTN","C0CRXNLK",313,0)
1718 ; ---
1719"RTN","C0CRXNLK",314,0)
1720 ;
1721"RTN","C0CRXNLK",315,0)
1722GEN2BR(RXN) ; $$ Public - Convert Generic RxCUI to Brand RxCUIs (1 to many).
1723"RTN","C0CRXNLK",316,0)
1724 N RTN S RTN="" ; Return
1725"RTN","C0CRXNLK",317,0)
1726 N I S I="" F S I=$O(^C0CRXN(176.005,"B",RXN,"tradename_of",I)) Q:'I S RTN=RTN_I_U
1727"RTN","C0CRXNLK",318,0)
1728 S RTN=$E(RTN,1,$L(RTN)-1)
1729"RTN","C0CRXNLK",319,0)
1730 Q RTN
1731"RTN","C0CRXNLK",320,0)
1732 ;
1733"RTN","C0CRXNLK",321,0)
1734GEN2BRT ; @TEST - Test Convert Generic RxCUI to Brand RxCUIs (1 to many).
1735"RTN","C0CRXNLK",322,0)
1736 D CHKTF^XTMUNIT($$GEN2BR(310384)[205535,"$$GEN2BR failed")
1737"RTN","C0CRXNLK",323,0)
1738 QUIT
1739"RTN","C0CRXNLK",324,0)
1740 ;
1741"RTN","C0CRXNLK",325,0)
1742 ; ---
1743"RTN","C0CRXNLK",326,0)
1744 ;
1745"RTN","C0CRXNLK",327,0)
1746RXN2BNS(RXN) ; $$ Public - Get all Brand Names associated with an RXN
1747"RTN","C0CRXNLK",328,0)
1748 N BNS S BNS=""
1749"RTN","C0CRXNLK",329,0)
1750 I $$ISBRAND(RXN) S RXN=$$BR2GEN(RXN)
1751"RTN","C0CRXNLK",330,0)
1752 N ALLBN S ALLBN=$$GEN2BR(RXN)
1753"RTN","C0CRXNLK",331,0)
1754 Q:ALLBN="" ""
1755"RTN","C0CRXNLK",332,0)
1756 N BNNO F BNNO=1:1:$L(ALLBN,U) D
1757"RTN","C0CRXNLK",333,0)
1758 . N EACHBN S EACHBN=$P(ALLBN,U,BNNO)
1759"RTN","C0CRXNLK",334,0)
1760 . N BNRXCUI S BNRXCUI=$O(^C0CRXN(176.005,"B",EACHBN,"ingredient_of",""))
1761"RTN","C0CRXNLK",335,0)
1762 . Q:BNRXCUI=""
1763"RTN","C0CRXNLK",336,0)
1764 . N BNIEN S BNIEN=$O(^C0CRXN(176.001,"B",BNRXCUI,""))
1765"RTN","C0CRXNLK",337,0)
1766 . S BNS=BNS_$P(^C0CRXN(176.001,BNIEN,0),U,15)_U
1767"RTN","C0CRXNLK",338,0)
1768 QUIT $E(BNS,1,$L(BNS)-1)
1769"RTN","C0CRXNLK",339,0)
1770RXN2BNST ; @TEST - Test Get all Brand Names associated with an RXN
1771"RTN","C0CRXNLK",340,0)
1772 D CHKTF^XTMUNIT($$RXN2BNS(205535)["Prozac","$$RXN2BNS failed")
1773"RTN","C0CRXNLK",341,0)
1774 QUIT
1775"RTN","C0CRXNLK",342,0)
1776 ;
1777"RTN","C0CRXNLK",343,0)
1778 ; ---
1779"RTN","C0CRXNLK",344,0)
1780 ;
1781"RTN","C0CRXNLK",345,0)
1782RXN2NDC(RXN) ; Get NDC codes for RxNorm code
1783"RTN","C0CRXNLK",346,0)
1784 N NDCS S NDCS=""
1785"RTN","C0CRXNLK",347,0)
1786 N I F I=0:0 S I=$O(^C0CRXN(176.002,"ASAR","RXNORM","NDC",RXN,I)) Q:'I S NDCS=NDCS_^(I)_"^"
1787"RTN","C0CRXNLK",348,0)
1788 S $E(NDCS,$L(NDCS))=""
1789"RTN","C0CRXNLK",349,0)
1790 QUIT NDCS
1791"RTN","C0CRXNLK",350,0)
1792RXN2NDCT ; @TEST - Test Get NDC codes for RxNorm code
1793"RTN","C0CRXNLK",351,0)
1794 D CHKTF^XTMUNIT($$RXN2NDC(197379)["^"_16714003309,"$$RXN2NDC failed")
1795"RTN","C0CRXNLK",352,0)
1796 QUIT
1797"RTN","C0CRXNRD")
17980^1^B42158088
1799"RTN","C0CRXNRD",1,0)
1800C0CRXNRD ; VEN/SMH - RxNorm Utilities: Routine to Read RxNorm files;2013-11-14 1:23 PM
1801"RTN","C0CRXNRD",2,0)
1802 ;;2.2;RXNORM FOR VISTA;;Nov 14, 2013;Build 10
1803"RTN","C0CRXNRD",3,0)
1804 ; (C) Sam Habiel 2013
1805"RTN","C0CRXNRD",4,0)
1806 ; See license for terms of use.
1807"RTN","C0CRXNRD",5,0)
1808 ;
1809"RTN","C0CRXNRD",6,0)
1810 W "No entry from top" Q
1811"RTN","C0CRXNRD",7,0)
1812IMPORT(PATH,RESTRICTED) ; PUBLIC ENTRY POINT. Rest are private
1813"RTN","C0CRXNRD",8,0)
1814 I PATH="" QUIT
1815"RTN","C0CRXNRD",9,0)
1816 S RESTRICTED=$G(RESTRICTED,0)
1817"RTN","C0CRXNRD",10,0)
1818 S U="^"
1819"RTN","C0CRXNRD",11,0)
1820 N STARTTIME S STARTTIME=$P($H,",")*24*60*60+$P($H,",",2)
1821"RTN","C0CRXNRD",12,0)
1822 N SABS
1823"RTN","C0CRXNRD",13,0)
1824 D SAB(PATH,.SABS) ; Load restriction values into SAB. ; 176.006
1825"RTN","C0CRXNRD",14,0)
1826 D CONSO(PATH,.SABS,RESTRICTED),SAT(PATH,.SABS,RESTRICTED) ; 176.001,176.002
1827"RTN","C0CRXNRD",15,0)
1828 D STY(PATH),REL(PATH),DOC(PATH) ; 176.003-5
1829"RTN","C0CRXNRD",16,0)
1830 N ENDTIME S ENDTIME=$P($H,",")*24*60*60+$P($H,",",2)
1831"RTN","C0CRXNRD",17,0)
1832 W !,(ENDTIME-STARTTIME)/60_" minutes elapsed"
1833"RTN","C0CRXNRD",18,0)
1834 QUIT
1835"RTN","C0CRXNRD",19,0)
1836 ;
1837"RTN","C0CRXNRD",20,0)
1838 ; Everything is private from down on...
1839"RTN","C0CRXNRD",21,0)
1840DELFILED(FN) ; Delete file data; PEP procedure; only for RxNorm files
1841"RTN","C0CRXNRD",22,0)
1842 ; FN is Filenumber passed by Value
1843"RTN","C0CRXNRD",23,0)
1844 QUIT:$E(FN,1,3)'=176 ; Quit if not RxNorm files
1845"RTN","C0CRXNRD",24,0)
1846 N ROOT S ROOT=$$ROOT^DILFD(FN,"",1) ; global root
1847"RTN","C0CRXNRD",25,0)
1848 N ZERO S ZERO=@ROOT@(0) ; Save zero node
1849"RTN","C0CRXNRD",26,0)
1850 S $P(ZERO,U,3,9999)="" ; Remove entry # and last edited
1851"RTN","C0CRXNRD",27,0)
1852 K @ROOT ; Kill the file -- so sad!
1853"RTN","C0CRXNRD",28,0)
1854 S @ROOT@(0)=ZERO ; It riseth again!
1855"RTN","C0CRXNRD",29,0)
1856 QUIT
1857"RTN","C0CRXNRD",30,0)
1858GETLINES(PATH,FILENAME) ; Get number of lines in a file
1859"RTN","C0CRXNRD",31,0)
1860 N POP
1861"RTN","C0CRXNRD",32,0)
1862 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
1863"RTN","C0CRXNRD",33,0)
1864 Q:POP
1865"RTN","C0CRXNRD",34,0)
1866 U IO
1867"RTN","C0CRXNRD",35,0)
1868 N I,LINE
1869"RTN","C0CRXNRD",36,0)
1870 F I=1:1 R LINE:0 Q:$$STATUS^%ZISH
1871"RTN","C0CRXNRD",37,0)
1872 D CLOSE^%ZISH("FILE")
1873"RTN","C0CRXNRD",38,0)
1874 Q I-1
1875"RTN","C0CRXNRD",39,0)
1876CONSO(PATH,SABS,RESTRICTED) ; Open and read concepts file: RXNCONSO.RRF
1877"RTN","C0CRXNRD",40,0)
1878 ; PATH ByVal, path of RxNorm files
1879"RTN","C0CRXNRD",41,0)
1880 ; SABS ByRef, arrays of SABS(SAB)=restriction level
1881"RTN","C0CRXNRD",42,0)
1882 ; RESTRICTED ByVal, include restricted sources. 1 for yes, 0 for no
1883"RTN","C0CRXNRD",43,0)
1884 I PATH="" QUIT
1885"RTN","C0CRXNRD",44,0)
1886 N FILENAME S FILENAME="RXNCONSO.RRF"
1887"RTN","C0CRXNRD",45,0)
1888 D DELFILED(176.001) ; delete data
1889"RTN","C0CRXNRD",46,0)
1890 N LINES S LINES=$$GETLINES(PATH,FILENAME)
1891"RTN","C0CRXNRD",47,0)
1892 N POP
1893"RTN","C0CRXNRD",48,0)
1894 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
1895"RTN","C0CRXNRD",49,0)
1896 IF POP D EN^DDIOL("Error reading file..., Please check...") G EX
1897"RTN","C0CRXNRD",50,0)
1898 N C0CCOUNT
1899"RTN","C0CRXNRD",51,0)
1900 F C0CCOUNT=1:1 D Q:$$STATUS^%ZISH
1901"RTN","C0CRXNRD",52,0)
1902 . U IO
1903"RTN","C0CRXNRD",53,0)
1904 . N LINE R LINE:0
1905"RTN","C0CRXNRD",54,0)
1906 . IF $$STATUS^%ZISH QUIT
1907"RTN","C0CRXNRD",55,0)
1908 . I '(C0CCOUNT#1000) U $P W C0CCOUNT," of ",LINES," read ",! U IO ; update every 1000
1909"RTN","C0CRXNRD",56,0)
1910 . ;
1911"RTN","C0CRXNRD",57,0)
1912 . ; Deal with restriction level
1913"RTN","C0CRXNRD",58,0)
1914 . N SAB S SAB=$P(LINE,"|",12)
1915"RTN","C0CRXNRD",59,0)
1916 . I 'RESTRICTED,SABS(SAB) QUIT ; If not include restricted, and SABS(SAB) is not zero, quit
1917"RTN","C0CRXNRD",60,0)
1918 . ;
1919"RTN","C0CRXNRD",61,0)
1920 . ; Save data
1921"RTN","C0CRXNRD",62,0)
1922 . S ^C0CRXN(176.001,C0CCOUNT,0)=$TR(LINE,"|^","^|")
1923"RTN","C0CRXNRD",63,0)
1924EX D CLOSE^%ZISH("FILE")
1925"RTN","C0CRXNRD",64,0)
1926 N DIK S DIK="^C0CRXN(176.001," D IXALL^DIK
1927"RTN","C0CRXNRD",65,0)
1928 QUIT
1929"RTN","C0CRXNRD",66,0)
1930 ;
1931"RTN","C0CRXNRD",67,0)
1932 ;
1933"RTN","C0CRXNRD",68,0)
1934SAT(PATH,SABS,RESTRICTED) ; Open and read Concept and Atom attributes: RXNSAT.RRF
1935"RTN","C0CRXNRD",69,0)
1936 ; PATH ByVal, path of RxNorm files
1937"RTN","C0CRXNRD",70,0)
1938 ; SABS ByRef, arrays of SABS(SAB)=restriction level
1939"RTN","C0CRXNRD",71,0)
1940 ; RESTRICTED ByVal, include restricted sources. 1 for yes, 0 for no
1941"RTN","C0CRXNRD",72,0)
1942 I PATH="" QUIT
1943"RTN","C0CRXNRD",73,0)
1944 N FILENAME S FILENAME="RXNSAT.RRF"
1945"RTN","C0CRXNRD",74,0)
1946 D DELFILED(176.002) ; delete data
1947"RTN","C0CRXNRD",75,0)
1948 N LINES S LINES=$$GETLINES(PATH,FILENAME)
1949"RTN","C0CRXNRD",76,0)
1950 N POP
1951"RTN","C0CRXNRD",77,0)
1952 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
1953"RTN","C0CRXNRD",78,0)
1954 IF POP W "Error reading file..., Please check...",! G EX2
1955"RTN","C0CRXNRD",79,0)
1956 N C0CCOUNT F C0CCOUNT=1:1 Q:$$STATUS^%ZISH D
1957"RTN","C0CRXNRD",80,0)
1958 . U IO
1959"RTN","C0CRXNRD",81,0)
1960 . N LINE R LINE:0
1961"RTN","C0CRXNRD",82,0)
1962 . IF $$STATUS^%ZISH QUIT
1963"RTN","C0CRXNRD",83,0)
1964 . I '(C0CCOUNT#1000) U $P W C0CCOUNT," of ",LINES," read ",! U IO ; update every 1000
1965"RTN","C0CRXNRD",84,0)
1966 . ;
1967"RTN","C0CRXNRD",85,0)
1968 . ; We switch around the fields .01 and .09 because the .01 isn't always present; where as .09 is required
1969"RTN","C0CRXNRD",86,0)
1970 . N RXCUI1,ATN9
1971"RTN","C0CRXNRD",87,0)
1972 . S RXCUI1=$P(LINE,"|",1)
1973"RTN","C0CRXNRD",88,0)
1974 . S ATN9=$P(LINE,"|",9)
1975"RTN","C0CRXNRD",89,0)
1976 . S $P(LINE,"|",1)=ATN9
1977"RTN","C0CRXNRD",90,0)
1978 . S $P(LINE,"|",9)=RXCUI1
1979"RTN","C0CRXNRD",91,0)
1980 . ;
1981"RTN","C0CRXNRD",92,0)
1982 . ; Deal with restricted sources
1983"RTN","C0CRXNRD",93,0)
1984 . N SAB S SAB=$P(LINE,"|",10)
1985"RTN","C0CRXNRD",94,0)
1986 . I 'RESTRICTED,SABS(SAB) QUIT ; If not include restricted, and SABS(SAB) is not zero, quit
1987"RTN","C0CRXNRD",95,0)
1988 . ;
1989"RTN","C0CRXNRD",96,0)
1990 . ; Save off
1991"RTN","C0CRXNRD",97,0)
1992 . S ^C0CRXN(176.002,C0CCOUNT,0)=$TR(LINE,"|^","^|")
1993"RTN","C0CRXNRD",98,0)
1994EX2 D CLOSE^%ZISH("FILE")
1995"RTN","C0CRXNRD",99,0)
1996 N DIK S DIK="^C0CRXN(176.002," D IXALL^DIK
1997"RTN","C0CRXNRD",100,0)
1998 QUIT
1999"RTN","C0CRXNRD",101,0)
2000 ;
2001"RTN","C0CRXNRD",102,0)
2002 ;
2003"RTN","C0CRXNRD",103,0)
2004SAB(PATH,SABS) ; Open the read RxNorm Sources file: RXNSAB.RRF
2005"RTN","C0CRXNRD",104,0)
2006 I PATH="" QUIT
2007"RTN","C0CRXNRD",105,0)
2008 N FILENAME S FILENAME="RXNSAB.RRF"
2009"RTN","C0CRXNRD",106,0)
2010 D DELFILED(176.003) ; delete data
2011"RTN","C0CRXNRD",107,0)
2012 N POP
2013"RTN","C0CRXNRD",108,0)
2014 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
2015"RTN","C0CRXNRD",109,0)
2016 IF POP W "Error reading file..., Please check...",! G EX3
2017"RTN","C0CRXNRD",110,0)
2018 N I F I=1:1 Q:$$STATUS^%ZISH D
2019"RTN","C0CRXNRD",111,0)
2020 . U IO
2021"RTN","C0CRXNRD",112,0)
2022 . N LINE R LINE:0
2023"RTN","C0CRXNRD",113,0)
2024 . IF $$STATUS^%ZISH QUIT
2025"RTN","C0CRXNRD",114,0)
2026 . U $P W I,! U IO ; Write I to the screen, then go back to reading the file
2027"RTN","C0CRXNRD",115,0)
2028 . ; Switch pieces 1 and 4 because 4 is always defined. Goes into .01 field.
2029"RTN","C0CRXNRD",116,0)
2030 . N VCUI S VCUI=$P(LINE,"|",1)
2031"RTN","C0CRXNRD",117,0)
2032 . N RSAB S RSAB=$P(LINE,"|",4)
2033"RTN","C0CRXNRD",118,0)
2034 . S $P(LINE,"|",1)=RSAB
2035"RTN","C0CRXNRD",119,0)
2036 . S $P(LINE,"|",4)=VCUI
2037"RTN","C0CRXNRD",120,0)
2038 . S ^C0CRXN(176.003,I,0)=$TR(LINE,"^|","|^")
2039"RTN","C0CRXNRD",121,0)
2040EX3 D CLOSE^%ZISH("FILE")
2041"RTN","C0CRXNRD",122,0)
2042 N DIK S DIK="^C0CRXN(176.003," D IXALL^DIK
2043"RTN","C0CRXNRD",123,0)
2044 N C0CI F C0CI=0:0 S C0CI=$O(^C0CRXN(176.003,C0CI)) Q:'C0CI D
2045"RTN","C0CRXNRD",124,0)
2046 . S SABS($$GET1^DIQ(176.003,C0CI,.01))=$$GET1^DIQ(176.003,C0CI,"SRL")
2047"RTN","C0CRXNRD",125,0)
2048 QUIT
2049"RTN","C0CRXNRD",126,0)
2050STY(PATH) ; Open and read RxNorm Semantic types file: RXNSTY.RRF
2051"RTN","C0CRXNRD",127,0)
2052 I PATH="" QUIT
2053"RTN","C0CRXNRD",128,0)
2054 N FILENAME S FILENAME="RXNSTY.RRF"
2055"RTN","C0CRXNRD",129,0)
2056 D DELFILED(176.004) ; delete data
2057"RTN","C0CRXNRD",130,0)
2058 N LINES S LINES=$$GETLINES(PATH,FILENAME) ; Get # of lines
2059"RTN","C0CRXNRD",131,0)
2060 N POP
2061"RTN","C0CRXNRD",132,0)
2062 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
2063"RTN","C0CRXNRD",133,0)
2064 IF POP W "Error reading file..., Please check...",! G EX4
2065"RTN","C0CRXNRD",134,0)
2066 N I F I=1:1 Q:$$STATUS^%ZISH D
2067"RTN","C0CRXNRD",135,0)
2068 . U IO
2069"RTN","C0CRXNRD",136,0)
2070 . N LINE R LINE:0
2071"RTN","C0CRXNRD",137,0)
2072 . IF $$STATUS^%ZISH QUIT
2073"RTN","C0CRXNRD",138,0)
2074 . I '(I#1000) U $P W I," of ",LINES," read ",! U IO ; update every 1000
2075"RTN","C0CRXNRD",139,0)
2076 . S ^C0CRXN(176.004,I,0)=$TR(LINE,"^|","|^")
2077"RTN","C0CRXNRD",140,0)
2078EX4 D CLOSE^%ZISH("FILE")
2079"RTN","C0CRXNRD",141,0)
2080 N DIK S DIK="^C0CRXN(176.004," D IXALL^DIK
2081"RTN","C0CRXNRD",142,0)
2082 QUIT
2083"RTN","C0CRXNRD",143,0)
2084 ;
2085"RTN","C0CRXNRD",144,0)
2086REL(PATH) ; Open and read RxNorm Relationships file: RXNREL.RRF
2087"RTN","C0CRXNRD",145,0)
2088 I PATH="" QUIT
2089"RTN","C0CRXNRD",146,0)
2090 N FILENAME S FILENAME="RXNREL.RRF"
2091"RTN","C0CRXNRD",147,0)
2092 D DELFILED(176.005) ; delete data
2093"RTN","C0CRXNRD",148,0)
2094 N LINES S LINES=$$GETLINES(PATH,FILENAME) ; Get # of lines
2095"RTN","C0CRXNRD",149,0)
2096 N POP
2097"RTN","C0CRXNRD",150,0)
2098 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
2099"RTN","C0CRXNRD",151,0)
2100 IF POP W "Error reading file..., Please check...",! G EX5
2101"RTN","C0CRXNRD",152,0)
2102 N I F I=1:1 Q:$$STATUS^%ZISH D
2103"RTN","C0CRXNRD",153,0)
2104 . U IO
2105"RTN","C0CRXNRD",154,0)
2106 . N LINE R LINE:0
2107"RTN","C0CRXNRD",155,0)
2108 . IF $$STATUS^%ZISH QUIT
2109"RTN","C0CRXNRD",156,0)
2110 . I '(I#1000) U $P W I," of ",LINES," read ",! U IO ; update every 1000
2111"RTN","C0CRXNRD",157,0)
2112 . ; swap RXCUI1 location with SAB b/c SAB is required so can be .01 field
2113"RTN","C0CRXNRD",158,0)
2114 . N RXCUI1 S RXCUI1=$P(LINE,"|",1)
2115"RTN","C0CRXNRD",159,0)
2116 . N SAB S SAB=$P(LINE,"|",11)
2117"RTN","C0CRXNRD",160,0)
2118 . S $P(LINE,"|",1)=SAB
2119"RTN","C0CRXNRD",161,0)
2120 . S $P(LINE,"|",11)=RXCUI1
2121"RTN","C0CRXNRD",162,0)
2122 . S ^C0CRXN(176.005,I,0)=$TR(LINE,"^|","|^")
2123"RTN","C0CRXNRD",163,0)
2124EX5 D CLOSE^%ZISH("FILE")
2125"RTN","C0CRXNRD",164,0)
2126 N DIK S DIK="^C0CRXN(176.005," D IXALL^DIK
2127"RTN","C0CRXNRD",165,0)
2128 QUIT
2129"RTN","C0CRXNRD",166,0)
2130DOC(PATH) ; Open the read RxNorm Abbreviation Documentation file: RXNDOC.RRF
2131"RTN","C0CRXNRD",167,0)
2132 I PATH="" QUIT
2133"RTN","C0CRXNRD",168,0)
2134 N FILENAME S FILENAME="RXNDOC.RRF"
2135"RTN","C0CRXNRD",169,0)
2136 D DELFILED(176.006) ; delete data
2137"RTN","C0CRXNRD",170,0)
2138 N LINES S LINES=$$GETLINES(PATH,FILENAME) ; Get # of lines
2139"RTN","C0CRXNRD",171,0)
2140 N POP
2141"RTN","C0CRXNRD",172,0)
2142 D OPEN^%ZISH("FILE",PATH,FILENAME,"R")
2143"RTN","C0CRXNRD",173,0)
2144 IF POP W "Error reading file..., Please check...",! G EX6
2145"RTN","C0CRXNRD",174,0)
2146 N I F I=1:1 Q:$$STATUS^%ZISH D
2147"RTN","C0CRXNRD",175,0)
2148 . U IO
2149"RTN","C0CRXNRD",176,0)
2150 . N LINE R LINE:0
2151"RTN","C0CRXNRD",177,0)
2152 . IF $$STATUS^%ZISH QUIT
2153"RTN","C0CRXNRD",178,0)
2154 . I '(I#1000) U $P W I," of ",LINES," read ",! U IO ; update every 1000
2155"RTN","C0CRXNRD",179,0)
2156 . S ^C0CRXN(176.006,I,0)=$TR(LINE,"^|","|^")
2157"RTN","C0CRXNRD",180,0)
2158EX6 D CLOSE^%ZISH("FILE")
2159"RTN","C0CRXNRD",181,0)
2160 N DIK S DIK="^C0CRXN(176.006," D IXALL^DIK
2161"RTN","C0CRXNRD",182,0)
2162 QUIT
2163"SEC","^DD",176.001,176.001,50,9)
2164
2165"SEC","^DIC",176.001,176.001,0,"AUDIT")
2166
2167"SEC","^DIC",176.001,176.001,0,"DD")
2168@
2169"SEC","^DIC",176.001,176.001,0,"DEL")
2170
2171"SEC","^DIC",176.001,176.001,0,"LAYGO")
2172
2173"SEC","^DIC",176.001,176.001,0,"RD")
2174
2175"SEC","^DIC",176.001,176.001,0,"WR")
2176@
2177"SEC","^DIC",176.002,176.002,0,"AUDIT")
2178@
2179"SEC","^DIC",176.002,176.002,0,"DD")
2180@
2181"SEC","^DIC",176.002,176.002,0,"DEL")
2182@
2183"SEC","^DIC",176.002,176.002,0,"LAYGO")
2184@
2185"SEC","^DIC",176.002,176.002,0,"RD")
2186
2187"SEC","^DIC",176.002,176.002,0,"WR")
2188@
2189"SEC","^DIC",176.003,176.003,0,"AUDIT")
2190@
2191"SEC","^DIC",176.003,176.003,0,"DD")
2192@
2193"SEC","^DIC",176.003,176.003,0,"DEL")
2194@
2195"SEC","^DIC",176.003,176.003,0,"LAYGO")
2196@
2197"SEC","^DIC",176.003,176.003,0,"RD")
2198
2199"SEC","^DIC",176.003,176.003,0,"WR")
2200@
2201"SEC","^DIC",176.004,176.004,0,"AUDIT")
2202@
2203"SEC","^DIC",176.004,176.004,0,"DD")
2204@
2205"SEC","^DIC",176.004,176.004,0,"DEL")
2206@
2207"SEC","^DIC",176.004,176.004,0,"LAYGO")
2208@
2209"SEC","^DIC",176.004,176.004,0,"RD")
2210
2211"SEC","^DIC",176.004,176.004,0,"WR")
2212@
2213"SEC","^DIC",176.005,176.005,0,"AUDIT")
2214@
2215"SEC","^DIC",176.005,176.005,0,"DD")
2216@
2217"SEC","^DIC",176.005,176.005,0,"DEL")
2218@
2219"SEC","^DIC",176.005,176.005,0,"LAYGO")
2220@
2221"SEC","^DIC",176.005,176.005,0,"RD")
2222
2223"SEC","^DIC",176.005,176.005,0,"WR")
2224@
2225"SEC","^DIC",176.006,176.006,0,"AUDIT")
2226@
2227"SEC","^DIC",176.006,176.006,0,"DD")
2228@
2229"SEC","^DIC",176.006,176.006,0,"DEL")
2230@
2231"SEC","^DIC",176.006,176.006,0,"LAYGO")
2232@
2233"SEC","^DIC",176.006,176.006,0,"RD")
2234
2235"SEC","^DIC",176.006,176.006,0,"WR")
2236@
2237"VER")
22388.0^22.0
2239"^DD",50,50,176.001,0)
2240RXNCUI^Cp176.001^^ ; ^S X=$$MED2RXN^C0CRXNLK(D0)
2241"^DD",50,50,176.001,.1)
2242RXNORM CUI
2243"^DD",50,50,176.001,9.01)
2244
2245"^DD",50,50,176.001,9.1)
2246S X=$$MED2RXN^C0CRXNLK(D0)
2247"^DD",50,50,176.001,"DT")
22483130708
2249"^DD",50,50,176.002,0)
2250RXN SCD NAME^CJ250^^ ; ^S X=$$MED2SCDN^C0CRXNLK(D0)
2251"^DD",50,50,176.002,9.01)
2252
2253"^DD",50,50,176.002,9.1)
2254S X=$$MED2SCDN^C0CRXNLK(D0)
2255"^DD",50,50,176.002,"DT")
22563130408
2257"^DD",50.68,50.68,176.001,0)
2258COMPUTED GCNSEQNO^CJ25^^ ; ^S X=$$VUI2GCN^C0CRXNLK(+$G(^PSNDF(50.68,D0,"VUID")))
2259"^DD",50.68,50.68,176.001,9.01)
2260
2261"^DD",50.68,50.68,176.001,9.1)
2262S X=$$VUI2GCN^C0CRXNLK(+$G(^PSNDF(50.68,D0,"VUID")))
2263"^DD",50.68,50.68,176.001,"DT")
22643130625
2265"^DD",176.001,176.001,0)
2266FIELD^^50^19
2267"^DD",176.001,176.001,0,"DIK")
2268C0CRXN1
2269"^DD",176.001,176.001,0,"DIKOLD")
2270C0CRXN1
2271"^DD",176.001,176.001,0,"DT")
22723130410
2273"^DD",176.001,176.001,0,"ID",.12)
2274W " ",$P(^(0),U,12)
2275"^DD",176.001,176.001,0,"ID",.13)
2276W " ",$P(^(0),U,13)
2277"^DD",176.001,176.001,0,"ID",.14)
2278W " ",$P(^(0),U,14)
2279"^DD",176.001,176.001,0,"ID",.15)
2280W " ",$P(^(0),U,15)
2281"^DD",176.001,176.001,0,"NM","RXNORM CONCEPT NAMES AND SOURCES")
2282
2283"^DD",176.001,176.001,.01,0)
2284RXCUI^RFJ8^^0;1^K:$L(X)>8!($L(X)<1)!'(X'?1P.E) X
2285"^DD",176.001,176.001,.01,1,0)
2286^.1^^0
2287"^DD",176.001,176.001,.01,3)
2288Answer must be 1-8 characters in length.
2289"^DD",176.001,176.001,.01,21,0)
2290^^1^1^3130225^
2291"^DD",176.001,176.001,.01,21,1,0)
2292RxNorm Unique identifier for concept (concept ID)
2293"^DD",176.001,176.001,.01,"DT")
22943130305
2295"^DD",176.001,176.001,.02,0)
2296LAT^RFJ3^^0;2^K:$L(X)>3!($L(X)<1) X
2297"^DD",176.001,176.001,.02,3)
2298Answer must be 1-3 characters in length.
2299"^DD",176.001,176.001,.02,21,0)
2300^^1^1^3130225^
2301"^DD",176.001,176.001,.02,21,1,0)
2302Language of Term
2303"^DD",176.001,176.001,.02,"DT")
23043130225
2305"^DD",176.001,176.001,.03,0)
2306TS^FJ1^^0;3^K:$L(X)>1!($L(X)<1) X
2307"^DD",176.001,176.001,.03,3)
2308Answer must be 1 character in length.
2309"^DD",176.001,176.001,.03,21,0)
2310^^1^1^3130225^
2311"^DD",176.001,176.001,.03,21,1,0)
2312Term status (no value provided)
2313"^DD",176.001,176.001,.03,"DT")
23143130225
2315"^DD",176.001,176.001,.04,0)
2316LUI^FJ8^^0;4^K:$L(X)>8!($L(X)<1) X
2317"^DD",176.001,176.001,.04,3)
2318Answer must be 1-8 characters in length.
2319"^DD",176.001,176.001,.04,21,0)
2320^^1^1^3130225^
2321"^DD",176.001,176.001,.04,21,1,0)
2322Unique identifier for term (no value provided)
2323"^DD",176.001,176.001,.04,"DT")
23243130225
2325"^DD",176.001,176.001,.05,0)
2326STT^FJ3^^0;5^K:$L(X)>3!($L(X)<1) X
2327"^DD",176.001,176.001,.05,3)
2328Answer must be 1-3 characters in length.
2329"^DD",176.001,176.001,.05,21,0)
2330^^1^1^3130225^
2331"^DD",176.001,176.001,.05,21,1,0)
2332String type (no value provided)
2333"^DD",176.001,176.001,.05,"DT")
23343130225
2335"^DD",176.001,176.001,.06,0)
2336SUI^FJ8^^0;6^K:$L(X)>8!($L(X)<1) X
2337"^DD",176.001,176.001,.06,3)
2338Answer must be 1-8 characters in length.
2339"^DD",176.001,176.001,.06,21,0)
2340^^1^1^3130225^
2341"^DD",176.001,176.001,.06,21,1,0)
2342Unique identifier for string (no value provided)
2343"^DD",176.001,176.001,.06,"DT")
23443130225
2345"^DD",176.001,176.001,.07,0)
2346ISPREF^FJ1^^0;7^K:$L(X)>1!($L(X)<1) X
2347"^DD",176.001,176.001,.07,3)
2348Answer must be 1 character in length.
2349"^DD",176.001,176.001,.07,21,0)
2350^^2^2^3130225^
2351"^DD",176.001,176.001,.07,21,1,0)
2352Atom status - preferred (Y) or not (N) for this string within this
2353"^DD",176.001,176.001,.07,21,2,0)
2354concept (no value provided)
2355"^DD",176.001,176.001,.07,"DT")
23563130225
2357"^DD",176.001,176.001,.08,0)
2358RXAUI^RFJ8^^0;8^K:$L(X)>8!($L(X)<1) X
2359"^DD",176.001,176.001,.08,3)
2360Answer must be 1-8 characters in length.
2361"^DD",176.001,176.001,.08,21,0)
2362^^1^1^3130225^
2363"^DD",176.001,176.001,.08,21,1,0)
2364Unique identifier for atom (RxNorm Atom ID)
2365"^DD",176.001,176.001,.08,"DT")
23663130225
2367"^DD",176.001,176.001,.09,0)
2368SAUI^FJ50^^0;9^K:$L(X)>50!($L(X)<1) X
2369"^DD",176.001,176.001,.09,3)
2370Answer must be 1-50 characters in length.
2371"^DD",176.001,176.001,.09,21,0)
2372^^1^1^3130225^
2373"^DD",176.001,176.001,.09,21,1,0)
2374Source asserted atom identifier [optional]
2375"^DD",176.001,176.001,.09,"DT")
23763130225
2377"^DD",176.001,176.001,.1,0)
2378SCUI^FJ50^^0;10^K:$L(X)>50!($L(X)<1) X
2379"^DD",176.001,176.001,.1,3)
2380Answer must be 1-50 characters in length.
2381"^DD",176.001,176.001,.1,21,0)
2382^^1^1^3130225^
2383"^DD",176.001,176.001,.1,21,1,0)
2384Source asserted concept identifier [optional]
2385"^DD",176.001,176.001,.1,"DT")
23863130225
2387"^DD",176.001,176.001,.11,0)
2388SDUI^FJ50^^0;11^K:$L(X)>50!($L(X)<1) X
2389"^DD",176.001,176.001,.11,3)
2390Answer must be 1-50 characters in length.
2391"^DD",176.001,176.001,.11,21,0)
2392^^1^1^3130225^
2393"^DD",176.001,176.001,.11,21,1,0)
2394Source asserted descriptor identifier [optional] (no value provided)
2395"^DD",176.001,176.001,.11,"DT")
23963130225
2397"^DD",176.001,176.001,.12,0)
2398SAB^RFJ20^^0;12^K:$L(X)>20!($L(X)<1) X
2399"^DD",176.001,176.001,.12,3)
2400Answer must be 1-20 characters in length.
2401"^DD",176.001,176.001,.12,21,0)
2402^^1^1^3130225^
2403"^DD",176.001,176.001,.12,21,1,0)
2404Source abbreviation
2405"^DD",176.001,176.001,.12,"DT")
24063130305
2407"^DD",176.001,176.001,.13,0)
2408TTY^RFJ20^^0;13^K:$L(X)>20!($L(X)<1) X
2409"^DD",176.001,176.001,.13,3)
2410Answer must be 1-20 characters in length.
2411"^DD",176.001,176.001,.13,21,0)
2412^^1^1^3130225^
2413"^DD",176.001,176.001,.13,21,1,0)
2414Term type in source
2415"^DD",176.001,176.001,.13,"DT")
24163130305
2417"^DD",176.001,176.001,.14,0)
2418CODE^RFJ50^^0;14^K:$L(X)>50!($L(X)<1) X
2419"^DD",176.001,176.001,.14,3)
2420Answer must be 1-50 characters in length.
2421"^DD",176.001,176.001,.14,21,0)
2422^^3^3^3130225^
2423"^DD",176.001,176.001,.14,21,1,0)
2424"Most useful" source asserted identifier (if the source vocabulary has
2425"^DD",176.001,176.001,.14,21,2,0)
2426more than one identifier), or a Metathesaurus-generated source entry
2427"^DD",176.001,176.001,.14,21,3,0)
2428identifier (if the source vocabulary has none.)
2429"^DD",176.001,176.001,.14,"DT")
24303130305
2431"^DD",176.001,176.001,.15,0)
2432STR^RFJ3000^^0;15^K:$L(X)>3000!($L(X)<1) X
2433"^DD",176.001,176.001,.15,1,0)
2434^.1^^0
2435"^DD",176.001,176.001,.15,3)
2436Answer must be 1-3000 characters in length.
2437"^DD",176.001,176.001,.15,21,0)
2438^^1^1^3130225^
2439"^DD",176.001,176.001,.15,21,1,0)
2440String
2441"^DD",176.001,176.001,.15,"DT")
24423130227
2443"^DD",176.001,176.001,.16,0)
2444SRL^FJ10^^0;16^K:$L(X)>10!($L(X)<1) X
2445"^DD",176.001,176.001,.16,3)
2446Answer must be 1-10 characters in length.
2447"^DD",176.001,176.001,.16,21,0)
2448^^1^1^3130225^
2449"^DD",176.001,176.001,.16,21,1,0)
2450Source Restriction Level (no value provided)
2451"^DD",176.001,176.001,.16,"DT")
24523130225
2453"^DD",176.001,176.001,.17,0)
2454SUPPRESS^FJ1^^0;17^K:$L(X)>1!($L(X)<1) X
2455"^DD",176.001,176.001,.17,3)
2456Answer must be 1 character in length.
2457"^DD",176.001,176.001,.17,21,0)
2458^^4^4^3130225^
2459"^DD",176.001,176.001,.17,21,1,0)
2460Suppressible flag. Values = N or O. N - not suppressible. O - Specific
2461"^DD",176.001,176.001,.17,21,2,0)
2462Individual names (atoms) set as Obsolete because the name is no longer
2463"^DD",176.001,176.001,.17,21,3,0)
2464provided by the original source. NLM strongly recommends that users not
2465"^DD",176.001,176.001,.17,21,4,0)
2466alter editor-assigned suppressibility.
2467"^DD",176.001,176.001,.17,"DT")
24683130225
2469"^DD",176.001,176.001,.18,0)
2470CVF^FJ50^^0;18^K:$L(X)>50!($L(X)<1) X
2471"^DD",176.001,176.001,.18,3)
2472Answer must be 1-50 characters in length.
2473"^DD",176.001,176.001,.18,21,0)
2474^^1^1^3130225^
2475"^DD",176.001,176.001,.18,21,1,0)
2476Content view flag
2477"^DD",176.001,176.001,.18,"DT")
24783130225
2479"^DD",176.001,176.001,50,0)
2480COMPUTED DRUGS^Cmp50^^ ; ^N V S V=$$RXN2MEDS^C0CRXNLK($P(^C0CRXN(176.001,D0,0),U)) Q:V="" N D F D=1:1:$L(V,U) N D0 S D0=$P(V,U,D),X=$P(^PSDRUG(D0,0),U) X DICMX Q:'$D(D)
2481"^DD",176.001,176.001,50,9.01)
2482
2483"^DD",176.001,176.001,50,9.1)
2484N V S V=$$RXN2MEDS^C0CRXNLK($P(^C0CRXN(176.001,D0,0),U)) Q:V="" N D F D=1:1:$L(V,U) N D0 S D0=$P(V,U,D),X=$P(^PSDRUG(D0,0),U) X DICMX Q:'$D(D)
2485"^DD",176.001,176.001,50,"DT")
24863130410
2487"^DD",176.002,176.002,0)
2488FIELD^^.13^13
2489"^DD",176.002,176.002,0,"DIK")
2490C0CRXN2
2491"^DD",176.002,176.002,0,"DIKOLD")
2492C0CRXN2
2493"^DD",176.002,176.002,0,"DT")
24943130301
2495"^DD",176.002,176.002,0,"ID",.1)
2496W " ",$P(^(0),U,10)
2497"^DD",176.002,176.002,0,"ID",.11)
2498W " ",$P(^(0),U,11)
2499"^DD",176.002,176.002,0,"IX","XATN",176.002,.01)
2500
2501"^DD",176.002,176.002,0,"IX","XATV",176.002,.11)
2502
2503"^DD",176.002,176.002,0,"NM","RXNORM SIMPLE CONCEPT AND ATOM ATTRIBUTES")
2504
2505"^DD",176.002,176.002,.01,0)
2506ATN^RFJ1000^^0;1^K:$L(X)>1000!($L(X)<1)!'(X'?1P.E) X
2507"^DD",176.002,176.002,.01,1,0)
2508^.1
2509"^DD",176.002,176.002,.01,1,1,0)
2510176.002^XATN
2511"^DD",176.002,176.002,.01,1,1,1)
2512S ^C0CRXN(176.002,"XATN",$E(X,1,30),DA)=""
2513"^DD",176.002,176.002,.01,1,1,2)
2514K ^C0CRXN(176.002,"XATN",$E(X,1,30),DA)
2515"^DD",176.002,176.002,.01,1,1,3)
2516ATN INDEX
2517"^DD",176.002,176.002,.01,1,1,"DT")
25183130301
2519"^DD",176.002,176.002,.01,3)
2520Answer must be 1-1000 characters in length.
2521"^DD",176.002,176.002,.01,21,0)
2522^^2^2^3130301^^
2523"^DD",176.002,176.002,.01,21,1,0)
2524Attribute name. Possible values appear in RXNDOC.RRF and are described on
2525"^DD",176.002,176.002,.01,21,2,0)
2526the UMLS Attribute Names page.
2527"^DD",176.002,176.002,.01,"DT")
25283130307
2529"^DD",176.002,176.002,.02,0)
2530LUI^FJ8^^0;2^K:$L(X)>8!($L(X)<1) X
2531"^DD",176.002,176.002,.02,3)
2532Answer must be 1-8 characters in length.
2533"^DD",176.002,176.002,.02,21,0)
2534^^1^1^3130301^^
2535"^DD",176.002,176.002,.02,21,1,0)
2536Unique identifier for term (no value provided)
2537"^DD",176.002,176.002,.02,"DT")
25383130301
2539"^DD",176.002,176.002,.03,0)
2540SUI^FJ8^^0;3^K:$L(X)>8!($L(X)<1) X
2541"^DD",176.002,176.002,.03,3)
2542Answer must be 1-8 characters in length.
2543"^DD",176.002,176.002,.03,21,0)
2544^^1^1^3130301^
2545"^DD",176.002,176.002,.03,21,1,0)
2546Unique identifier for string (no value provided)
2547"^DD",176.002,176.002,.03,"DT")
25483130301
2549"^DD",176.002,176.002,.04,0)
2550RXAUI^FJ8^^0;4^K:$L(X)>8!($L(X)<1) X
2551"^DD",176.002,176.002,.04,3)
2552Answer must be 1-8 characters in length.
2553"^DD",176.002,176.002,.04,21,0)
2554^^1^1^3130301^
2555"^DD",176.002,176.002,.04,21,1,0)
2556RxNorm atom identifier (RXAUI) or RxNorm relationship identifier (RUI).
2557"^DD",176.002,176.002,.04,"DT")
25583130301
2559"^DD",176.002,176.002,.05,0)
2560STYPE^FJ50^^0;5^K:$L(X)>50!($L(X)<1) X
2561"^DD",176.002,176.002,.05,3)
2562Answer must be 1-50 characters in length.
2563"^DD",176.002,176.002,.05,21,0)
2564^^2^2^3130301^
2565"^DD",176.002,176.002,.05,21,1,0)
2566The name of the column in RXNCONSO.RRF or RXNREL.RRF that contains the
2567"^DD",176.002,176.002,.05,21,2,0)
2568identifier to which the attribute is attached, e.g., CUI, AUI.
2569"^DD",176.002,176.002,.05,"DT")
25703130301
2571"^DD",176.002,176.002,.06,0)
2572CODE^FJ50^^0;6^K:$L(X)>50!($L(X)<1) X
2573"^DD",176.002,176.002,.06,3)
2574Answer must be 1-50 characters in length.
2575"^DD",176.002,176.002,.06,21,0)
2576^^2^2^3130301^^
2577"^DD",176.002,176.002,.06,21,1,0)
2578"Most useful" source asserted identifier (if the source vocabulary
2579"^DD",176.002,176.002,.06,21,2,0)
2580contains more than one).
2581"^DD",176.002,176.002,.06,"DT")
25823130301
2583"^DD",176.002,176.002,.07,0)
2584ATUI^FJ11^^0;7^K:$L(X)>11!($L(X)<1) X
2585"^DD",176.002,176.002,.07,3)
2586Answer must be 1-11 characters in length.
2587"^DD",176.002,176.002,.07,21,0)
2588^^1^1^3130301^
2589"^DD",176.002,176.002,.07,21,1,0)
2590Unique identifier for attribute.
2591"^DD",176.002,176.002,.07,"DT")
25923130301
2593"^DD",176.002,176.002,.08,0)
2594SATUI^FJ50^^0;8^K:$L(X)>50!($L(X)<1) X
2595"^DD",176.002,176.002,.08,3)
2596Answer must be 1-50 characters in length.
2597"^DD",176.002,176.002,.08,21,0)
2598^^1^1^3130301^
2599"^DD",176.002,176.002,.08,21,1,0)
2600Source asserted attribute identifier (optional - present if it exists).
2601"^DD",176.002,176.002,.08,"DT")
26023130301
2603"^DD",176.002,176.002,.09,0)
2604RXCUI^FJ8^^0;9^K:$L(X)>8!($L(X)<1) X
2605"^DD",176.002,176.002,.09,3)
2606Answer must be 1-8 characters in length.
2607"^DD",176.002,176.002,.09,21,0)
2608^^1^1^3130301^
2609"^DD",176.002,176.002,.09,21,1,0)
2610Unique identifier for concept (concept id).
2611"^DD",176.002,176.002,.09,"DT")
26123130307
2613"^DD",176.002,176.002,.1,0)
2614SAB^RFJ20^^0;10^K:$L(X)>20!($L(X)<1) X
2615"^DD",176.002,176.002,.1,3)
2616Answer must be 1-20 characters in length.
2617"^DD",176.002,176.002,.1,21,0)
2618^^2^2^3130301^
2619"^DD",176.002,176.002,.1,21,1,0)
2620Abbreviation of the source of the attribute. Possible values appear in
2621"^DD",176.002,176.002,.1,21,2,0)
2622RXNSAB.RRF and are listed on the UMLS Source Vocabularies page.
2623"^DD",176.002,176.002,.1,"DT")
26243130307
2625"^DD",176.002,176.002,.11,0)
2626ATV^FJ4000^^0;11^K:$L(X)>4000!($L(X)<1) X
2627"^DD",176.002,176.002,.11,1,0)
2628^.1
2629"^DD",176.002,176.002,.11,1,1,0)
2630176.002^XATV
2631"^DD",176.002,176.002,.11,1,1,1)
2632S ^C0CRXN(176.002,"XATV",$E(X,1,30),DA)=""
2633"^DD",176.002,176.002,.11,1,1,2)
2634K ^C0CRXN(176.002,"XATV",$E(X,1,30),DA)
2635"^DD",176.002,176.002,.11,1,1,3)
2636ATV INDEX
2637"^DD",176.002,176.002,.11,1,1,"DT")
26383130301
2639"^DD",176.002,176.002,.11,3)
2640Answer must be 1-4000 characters in length.
2641"^DD",176.002,176.002,.11,21,0)
2642^^4^4^3130301^
2643"^DD",176.002,176.002,.11,21,1,0)
2644Attribute value described under specific attribute name on the UMLS
2645"^DD",176.002,176.002,.11,21,2,0)
2646Attribute Names page. A few attribute values exceed 1,000 characters.
2647"^DD",176.002,176.002,.11,21,3,0)
2648Many of the abbreviations used in attribute values are explained in
2649"^DD",176.002,176.002,.11,21,4,0)
2650RXNDOC.RRF and included UMLS Abbreviations Used in Data Elements page.
2651"^DD",176.002,176.002,.11,"DT")
26523130307
2653"^DD",176.002,176.002,.12,0)
2654SUPPRESS^FJ1^^0;12^K:$L(X)>1!($L(X)<1) X
2655"^DD",176.002,176.002,.12,3)
2656Answer must be 1 character in length.
2657"^DD",176.002,176.002,.12,21,0)
2658^^3^3^3130301^
2659"^DD",176.002,176.002,.12,21,1,0)
2660Suppressible flag. Values = O, Y, or N. Reflects the suppressible status
2661"^DD",176.002,176.002,.12,21,2,0)
2662of the attribute. N - Attribute is not suppressed. O - Attribute is
2663"^DD",176.002,176.002,.12,21,3,0)
2664suppressed at source level. Y - Attribute is suppressed by RxNorm editors.
2665"^DD",176.002,176.002,.12,"DT")
26663130301
2667"^DD",176.002,176.002,.13,0)
2668CVF^FJ50^^0;13^K:$L(X)>50!($L(X)<1) X
2669"^DD",176.002,176.002,.13,3)
2670Answer must be 1-50 characters in length.
2671"^DD",176.002,176.002,.13,21,0)
2672^^1^1^3130301^
2673"^DD",176.002,176.002,.13,21,1,0)
2674Content view flag
2675"^DD",176.002,176.002,.13,"DT")
26763130301
2677"^DD",176.003,176.003,0)
2678FIELD^^.25^25
2679"^DD",176.003,176.003,0,"DT")
26803130301
2681"^DD",176.003,176.003,0,"ID",.05)
2682W " ",$P(^(0),U,5)
2683"^DD",176.003,176.003,0,"ID",.14)
2684W " ",$P(^(0),U,14)
2685"^DD",176.003,176.003,0,"IX","B",176.003,.01)
2686
2687"^DD",176.003,176.003,0,"NM","RXNORM SOURCE INFORMATION")
2688
2689"^DD",176.003,176.003,.01,0)
2690RSAB^RFJ20^^0;1^K:$L(X)>20!($L(X)<1)!'(X'?1P.E) X
2691"^DD",176.003,176.003,.01,.1)
2692ROOT SOURCE ABBREVIATION
2693"^DD",176.003,176.003,.01,1,0)
2694^.1
2695"^DD",176.003,176.003,.01,1,1,0)
2696176.003^B
2697"^DD",176.003,176.003,.01,1,1,1)
2698S ^C0CRXN(176.003,"B",$E(X,1,30),DA)=""
2699"^DD",176.003,176.003,.01,1,1,2)
2700K ^C0CRXN(176.003,"B",$E(X,1,30),DA)
2701"^DD",176.003,176.003,.01,3)
2702Answer must be 1-20 characters in length.
2703"^DD",176.003,176.003,.01,21,0)
2704^^1^1^3130301^
2705"^DD",176.003,176.003,.01,21,1,0)
2706The root source abbreviation, for a source e.g. NDDF
2707"^DD",176.003,176.003,.01,"DT")
27083130301
2709"^DD",176.003,176.003,.02,0)
2710RCUI^FJ8^^0;2^K:$L(X)>8!($L(X)<1) X
2711"^DD",176.003,176.003,.02,.1)
2712ROOT CUI
2713"^DD",176.003,176.003,.02,3)
2714Answer must be 1-8 characters in length.
2715"^DD",176.003,176.003,.02,21,0)
2716^^1^1^3130301^
2717"^DD",176.003,176.003,.02,21,1,0)
2718CUI of the root SRC concept for a source
2719"^DD",176.003,176.003,.02,"DT")
27203130301
2721"^DD",176.003,176.003,.03,0)
2722VSAB^FJ40^^0;3^K:$L(X)>40!($L(X)<1) X
2723"^DD",176.003,176.003,.03,.1)
2724VERSIONED SOURCE ABBREVIATION
2725"^DD",176.003,176.003,.03,3)
2726Answer must be 1-20 characters in length.
2727"^DD",176.003,176.003,.03,21,0)
2728^^1^1^3130301^
2729"^DD",176.003,176.003,.03,21,1,0)
2730The versioned source abbreviation for a source, e.g., NDDF_2004_11_03
2731"^DD",176.003,176.003,.03,"DT")
27323130301
2733"^DD",176.003,176.003,.04,0)
2734VCUI^FJ8^^0;4^K:$L(X)>8!($L(X)<1) X
2735"^DD",176.003,176.003,.04,.1)
2736CUI
2737"^DD",176.003,176.003,.04,3)
2738Answer must be 1-8 characters in length.
2739"^DD",176.003,176.003,.04,21,0)
2740^^1^1^3130301^
2741"^DD",176.003,176.003,.04,21,1,0)
2742CUI of the versioned SRC concept for a source
2743"^DD",176.003,176.003,.04,"DT")
27443130301
2745"^DD",176.003,176.003,.05,0)
2746SON^FJ3000^^0;5^K:$L(X)>3000!($L(X)<1) X
2747"^DD",176.003,176.003,.05,.1)
2748OFFICIAL NAME
2749"^DD",176.003,176.003,.05,3)
2750Answer must be 1-3000 characters in length.
2751"^DD",176.003,176.003,.05,21,0)
2752^^1^1^3130301^^
2753"^DD",176.003,176.003,.05,21,1,0)
2754The official name for a source
2755"^DD",176.003,176.003,.05,"DT")
27563130301
2757"^DD",176.003,176.003,.06,0)
2758SF^FJ20^^0;6^K:$L(X)>20!($L(X)<1) X
2759"^DD",176.003,176.003,.06,.1)
2760SOURCE FAMILY
2761"^DD",176.003,176.003,.06,3)
2762Answer must be 1-20 characters in length.
2763"^DD",176.003,176.003,.06,21,0)
2764^^1^1^3130301^
2765"^DD",176.003,176.003,.06,21,1,0)
2766The Source Family for a source
2767"^DD",176.003,176.003,.06,"DT")
27683130301
2769"^DD",176.003,176.003,.07,0)
2770SVER^FJ20^^0;7^K:$L(X)>20!($L(X)<1) X
2771"^DD",176.003,176.003,.07,.1)
2772VERSION
2773"^DD",176.003,176.003,.07,3)
2774Answer must be 1-20 characters in length.
2775"^DD",176.003,176.003,.07,21,0)
2776^^1^1^3130301^
2777"^DD",176.003,176.003,.07,21,1,0)
2778The source version, e.g., 2001
2779"^DD",176.003,176.003,.07,"DT")
27803130301
2781"^DD",176.003,176.003,.08,0)
2782VSTART^FJ10^^0;8^K:$L(X)>10!($L(X)<1) X
2783"^DD",176.003,176.003,.08,.1)
2784META START DATE
2785"^DD",176.003,176.003,.08,3)
2786Answer must be 1-10 characters in length.
2787"^DD",176.003,176.003,.08,21,0)
2788^^1^1^3130301^
2789"^DD",176.003,176.003,.08,21,1,0)
2790The date a source became active, e.g., 2001_04_03
2791"^DD",176.003,176.003,.08,"DT")
27923130301
2793"^DD",176.003,176.003,.09,0)
2794VEND^FJ10^^0;9^K:$L(X)>10!($L(X)<1) X
2795"^DD",176.003,176.003,.09,.1)
2796META END DATE
2797"^DD",176.003,176.003,.09,3)
2798Answer must be 1-10 characters in length.
2799"^DD",176.003,176.003,.09,21,0)
2800^^1^1^3130301^
2801"^DD",176.003,176.003,.09,21,1,0)
2802The date a source ceased to be active, e.g., 2001_05_10
2803"^DD",176.003,176.003,.09,"DT")
28043130301
2805"^DD",176.003,176.003,.1,0)
2806IMETA^FJ10^^0;10^K:$L(X)>10!($L(X)<1) X
2807"^DD",176.003,176.003,.1,.1)
2808META INSERT VERSION
2809"^DD",176.003,176.003,.1,3)
2810Answer must be 1-10 characters in length.
2811"^DD",176.003,176.003,.1,21,0)
2812^^1^1^3130301^^
2813"^DD",176.003,176.003,.1,21,1,0)
2814The version of the Metathesaurus a source first appeared, e.g., 2001AB
2815"^DD",176.003,176.003,.1,"DT")
28163130301
2817"^DD",176.003,176.003,.11,0)
2818RMETA^FJ10^^0;11^K:$L(X)>10!($L(X)<1) X
2819"^DD",176.003,176.003,.11,.1)
2820META REMOVE VERSION
2821"^DD",176.003,176.003,.11,3)
2822Answer must be 1-10 characters in length.
2823"^DD",176.003,176.003,.11,21,0)
2824^^1^1^3130301^
2825"^DD",176.003,176.003,.11,21,1,0)
2826The version of the Metathesaurus a source was removed, e.g., 2001AC
2827"^DD",176.003,176.003,.11,"DT")
28283130301
2829"^DD",176.003,176.003,.12,0)
2830SLC^FJ1000^^0;12^K:$L(X)>1000!($L(X)<1) X
2831"^DD",176.003,176.003,.12,.1)
2832SOURCE LICENSE CONTACT
2833"^DD",176.003,176.003,.12,3)
2834Answer must be 1-1000 characters in length.
2835"^DD",176.003,176.003,.12,21,0)
2836^^4^4^3130301^
2837"^DD",176.003,176.003,.12,21,1,0)
2838The source license contact information. A semi-colon separated list
2839"^DD",176.003,176.003,.12,21,2,0)
2840containing the following fields: Name; Title; Organization; Address 1;
2841"^DD",176.003,176.003,.12,21,3,0)
2842Address 2; City; State or Province; Country; Zip or Postal Code;
2843"^DD",176.003,176.003,.12,21,4,0)
2844Telephone; Contact Fax; Email; URL
2845"^DD",176.003,176.003,.12,"DT")
28463130301
2847"^DD",176.003,176.003,.13,0)
2848SCC^FJ1000^^0;13^K:$L(X)>1000!($L(X)<1) X
2849"^DD",176.003,176.003,.13,.1)
2850SOURCE CONTENT CONTACT
2851"^DD",176.003,176.003,.13,3)
2852Answer must be 1-1000 characters in length.
2853"^DD",176.003,176.003,.13,21,0)
2854^^4^4^3130301^
2855"^DD",176.003,176.003,.13,21,1,0)
2856The source content contact information. A semi-colon separated list
2857"^DD",176.003,176.003,.13,21,2,0)
2858containing the following fields: Name; Title; Organization; Address 1;
2859"^DD",176.003,176.003,.13,21,3,0)
2860Address 2; City; State or Province; Country; Zip or Postal Code;
2861"^DD",176.003,176.003,.13,21,4,0)
2862Telephone; Contact Fax; Email; URL
2863"^DD",176.003,176.003,.13,"DT")
28643130301
2865"^DD",176.003,176.003,.14,0)
2866SRL^NJ10,0^^0;14^K:+X'=X!(X>9999999999)!(X<0)!(X?.E1"."1N.N) X
2867"^DD",176.003,176.003,.14,.1)
2868SOURCE RESTRICTION LEVEL
2869"^DD",176.003,176.003,.14,3)
2870Type a number between 0 and 9999999999, 0 decimal digits.
2871"^DD",176.003,176.003,.14,21,0)
2872^^1^1^3130301^
2873"^DD",176.003,176.003,.14,21,1,0)
28740,1,2,3,4 - explained in the License Agreement.
2875"^DD",176.003,176.003,.14,"DT")
28763130301
2877"^DD",176.003,176.003,.15,0)
2878TFR^NJ10,0^^0;15^K:+X'=X!(X>9999999999)!(X<0)!(X?.E1"."1N.N) X
2879"^DD",176.003,176.003,.15,.1)
2880TERM FREQUENCY
2881"^DD",176.003,176.003,.15,3)
2882Type a number between 0 and 9999999999, 0 decimal digits.
2883"^DD",176.003,176.003,.15,21,0)
2884^^2^2^3130301^
2885"^DD",176.003,176.003,.15,21,1,0)
2886The number of terms for this source in RXNCONSO.RRF, e.g., 12343 (not
2887"^DD",176.003,176.003,.15,21,2,0)
2888implemented yet)
2889"^DD",176.003,176.003,.15,"DT")
28903130301
2891"^DD",176.003,176.003,.16,0)
2892CFR^NJ10,0^^0;16^K:+X'=X!(X>9999999999)!(X<0)!(X?.E1"."1N.N) X
2893"^DD",176.003,176.003,.16,.1)
2894CUI FREQUENCY
2895"^DD",176.003,176.003,.16,3)
2896Type a number between 0 and 9999999999, 0 decimal digits.
2897"^DD",176.003,176.003,.16,21,0)
2898^^2^2^3130301^
2899"^DD",176.003,176.003,.16,21,1,0)
2900The number of CUIs associated with this source, e.g., 10234 (not
2901"^DD",176.003,176.003,.16,21,2,0)
2902implemented yet)
2903"^DD",176.003,176.003,.16,"DT")
29043130301
2905"^DD",176.003,176.003,.17,0)
2906CXTY^FJ50^^0;17^K:$L(X)>50!($L(X)<1) X
2907"^DD",176.003,176.003,.17,.1)
2908CONTEXT TYPE
2909"^DD",176.003,176.003,.17,3)
2910Answer must be 1-50 characters in length.
2911"^DD",176.003,176.003,.17,21,0)
2912^^1^1^3130301^
2913"^DD",176.003,176.003,.17,21,1,0)
2914The type of relationship label (Section 2.4.2 of UMLS Reference Manual)
2915"^DD",176.003,176.003,.17,"DT")
29163130301
2917"^DD",176.003,176.003,.18,0)
2918TTYL^FJ300^^0;18^K:$L(X)>300!($L(X)<1) X
2919"^DD",176.003,176.003,.18,.1)
2920TERM TYPE LIST
2921"^DD",176.003,176.003,.18,3)
2922Answer must be 1-300 characters in length.
2923"^DD",176.003,176.003,.18,21,0)
2924^^1^1^3130301^
2925"^DD",176.003,176.003,.18,21,1,0)
2926Term type list from source, e.g., MH,EN,PM,TQ
2927"^DD",176.003,176.003,.18,"DT")
29283130301
2929"^DD",176.003,176.003,.19,0)
2930ATNL^FJ1000^^0;19^K:$L(X)>1000!($L(X)<1) X
2931"^DD",176.003,176.003,.19,.1)
2932ATTRIBUTE NAME LIST
2933"^DD",176.003,176.003,.19,3)
2934Answer must be 1-1000 characters in length.
2935"^DD",176.003,176.003,.19,21,0)
2936^^1^1^3130301^
2937"^DD",176.003,176.003,.19,21,1,0)
2938The attribute name list, e.g., MUI,RN,TH,...
2939"^DD",176.003,176.003,.19,"DT")
29403130301
2941"^DD",176.003,176.003,.2,0)
2942LAT^FJ3^^0;20^K:$L(X)>3!($L(X)<1) X
2943"^DD",176.003,176.003,.2,.1)
2944LANGUAGE
2945"^DD",176.003,176.003,.2,3)
2946Answer must be 1-3 characters in length.
2947"^DD",176.003,176.003,.2,21,0)
2948^^1^1^3130301^
2949"^DD",176.003,176.003,.2,21,1,0)
2950The language of the terms in the source
2951"^DD",176.003,176.003,.2,"DT")
29523130301
2953"^DD",176.003,176.003,.21,0)
2954CENC^FJ20^^0;21^K:$L(X)>20!($L(X)<1) X
2955"^DD",176.003,176.003,.21,.1)
2956CHARACTER ENCODING
2957"^DD",176.003,176.003,.21,3)
2958Answer must be 1-20 characters in length.
2959"^DD",176.003,176.003,.21,21,0)
2960^^2^2^3130301^
2961"^DD",176.003,176.003,.21,21,1,0)
2962Character set as specified by the IANA official names for character
2963"^DD",176.003,176.003,.21,21,2,0)
2964assignments http://www.iana.org/assignments/character-sets
2965"^DD",176.003,176.003,.21,"DT")
29663130301
2967"^DD",176.003,176.003,.22,0)
2968CURVER^FJ1^^0;22^K:$L(X)>1!($L(X)<1) X
2969"^DD",176.003,176.003,.22,.1)
2970CURRENT VERSION
2971"^DD",176.003,176.003,.22,3)
2972Answer must be 1 character in length.
2973"^DD",176.003,176.003,.22,21,0)
2974^^2^2^3130301^
2975"^DD",176.003,176.003,.22,21,1,0)
2976A Y or N flag indicating whether or not this row corresponds to the
2977"^DD",176.003,176.003,.22,21,2,0)
2978current version of the named source
2979"^DD",176.003,176.003,.22,"DT")
29803130301
2981"^DD",176.003,176.003,.23,0)
2982SABIN^FJ1^^0;23^K:$L(X)>1!($L(X)<1) X
2983"^DD",176.003,176.003,.23,.1)
2984SOURCE IN SUBSET
2985"^DD",176.003,176.003,.23,3)
2986Answer must be 1 character in length.
2987"^DD",176.003,176.003,.23,21,0)
2988^^3^3^3130301^
2989"^DD",176.003,176.003,.23,21,1,0)
2990A Y or N flag indicating whether or not this row is represented in the
2991"^DD",176.003,176.003,.23,21,2,0)
2992current MetamorphoSys subset. Initially always Y where CURVER is Y, but
2993"^DD",176.003,176.003,.23,21,3,0)
2994later is recomputed by MetamorphoSys.
2995"^DD",176.003,176.003,.23,"DT")
29963130301
2997"^DD",176.003,176.003,.24,0)
2998SSN^FJ3000^^0;24^K:$L(X)>3000!($L(X)<1) X
2999"^DD",176.003,176.003,.24,.1)
3000SOURCE SHORT NAME
3001"^DD",176.003,176.003,.24,3)
3002Answer must be 1-3000 characters in length.
3003"^DD",176.003,176.003,.24,21,0)
3004^^1^1^3130301^
3005"^DD",176.003,176.003,.24,21,1,0)
3006The short name of a source as used by the NLM Knowledge Source Server.
3007"^DD",176.003,176.003,.24,"DT")
30083130301
3009"^DD",176.003,176.003,.25,0)
3010SCIT^FJ4000^^0;25^K:$L(X)>4000!($L(X)<1) X
3011"^DD",176.003,176.003,.25,.1)
3012SOURCE CITATION
3013"^DD",176.003,176.003,.25,3)
3014Answer must be 1-4000 characters in length.
3015"^DD",176.003,176.003,.25,21,0)
3016^^6^6^3130301^
3017"^DD",176.003,176.003,.25,21,1,0)
3018Citation information for a source. A semi-colon separated list containing
3019"^DD",176.003,176.003,.25,21,2,0)
3020the following fields: Author(s); Author(s) address; Author(s)
3021"^DD",176.003,176.003,.25,21,3,0)
3022organization; Editor(s); Title; Content Designator; Medium Designator;
3023"^DD",176.003,176.003,.25,21,4,0)
3024Edition; Place of Publication; Publisher; Date of Publication/copyright;
3025"^DD",176.003,176.003,.25,21,5,0)
3026Date of revision; Location; Extent; Series; Availability Statement (URL);
3027"^DD",176.003,176.003,.25,21,6,0)
3028Language; Notes
3029"^DD",176.003,176.003,.25,"DT")
30303130301
3031"^DD",176.004,176.004,0)
3032FIELD^^.06^6
3033"^DD",176.004,176.004,0,"DIK")
3034C0CRXN4
3035"^DD",176.004,176.004,0,"DIKOLD")
3036C0CRXN4
3037"^DD",176.004,176.004,0,"DT")
30383130301
3039"^DD",176.004,176.004,0,"ID",.02)
3040W " ",$P(^(0),U,2)
3041"^DD",176.004,176.004,0,"ID",.03)
3042W " ",$P(^(0),U,3)
3043"^DD",176.004,176.004,0,"ID",.04)
3044W " ",$P(^(0),U,4)
3045"^DD",176.004,176.004,0,"IX","B",176.004,.01)
3046
3047"^DD",176.004,176.004,0,"NM","RXNORM SEMANTIC TYPES")
3048
3049"^DD",176.004,176.004,.01,0)
3050RXNCUI^RFJ8^^0;1^K:$L(X)>8!($L(X)<1)!'(X'?1P.E) X
3051"^DD",176.004,176.004,.01,1,0)
3052^.1
3053"^DD",176.004,176.004,.01,1,1,0)
3054176.004^B
3055"^DD",176.004,176.004,.01,1,1,1)
3056S ^C0CRXN(176.004,"B",$E(X,1,30),DA)=""
3057"^DD",176.004,176.004,.01,1,1,2)
3058K ^C0CRXN(176.004,"B",$E(X,1,30),DA)
3059"^DD",176.004,176.004,.01,3)
3060Answer must be 1-8 characters in length.
3061"^DD",176.004,176.004,.01,21,0)
3062^^1^1^3130301^
3063"^DD",176.004,176.004,.01,21,1,0)
3064Unique identifier of concept (concept id)
3065"^DD",176.004,176.004,.01,"DT")
30663130301
3067"^DD",176.004,176.004,.02,0)
3068TUI^FJ4^^0;2^K:$L(X)>4!($L(X)<1) X
3069"^DD",176.004,176.004,.02,3)
3070Answer must be 1-4 characters in length.
3071"^DD",176.004,176.004,.02,21,0)
3072^^1^1^3130301^
3073"^DD",176.004,176.004,.02,21,1,0)
3074Unique identifier of Semantic Type
3075"^DD",176.004,176.004,.02,"DT")
30763130301
3077"^DD",176.004,176.004,.03,0)
3078STN^FJ100^^0;3^K:$L(X)>100!($L(X)<1) X
3079"^DD",176.004,176.004,.03,3)
3080Answer must be 1-100 characters in length.
3081"^DD",176.004,176.004,.03,21,0)
3082^^1^1^3130301^
3083"^DD",176.004,176.004,.03,21,1,0)
3084Semantic Type tree number
3085"^DD",176.004,176.004,.03,"DT")
30863130301
3087"^DD",176.004,176.004,.04,0)
3088STY^FJ50^^0;4^K:$L(X)>50!($L(X)<1) X
3089"^DD",176.004,176.004,.04,3)
3090Answer must be 1-50 characters in length.
3091"^DD",176.004,176.004,.04,21,0)
3092^^1^1^3130301^
3093"^DD",176.004,176.004,.04,21,1,0)
3094Semantic Type. The valid values are defined in the Semantic Network.
3095"^DD",176.004,176.004,.04,"DT")
30963130301
3097"^DD",176.004,176.004,.05,0)
3098ATUI^FJ11^^0;5^K:$L(X)>11!($L(X)<1) X
3099"^DD",176.004,176.004,.05,3)
3100Answer must be 1-11 characters in length.
3101"^DD",176.004,176.004,.05,21,0)
3102^^1^1^3130301^
3103"^DD",176.004,176.004,.05,21,1,0)
3104Unique identifier for attribute
3105"^DD",176.004,176.004,.05,"DT")
31063130301
3107"^DD",176.004,176.004,.06,0)
3108CVF^FJ50^^0;6^K:$L(X)>50!($L(X)<1) X
3109"^DD",176.004,176.004,.06,3)
3110Answer must be 1-50 characters in length.
3111"^DD",176.004,176.004,.06,21,0)
3112^^1^1^3130301^
3113"^DD",176.004,176.004,.06,21,1,0)
3114Content view flag
3115"^DD",176.004,176.004,.06,"DT")
31163130301
3117"^DD",176.005,176.005,0)
3118FIELD^^.16^16
3119"^DD",176.005,176.005,0,"DIK")
3120C0CRXN5
3121"^DD",176.005,176.005,0,"DIKOLD")
3122C0CRXN5
3123"^DD",176.005,176.005,0,"DT")
31243130301
3125"^DD",176.005,176.005,0,"NM","RXNORM RELATED CONCEPTS")
3126
3127"^DD",176.005,176.005,.01,0)
3128SAB^RFJ20^^0;1^K:$L(X)>20!($L(X)<1)!'(X'?1P.E) X
3129"^DD",176.005,176.005,.01,1,0)
3130^.1^^0
3131"^DD",176.005,176.005,.01,3)
3132Answer must be 1-20 characters in length.
3133"^DD",176.005,176.005,.01,21,0)
3134^^1^1^3130301^
3135"^DD",176.005,176.005,.01,21,1,0)
3136Abbreviation of the source of relationship
3137"^DD",176.005,176.005,.01,"DT")
31383130301
3139"^DD",176.005,176.005,.02,0)
3140RXAUI1^FJ8^^0;2^K:$L(X)>8!($L(X)<1) X
3141"^DD",176.005,176.005,.02,3)
3142Answer must be 1-8 characters in length.
3143"^DD",176.005,176.005,.02,21,0)
3144^^1^1^3130301^
3145"^DD",176.005,176.005,.02,21,1,0)
3146Unique identifier for first atom
3147"^DD",176.005,176.005,.02,"DT")
31483130301
3149"^DD",176.005,176.005,.03,0)
3150STYPE1^FJ50^^0;3^K:$L(X)>50!($L(X)<1) X
3151"^DD",176.005,176.005,.03,3)
3152Answer must be 1-50 characters in length.
3153"^DD",176.005,176.005,.03,21,0)
3154^^3^3^3130301^
3155"^DD",176.005,176.005,.03,21,1,0)
3156The name of the column in RXNCONSO.RRF that contains the identifier used
3157"^DD",176.005,176.005,.03,21,2,0)
3158for the first concept or first atom in source of the relationship (e.g.,
3159"^DD",176.005,176.005,.03,21,3,0)
3160'AUI' or 'CUI').
3161"^DD",176.005,176.005,.03,"DT")
31623130301
3163"^DD",176.005,176.005,.04,0)
3164REL^FJ4^^0;4^K:$L(X)>4!($L(X)<1) X
3165"^DD",176.005,176.005,.04,3)
3166Answer must be 1-4 characters in length.
3167"^DD",176.005,176.005,.04,21,0)
3168^^1^1^3130301^
3169"^DD",176.005,176.005,.04,21,1,0)
3170Relationship of second concept or atom to first concept or atom
3171"^DD",176.005,176.005,.04,"DT")
31723130301
3173"^DD",176.005,176.005,.05,0)
3174RXCUI2^FJ8^^0;5^K:$L(X)>8!($L(X)<1) X
3175"^DD",176.005,176.005,.05,3)
3176Answer must be 1-8 characters in length.
3177"^DD",176.005,176.005,.05,21,0)
3178^^1^1^3130301^
3179"^DD",176.005,176.005,.05,21,1,0)
3180Unique identifier of second concept
3181"^DD",176.005,176.005,.05,"DT")
31823130301
3183"^DD",176.005,176.005,.06,0)
3184RXAUI2^FJ8^^0;6^K:$L(X)>8!($L(X)<1) X
3185"^DD",176.005,176.005,.06,3)
3186Answer must be 1-8 characters in length.
3187"^DD",176.005,176.005,.06,21,0)
3188^^1^1^3130301^
3189"^DD",176.005,176.005,.06,21,1,0)
3190Unique identifier for second atom
3191"^DD",176.005,176.005,.06,"DT")
31923130301
3193"^DD",176.005,176.005,.07,0)
3194STYPE2^FJ50^^0;7^K:$L(X)>50!($L(X)<1) X
3195"^DD",176.005,176.005,.07,3)
3196Answer must be 1-50 characters in length.
3197"^DD",176.005,176.005,.07,21,0)
3198^^3^3^3130301^
3199"^DD",176.005,176.005,.07,21,1,0)
3200The name of the column in RXNCONSO.RRF that contains the identifier used
3201"^DD",176.005,176.005,.07,21,2,0)
3202for the second concept or second atom in the source of the relationship
3203"^DD",176.005,176.005,.07,21,3,0)
3204(e.g., 'AUI' or 'CUI').
3205"^DD",176.005,176.005,.07,"DT")
32063130301
3207"^DD",176.005,176.005,.08,0)
3208RELA^FJ100^^0;8^K:$L(X)>100!($L(X)<1) X
3209"^DD",176.005,176.005,.08,3)
3210Answer must be 1-100 characters in length.
3211"^DD",176.005,176.005,.08,21,0)
3212^^1^1^3130301^
3213"^DD",176.005,176.005,.08,21,1,0)
3214Additional (more specific) relationship label (optional)
3215"^DD",176.005,176.005,.08,"DT")
32163130301
3217"^DD",176.005,176.005,.09,0)
3218RUI^FJ10^^0;9^K:$L(X)>10!($L(X)<1) X
3219"^DD",176.005,176.005,.09,3)
3220Answer must be 1-10 characters in length.
3221"^DD",176.005,176.005,.09,21,0)
3222^^1^1^3130301^^
3223"^DD",176.005,176.005,.09,21,1,0)
3224Unique identifier for relationship
3225"^DD",176.005,176.005,.09,"DT")
32263130301
3227"^DD",176.005,176.005,.1,0)
3228SRUI^FJ50^^0;10^K:$L(X)>50!($L(X)<1) X
3229"^DD",176.005,176.005,.1,3)
3230Answer must be 1-50 characters in length.
3231"^DD",176.005,176.005,.1,21,0)
3232^^1^1^3130301^
3233"^DD",176.005,176.005,.1,21,1,0)
3234Source asserted relationship identifier, if present (no value provided)
3235"^DD",176.005,176.005,.1,"DT")
32363130301
3237"^DD",176.005,176.005,.11,0)
3238RXCUI1^FJ8^^0;11^K:$L(X)>8!($L(X)<1) X
3239"^DD",176.005,176.005,.11,3)
3240Answer must be 1-8 characters in length.
3241"^DD",176.005,176.005,.11,21,0)
3242^^1^1^3130301^
3243"^DD",176.005,176.005,.11,21,1,0)
3244Unique identifier of first concept
3245"^DD",176.005,176.005,.11,"DT")
32463130301
3247"^DD",176.005,176.005,.12,0)
3248SL^FJ1000^^0;12^K:$L(X)>1000!($L(X)<1) X
3249"^DD",176.005,176.005,.12,3)
3250Answer must be 1-1000 characters in length.
3251"^DD",176.005,176.005,.12,21,0)
3252^^1^1^3130301^
3253"^DD",176.005,176.005,.12,21,1,0)
3254Source of relationship labels (no value provided)
3255"^DD",176.005,176.005,.12,"DT")
32563130301
3257"^DD",176.005,176.005,.13,0)
3258DIR^FJ1^^0;13^K:$L(X)>1!($L(X)<1) X
3259"^DD",176.005,176.005,.13,3)
3260Answer must be 1 character in length.
3261"^DD",176.005,176.005,.13,21,0)
3262^^4^4^3130301^
3263"^DD",176.005,176.005,.13,21,1,0)
3264Source asserted directionality flag. (no value provided) Y indicates that
3265"^DD",176.005,176.005,.13,21,2,0)
3266this is the direction of the relationship in its source; N indicates that
3267"^DD",176.005,176.005,.13,21,3,0)
3268it is not; a blank indicates that it is not important or has not yet been
3269"^DD",176.005,176.005,.13,21,4,0)
3270determined.
3271"^DD",176.005,176.005,.13,"DT")
32723130301
3273"^DD",176.005,176.005,.14,0)
3274RG^FJ10^^0;14^K:$L(X)>10!($L(X)<1) X
3275"^DD",176.005,176.005,.14,3)
3276Answer must be 1-10 characters in length.
3277"^DD",176.005,176.005,.14,21,0)
3278^^1^1^3130301^
3279"^DD",176.005,176.005,.14,21,1,0)
3280Machine generated and unverified indicator (optional)
3281"^DD",176.005,176.005,.14,"DT")
32823130301
3283"^DD",176.005,176.005,.15,0)
3284SUPPRESS^FJ1^^0;15^K:$L(X)>1!($L(X)<1) X
3285"^DD",176.005,176.005,.15,3)
3286Answer must be 1 character in length.
3287"^DD",176.005,176.005,.15,21,0)
3288^^3^3^3130301^
3289"^DD",176.005,176.005,.15,21,1,0)
3290Suppressible flag. Values = Y, E, or N. Reflects the suppressible status
3291"^DD",176.005,176.005,.15,21,2,0)
3292of the relationship; not yet in use. See also SUPPRESS in MRCONSO.RRF and
3293"^DD",176.005,176.005,.15,21,3,0)
3294MRDEF.RRF and MRREL.RRF in the UMLS Reference Manual.
3295"^DD",176.005,176.005,.15,"DT")
32963130301
3297"^DD",176.005,176.005,.16,0)
3298CVF^FJ50^^0;16^K:$L(X)>50!($L(X)<1) X
3299"^DD",176.005,176.005,.16,3)
3300Answer must be 1-50 characters in length.
3301"^DD",176.005,176.005,.16,21,0)
3302^^1^1^3130301^
3303"^DD",176.005,176.005,.16,21,1,0)
3304Content view flag
3305"^DD",176.005,176.005,.16,"DT")
33063130301
3307"^DD",176.006,176.006,0)
3308FIELD^^.04^4
3309"^DD",176.006,176.006,0,"DT")
33103130301
3311"^DD",176.006,176.006,0,"ID",.02)
3312W " ",$P(^(0),U,2)
3313"^DD",176.006,176.006,0,"ID",.03)
3314W " ",$P(^(0),U,3)
3315"^DD",176.006,176.006,0,"ID",.04)
3316W " ",$P(^(0),U,4)
3317"^DD",176.006,176.006,0,"IX","B",176.006,.01)
3318
3319"^DD",176.006,176.006,0,"NM","RXNORM DOCUMENTATION FOR ABBREVIATED VALUES")
3320
3321"^DD",176.006,176.006,.01,0)
3322DOCKEY^RFJ50^^0;1^K:$L(X)>50!($L(X)<1)!'(X'?1P.E) X
3323"^DD",176.006,176.006,.01,1,0)
3324^.1
3325"^DD",176.006,176.006,.01,1,1,0)
3326176.006^B
3327"^DD",176.006,176.006,.01,1,1,1)
3328S ^C0CRXN(176.006,"B",$E(X,1,30),DA)=""
3329"^DD",176.006,176.006,.01,1,1,2)
3330K ^C0CRXN(176.006,"B",$E(X,1,30),DA)
3331"^DD",176.006,176.006,.01,3)
3332Answer must be 1-50 characters in length.
3333"^DD",176.006,176.006,.01,21,0)
3334^^1^1^3130301^
3335"^DD",176.006,176.006,.01,21,1,0)
3336Data element or attribute
3337"^DD",176.006,176.006,.01,"DT")
33383130301
3339"^DD",176.006,176.006,.02,0)
3340VALUE^FJ1000^^0;2^K:$L(X)>1000!($L(X)<1) X
3341"^DD",176.006,176.006,.02,3)
3342Answer must be 1-1000 characters in length.
3343"^DD",176.006,176.006,.02,21,0)
3344^^1^1^3130301^
3345"^DD",176.006,176.006,.02,21,1,0)
3346Abbreviation that is one of its values
3347"^DD",176.006,176.006,.02,"DT")
33483130301
3349"^DD",176.006,176.006,.03,0)
3350TYPE^FJ50^^0;3^K:$L(X)>50!($L(X)<1) X
3351"^DD",176.006,176.006,.03,3)
3352Answer must be 1-50 characters in length.
3353"^DD",176.006,176.006,.03,21,0)
3354^^1^1^3130301^
3355"^DD",176.006,176.006,.03,21,1,0)
3356Type of information in EXPL column
3357"^DD",176.006,176.006,.03,"DT")
33583130301
3359"^DD",176.006,176.006,.04,0)
3360EXPL^FJ1000^^0;4^K:$L(X)>1000!($L(X)<1) X
3361"^DD",176.006,176.006,.04,3)
3362Answer must be 1-1000 characters in length.
3363"^DD",176.006,176.006,.04,21,0)
3364^^1^1^3130301^
3365"^DD",176.006,176.006,.04,21,1,0)
3366Explanation of VALUE
3367"^DD",176.006,176.006,.04,"DT")
33683130301
3369"^DIC",176.001,176.001,0)
3370RXNORM CONCEPT NAMES AND SOURCES^176.001
3371"^DIC",176.001,176.001,0,"GL")
3372^C0CRXN(176.001,
3373"^DIC",176.001,176.001,"%",0)
3374^1.005^^0
3375"^DIC",176.001,176.001,"%D",0)
3376^^10^10^3130225^
3377"^DIC",176.001,176.001,"%D",1,0)
3378File = RXNCONSO.RRF
3379"^DIC",176.001,176.001,"%D",2,0)
3380
3381"^DIC",176.001,176.001,"%D",3,0)
3382This file follows the general format of the MRCONSO.RRF file of the
3383"^DIC",176.001,176.001,"%D",4,0)
3384Metathesaurus. Some of the Metathesaurus fields are not provided by
3385"^DIC",176.001,176.001,"%D",5,0)
3386RxNorm and are marked as "(no value provided)". There is exactly one row
3387"^DIC",176.001,176.001,"%D",6,0)
3388in this file for each atom (each occurrence of each unique string or
3389"^DIC",176.001,176.001,"%D",7,0)
3390concept name within each source vocabulary) in RxNorm, i.e., there is
3391"^DIC",176.001,176.001,"%D",8,0)
3392exactly one row for each unique RXAUI in RxNorm. Every string or concept
3393"^DIC",176.001,176.001,"%D",9,0)
3394name in RxNorm appears in this file, connected to its language, source
3395"^DIC",176.001,176.001,"%D",10,0)
3396vocabularies, and its concept identifier (RXCUI).
3397"^DIC",176.001,"B","RXNORM CONCEPT NAMES AND SOURCES",176.001)
3398
3399"^DIC",176.002,176.002,0)
3400RXNORM SIMPLE CONCEPT AND ATOM ATTRIBUTES^176.002
3401"^DIC",176.002,176.002,0,"GL")
3402^C0CRXN(176.002,
3403"^DIC",176.002,176.002,"%",0)
3404^1.005^^0
3405"^DIC",176.002,176.002,"%D",0)
3406^^9^9^3130301^
3407"^DIC",176.002,176.002,"%D",1,0)
3408File: RXNSAT.RRF
3409"^DIC",176.002,176.002,"%D",2,0)
3410
3411"^DIC",176.002,176.002,"%D",3,0)
3412This file follows the general format of the MRSAT.RRF file of the
3413"^DIC",176.002,176.002,"%D",4,0)
3414Metathesaurus. Some of the Metathesaurus fields are not provided by
3415"^DIC",176.002,176.002,"%D",5,0)
3416RxNorm and are marked as "(no value provided)". There is exactly one row
3417"^DIC",176.002,176.002,"%D",6,0)
3418in this table for each concept, atom, or relationship attribute that does
3419"^DIC",176.002,176.002,"%D",7,0)
3420not have a sub-element structure. Not all RxNorm concepts or RxNorm
3421"^DIC",176.002,176.002,"%D",8,0)
3422relationships have entries in this file. This file includes all source
3423"^DIC",176.002,176.002,"%D",9,0)
3424vocabulary attributes that do not fit into other categories.
3425"^DIC",176.002,"B","RXNORM SIMPLE CONCEPT AND ATOM ATTRIBUTES",176.002)
3426
3427"^DIC",176.003,176.003,0)
3428RXNORM SOURCE INFORMATION^176.003
3429"^DIC",176.003,176.003,0,"GL")
3430^C0CRXN(176.003,
3431"^DIC",176.003,176.003,"%",0)
3432^1.005^^0
3433"^DIC",176.003,176.003,"%D",0)
3434^^11^11^3130301^
3435"^DIC",176.003,176.003,"%D",1,0)
3436File RXNSAB.RRF
3437"^DIC",176.003,176.003,"%D",2,0)
3438
3439"^DIC",176.003,176.003,"%D",3,0)
3440This file contains the sources for each of the RxNorm files and their
3441"^DIC",176.003,176.003,"%D",4,0)
3442restriction levels.
3443"^DIC",176.003,176.003,"%D",5,0)
3444
3445"^DIC",176.003,176.003,"%D",6,0)
3446This file follows the general format of the MRSAB.RRF file of the
3447"^DIC",176.003,176.003,"%D",7,0)
3448Metathesaurus. Please refer to the UMLS Reference Manual for more
3449"^DIC",176.003,176.003,"%D",8,0)
3450specific information regarding this file.
3451"^DIC",176.003,176.003,"%D",9,0)
3452
3453"^DIC",176.003,176.003,"%D",10,0)
3454There is one row in this file for every source in RxNorm that is
3455"^DIC",176.003,176.003,"%D",11,0)
3456represented in this RxNorm release.
3457"^DIC",176.003,"B","RXNORM SOURCE INFORMATION",176.003)
3458
3459"^DIC",176.004,176.004,0)
3460RXNORM SEMANTIC TYPES^176.004
3461"^DIC",176.004,176.004,0,"GL")
3462^C0CRXN(176.004,
3463"^DIC",176.004,176.004,"%",0)
3464^1.005^^0
3465"^DIC",176.004,176.004,"%D",0)
3466^^7^7^3130301^
3467"^DIC",176.004,176.004,"%D",1,0)
3468File = RXNSTY.RRF
3469"^DIC",176.004,176.004,"%D",2,0)
3470
3471"^DIC",176.004,176.004,"%D",3,0)
3472This file follows the general format of the MRSTY.RRF file of the
3473"^DIC",176.004,176.004,"%D",4,0)
3474Metathesaurus. There is exactly one row in this file for each Semantic
3475"^DIC",176.004,176.004,"%D",5,0)
3476Type assigned to each concept. All RxNorm concepts have at least one
3477"^DIC",176.004,176.004,"%D",6,0)
3478entry in this file. Many have more than one entry. The TUI, STN, and STY
3479"^DIC",176.004,176.004,"%D",7,0)
3480are all direct links to the UMLS Semantic Network.
3481"^DIC",176.004,"B","RXNORM SEMANTIC TYPES",176.004)
3482
3483"^DIC",176.005,176.005,0)
3484RXNORM RELATED CONCEPTS^176.005
3485"^DIC",176.005,176.005,0,"GL")
3486^C0CRXN(176.005,
3487"^DIC",176.005,176.005,"%",0)
3488^1.005^^0
3489"^DIC",176.005,176.005,"%D",0)
3490^^15^15^3130301^
3491"^DIC",176.005,176.005,"%D",1,0)
3492File = RXNREL.RRF
3493"^DIC",176.005,176.005,"%D",2,0)
3494
3495"^DIC",176.005,176.005,"%D",3,0)
3496This file follows the general format of the MRREL.RRF file of the
3497"^DIC",176.005,176.005,"%D",4,0)
3498Metathesaurus. Some of the Metathesaurus fields are not provided by
3499"^DIC",176.005,176.005,"%D",5,0)
3500RxNorm and are marked as "(no value provided)". There is one row in this
3501"^DIC",176.005,176.005,"%D",6,0)
3502table for each relationship between concepts or atoms known to RxNorm. In
3503"^DIC",176.005,176.005,"%D",7,0)
3504addition, explicit SY RELs are provided which give the UMLS Metathesaurus
3505"^DIC",176.005,176.005,"%D",8,0)
3506CUI and AUI as the RXCUI2 and RXAUI2 fields.
3507"^DIC",176.005,176.005,"%D",9,0)
3508
3509"^DIC",176.005,176.005,"%D",10,0)
3510Note that for asymmetrical relationships there is one row for each
3511"^DIC",176.005,176.005,"%D",11,0)
3512direction of the relationship. Note also the direction of REL - the
3513"^DIC",176.005,176.005,"%D",12,0)
3514relationship which the SECOND concept or atom (with Concept Unique
3515"^DIC",176.005,176.005,"%D",13,0)
3516Identifier RXCUI2 and Atom Unique Identifier RXAUI2) HAS TO the FIRST
3517"^DIC",176.005,176.005,"%D",14,0)
3518concept or atom (with Concept Unique Identifier RXCUI1 and Atom Unique
3519"^DIC",176.005,176.005,"%D",15,0)
3520Identifier RXAUI1).
3521"^DIC",176.005,"B","RXNORM RELATED CONCEPTS",176.005)
3522
3523"^DIC",176.006,176.006,0)
3524RXNORM DOCUMENTATION FOR ABBREVIATED VALUES^176.006
3525"^DIC",176.006,176.006,0,"GL")
3526^C0CRXN(176.006,
3527"^DIC",176.006,176.006,"%",0)
3528^1.005^^0
3529"^DIC",176.006,176.006,"%D",0)
3530^^9^9^3130301^
3531"^DIC",176.006,176.006,"%D",1,0)
3532File = RXNDOC.RRF
3533"^DIC",176.006,176.006,"%D",2,0)
3534
3535"^DIC",176.006,176.006,"%D",3,0)
3536This file follows the format of the Metathesaurus MRDOC.RRF file. At this
3537"^DIC",176.006,176.006,"%D",4,0)
3538time, this file contains all of the data contained in the UMLS MRDOC.RRF
3539"^DIC",176.006,176.006,"%D",5,0)
3540file. In the future, the contents of this file may be tailored to the
3541"^DIC",176.006,176.006,"%D",6,0)
3542RxNorm subset of data only. There is exactly one row in this table for
3543"^DIC",176.006,176.006,"%D",7,0)
3544each allowed value of selected data elements or attributes that have a
3545"^DIC",176.006,176.006,"%D",8,0)
3546finite number of abbreviations as allowed values. Examples of such data
3547"^DIC",176.006,176.006,"%D",9,0)
3548elements include TTY, ATN, TS, STT, REL, RELA.
3549"^DIC",176.006,"B","RXNORM DOCUMENTATION FOR ABBREVIATED VALUES",176.006)
3550
3551**END**
3552**END**
Note: See TracBrowser for help on using the repository browser.