-
Notifications
You must be signed in to change notification settings - Fork 0
/
f5eda52b.b5187ee9.js
207 lines (196 loc) · 61.3 KB
/
f5eda52b.b5187ee9.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/*! For license information please see f5eda52b.b5187ee9.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[28,6],{125:function(e,t,a){"use strict";a.r(t),a.d(t,"useModalState",(function(){return gt})),a.d(t,"ModalPortal",(function(){return vt}));var i=a(0),n=a.n(i),r=a(36),o=a.n(r),s=a(152),d=a(313),c=a.n(d),l=a(139),u=(a(146),a(134)),m=a(120),p=a.n(m),h=a(138),f=a.n(h),_=a(196),g=a.n(_);const b=Object(l.styled)("div")`
* {
box-sizing: content-box;
}
`;var v=function(e){return n.a.createElement(b,null,e.children)},y=(a(414),a(424),a(428),a(429)),C=a(430),E=a.n(C),I=a(206),D=a.n(I);a(121);const O=Object.freeze({required:"required",conditional:"conditional",derived:"derived",optional:"optional",extended:"extended"});var T=a(89),q=a.n(T),x=a(148),S=a.n(x);const R=({children:e,onToggle:t})=>n.a.createElement("div",{className:q.a.toggleMore,onClick:()=>{t()}},e);var w=({codeList:e=[],onToggle:t,isExpanded:a})=>{const i=e.map(e=>n.a.createElement("p",{key:e,className:q.a.fieldEnumValue},e));return n.a.createElement("div",{className:q.a.codeList},i.length<=5?n.a.createElement("div",null,i):a?n.a.createElement("div",null,i,n.a.createElement(R,{onToggle:t},"Show less",n.a.createElement(S.a,{name:"chevron_up",height:"8",width:"8",fill:"#7f55cc"}))):n.a.createElement("div",null,[...i.slice(0,5)],n.a.createElement(R,{onToggle:t},i.length-5," more",n.a.createElement(S.a,{name:"chevron_down",height:"8",width:"8",fill:"#7f55cc"}))))};const M=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,N=/[^\\-]+|-|\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)/g,P=/^(\[\^?)(]?(?:[^\\\]]+|\\[\S\s]?)*)(]?)$/,A=/^(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??$/,H=0,L=1,F=2,k=3,V="Unclosed character class",U="Incomplete regex token",B="Reversed or invalid range",j="Invalid or unsupported group type",$="Unclosed grouping",Y="No matching opening parenthesis",G="Interval quantifier cannot use value over 65,535",W="Interval quantifier range is reversed",z="Quantifiers must be preceded by a token that can be repeated",Q="Empty alternative effectively truncates the regex here";function Z(e,t){return'<b class="err"'+(t?' title="'+t+'"':"")+">"+e+"</b>"}function J(e,t){return'<b class="g'+t+'">'+e+"</b>"}function X(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function K(e){if(e.length>1&&"\\"===e.charAt(0)){var t=e.slice(1);if(/^c[A-Za-z]$/.test(t))return"ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(t.charAt(1).toUpperCase())+1;if(/^(?:x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4})$/.test(t))return parseInt(t.slice(1),16);if(/^(?:[0-3][0-7]{0,2}|[4-7][0-7]?)$/.test(t))return parseInt(t,8);if(1===t.length&&"cuxDdSsWw".indexOf(t)>-1)return NaN;if(1===t.length)switch(t){case"b":return 8;case"f":return 12;case"n":return 10;case"r":return 13;case"t":return 9;case"v":return 11;default:return t.charCodeAt(0)}}return"\\"!==e?e.charCodeAt(0):NaN}function ee(e){var t,a,i="",n=P.exec(e),r={rangeable:!1,type:H};for(i+=(n={opening:n[1],content:n[2],closing:n[3]}).closing?n.opening:Z(n.opening,V);t=N.exec(n.content);)if("\\"===(a=t[0]).charAt(0))/^\\[cux]$/.test(a)?(i+=Z(a,U),r={rangeable:r.type!==L}):/^\\[dsw]$/i.test(a)?(i+="<b>"+a+"</b>",r={rangeable:r.type!==L,type:F}):"\\"===a?i+=Z(a,U):(i+="<b>"+X(a)+"</b>",r={rangeable:r.type!==L,charCode:K(a)});else if("-"===a)if(r.rangeable){var o=N.lastIndex,s=N.exec(n.content);if(s){var d=K(s[0]);!isNaN(d)&&r.charCode>d||r.type===F||/^\\[dsw]$/i.test(s[0])?i+=Z("-",B):i+="<u>-</u>",r={rangeable:!1,type:L}}else n.closing?i+="-":i+="<u>-</u>";N.lastIndex=o}else i+="-",r={rangeable:r.type!==L};else i+=X(a),r={rangeable:a.length>1||r.type!==L,charCode:a.charCodeAt(a.length-1)};return i+n.closing}var te=({regex:e})=>n.a.createElement("div",{className:"regex",dangerouslySetInnerHTML:{__html:(e=>{if("undefined"!=typeof window&&"undefined"!=typeof document){for(var t,a,i,n,r="",o=0,s=0,d=[],c={quantifiable:!1,type:H};t=M.exec(e);)if(i=(a=t[0]).charAt(0),n=a.charAt(1),"["===i)r+="<i>"+ee(a)+"</i>",c={quantifiable:!0};else if("("===i)2===a.length?r+=Z(a,j):(1===a.length&&o++,s=5===s?1:s+1,d.push({index:r.length+'<b class="gN">'.length,opening:a}),r+=J(a,s)),c={quantifiable:!1};else if(")"===i)d.length?(r+=J(")",s),c={quantifiable:!/^[=!]/.test(d[d.length-1].opening.charAt(2)),style:"g"+s},s=1===s?5:s-1,d.pop()):(r+=Z(")",Y),c={quantifiable:!1});else if("\\"===i)if(/^[1-9]/.test(n)){for(var l="",u=+a.slice(1);u>o;)l=/[0-9]$/.exec(u)[0]+l,u=Math.floor(u/10);if(u>0)r+="<b>\\"+u+"</b>"+l;else{var m=/^\\([0-3][0-7]{0,2}|[4-7][0-7]?|[89])([0-9]*)/.exec(a);r+="<b>\\"+m[1]+"</b>"+m[2]}c={quantifiable:!0}}else/^[0bBcdDfnrsStuvwWx]/.test(n)?/^\\[cux]$/.test(a)?(r+=Z(a,U),c={quantifiable:!1}):"bB".indexOf(n)>-1?(r+="<b>"+a+"</b>",c={quantifiable:!1}):(r+="<b>"+a+"</b>",c={quantifiable:!0}):"\\"===a?r+=Z(a,U):(r+=X(a),c={quantifiable:!0});else if(A.test(a)){if(c.quantifiable){var p=/^\{([0-9]+)(?:,([0-9]*))?/.exec(a);p&&(+p[1]>65535||p[2]&&+p[2]>65535)?r+=Z(a,G):p&&p[2]&&+p[1]>+p[2]?r+=Z(a,W):r+=(c.style?'<b class="'+c.style+'">':"<b>")+a+"</b>"}else r+=Z(a,z);c={quantifiable:!1}}else"|"===a?(c.type===H||c.type===k&&!d.length?r+=Z(a,Q):r+=d.length?J("|",s):"<b>|</b>",c={quantifiable:!1,type:k}):"^"===a||"$"===a?(r+="<b>"+a+"</b>",c={quantifiable:!1}):"."===a?(r+="<b>.</b>",c={quantifiable:!0}):(r+=X(a),c={quantifiable:!0});var h,f,_=0;for(f=0;f<d.length;f++)h=d[f].index+_,r=r.slice(0,h)+Z(d[f].opening,$)+r.slice(h+d[f].opening.length),_+=Z("",$).length;return r}})(e)}});var ae=({regex:e,examples:t=[]})=>n.a.createElement("div",{className:q.a.regexRestriction},n.a.createElement("div",null,"Values must meet the regular expression"),n.a.createElement(te,{regex:e}),t.length>0?n.a.createElement("div",null,n.a.createElement("br",null),n.a.createElement("div",null,"Examples:"),n.a.createElement("div",null,t.map((a,i)=>{const r=encodeURIComponent(e),o=encodeURIComponent(a);return n.a.createElement("a",{href:`http://www.regexplanet.com/advanced/xregexp/index.html?regex=${r}&input=${o}`,target:"_blank",key:i},`${a}${i<t.length-1?", ":""}`)}))):null),ie=a(253),ne=a.n(ie),re=a(1);const oe=({children:e,...t})=>n.a.createElement(f.a,Object(re.a)({variant:"data",component:"div",color:"#000"},t),e),se=({children:e,...t})=>n.a.createElement(f.a,Object(re.a)({variant:"subtitle",color:"#151c3d"},t),e);var de=a(255),ce=a.n(de),le=a(305),ue=a(220),me=a.n(ue),pe=a(122),he=a.n(pe);var fe=({codes:e})=>n.a.createElement("div",null,e.map(e=>n.a.createElement("div",{style:{marginBottom:"10px"}},n.a.createElement(le.a,Object(re.a)({},le.b,{code:e,language:"js",theme:me.a}),({className:e,style:t,tokens:a,getLineProps:i,getTokenProps:r})=>n.a.createElement("pre",{className:`${e} ${he.a.code}`,style:t},a.map((e,t)=>n.a.createElement("div",i({line:e,key:t}),e.map((e,t)=>n.a.createElement("span",r({token:e,key:t}))))))))));var _e=({field:e,scripts:t,onCloseClick:a})=>n.a.createElement(ce.a,{title:n.a.createElement(f.a,{variant:"subtitle"},"Field Script Restriction for: ",n.a.createElement("span",{style:{fontWeight:600}},e)),onCancelClick:a,onCloseClick:a,actionVisible:!1,buttonSize:"sm"},n.a.createElement(fe,{codes:t})),ge=a(167),be=a.n(ge);function ve(){var e=Object(y.a)(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n div {\n display: inline;\n :not(:first-child) {\n margin-top: 5px;\n }\n }\n"]);return ve=function(){return e},e}function ye(){var e=Object(y.a)(["\n margin-bottom: 10px;\n font-family: trade-gothic-next;\n"]);return ye=function(){return e},e}var Ce=Object(l.styled)("div")(ye()),Ee=(Object(l.styled)("div")(ve()),function(e){var t=e.name,a=ne()(t);return n.a.createElement(se,null,a," (",t,")")}),Ie=function(e){var t=e.name,a=e.description;return n.a.createElement("div",{className:q.a.fieldDescription},n.a.createElement("div",{className:q.a.name},t),n.a.createElement("div",null,a))},De=function(e){var t=e.fieldCount;return n.a.createElement(D.a,{className:q.a.tag+" "+q.a.fields,style:{marginTop:"3px"}},t+" Field"+(t>1?"s":""))},Oe=function(e){var t=e.schema,a=e.menuItem;e.isLatestSchema;if(void 0===t)return null;Object(u.a)().siteConfig.customFields.GATEWAY_API_ROOT;var r=Object(i.useMemo)((function(){return t.fields.reduce((function(e,t){return e[t.name]=!1,e}),{})}),[t]),o=Object(i.useState)(r),s=o[0],d=o[1];Object(i.useEffect)((function(){d(r)}),[t]);var c=function(e){return function(){var t;return d(Object.assign({},s,((t={})[e]=!s[e],t)))}},l=function(e){return s[e]},m=n.a.useState(null),p=m[0],h=m[1],f=function(e){var t=e.original.notes;return n.a.createElement("div",null,t&&n.a.createElement(Ce,null,t))},_=[{Header:"Field & Description",id:"fieldDescription",Cell:function(e){var t=e.original,a=t.name,i=t.description;return n.a.createElement(Ie,{name:a,description:i})},style:{whiteSpace:"normal",wordWrap:"break-word",padding:"8px"},width:200},{Header:"Type",id:"valueType",accessor:function(e){return function(e){switch(e){case"number":return"QUANTITY";case"string":return"TEXT";case"coded":return"CODE";default:return e.toUpperCase()}}(e.valueType)},style:{padding:"8px"},width:90},{Header:"Permissible Values",id:"permissibleValues",accessor:"permissible",Cell:function(e){var t=e.original,a=t.name,i=t.permissible,r=void 0===i?{}:i,o=t.examples,s=r.regex,d=void 0===s?null:s,u=r.codeList,m=void 0===u?null:u,p=o&&o.split(",");return d?n.a.createElement(ae,{regex:d,examples:p}):m?n.a.createElement(w,{codeList:m,onToggle:c(a),isExpanded:l(a)}):null},style:{whiteSpace:"normal",wordWrap:"break-word",padding:"8px"},width:150},{Header:"Notes & Mappings",Cell:f,style:{whiteSpace:"normal",wordWrap:"break-word",padding:"8px"}}],g=[{Header:"COVID-Related Patterns and Codes",id:"fieldDescription",Cell:function(e){var t=e.original,a=t.name,i=t.description;return n.a.createElement(Ie,{name:a,description:i})},style:{whiteSpace:"normal",wordWrap:"break-word",padding:"8px"}},{Header:"Code",id:"keyCode",accessor:"keyCode",Cell:function(e){var t=e.original,a=t.name,i=t.keyCode,r=void 0===i?{}:i,o=(t.examples,r.regex),s=void 0===o?null:o,d=r.codeList,u=void 0===d?null:d;return s?n.a.createElement(ae,{regex:s,examples:examplesplit}):u?n.a.createElement(w,{codeList:u,onToggle:c(a),isExpanded:l(a)}):null},style:{whiteSpace:"normal",wordWrap:"break-word",padding:"8px"}},{Header:"Result Codes or Units",id:"permissibleValues",accessor:"permissible",Cell:function(e){var t=e.original,a=t.name,i=t.permissible,r=void 0===i?{}:i,o=t.examples,s=r.regex,d=void 0===s?null:s,u=r.codeList,m=void 0===u?null:u,p=o&&o.split(",");return d?n.a.createElement(ae,{regex:d,examples:p}):m?n.a.createElement(w,{codeList:m,onToggle:c(a),isExpanded:l(a)}):null},style:{whiteSpace:"normal",wordWrap:"break-word",padding:"8px"}},{Header:"Notes & Mappings",Cell:f,style:{whiteSpace:"normal",wordWrap:"break-word",padding:"8px"}}],b=n.a.createRef();return n.a.createElement("div",{ref:a.contentRef,"data-menu-title":a.name,className:q.a.schema},p&&n.a.createElement(vt,null,n.a.createElement(_e,{field:p.fieldName,scripts:p.content,onCloseClick:function(){h(null)}})),n.a.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",marginBottom:"10px"}},n.a.createElement(Ee,{name:t.name}),n.a.createElement(De,{fieldCount:t.fields.length})),n.a.createElement("div",{style:{marginBottom:"10px",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"}},n.a.createElement(oe,{style:{flex:1}},t&&t.description,n.a.createElement("div",null))),n.a.createElement("div",{ref:b},n.a.createElement(E.a,{parentRef:b,columns:_,data:t.fields,showPagination:!1,defaultPageSize:t.fields.length,sortable:!0,cellAlignment:"top",withOutsideBorder:!0}),t.profiles&&t.profiles.length>0?n.a.createElement(E.a,{parentRef:b,columns:g,data:t.profiles,showPagination:!1,defaultPageSize:t.profiles.length,sortable:!0,cellAlignment:"top",withOutsideBorder:!0}):n.a.createElement("p",null," ")))},Te=(a(493),a(123)),qe=a.n(Te),xe=a(205),Se=a.n(xe);const Re=[{content:"All",value:"no_active_filter"}],we=Object(l.styled)(g.a)`
min-width: 190px;
`;var Me=({files:e=0,fields:t=0,dataTiers:a=[],dataAttributes:i=[],searchParams:r={},onSearch:o=(e=>console.log(e.target.val))})=>{const[s,d]=n.a.useState("");Se()(o,500);return n.a.createElement(f.a,{variant:"data",color:"#151c3d",css:{fontFamily:"trade-gothic-next"}},n.a.createElement("div",{className:qe.a.fileFilters},`${e} files > ${t} fields`,n.a.createElement("div",{className:qe.a.dataSelectors},"Filter required:"," ",n.a.createElement(we,{options:i,value:r.attribute,onChange:(c="attribute",e=>o({...r,[c]:e})),size:"sm"}))));var c},Ne=a(156),Pe=a(307),Ae=a(496);var He=({children:e,minZoom:t=.25,maxZoom:a=1,zoomStep:i=.05,menu:r})=>{const o=Object(Ne.useTheme)(),[s,d]=n.a.useState(1);return n.a.createElement("div",{className:Pe.a`
border: solid 1px ${o.colors.grey_2};
transform: scale(1);
overflow: hidden;
`},n.a.createElement(Ae.b,{defaultScale:1,defaultPositionX:0,defaultPositionY:0,doubleClick:{disabled:!0},options:{minScale:t,maxScale:a,limitToBounds:!1,limitToWrapper:!1},onWheel:({scale:e})=>{d(e)},wheel:{step:200}},({resetTransform:o,setScale:c})=>{const l=Se()(e=>{c(e)},500);return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"tools",style:{position:"absolute",zIndex:1,display:"flex"}},n.a.createElement("input",{type:"range",min:t,max:a,step:i,value:s,onChange:e=>{const t=Number(e.target.value);d(t),l(t)}}),n.a.createElement("button",{onClick:()=>{d(1),setTimeout(()=>{o()},0)}},"reset")),n.a.createElement(Ae.a,null,e),n.a.createElement("div",null,r({resetTransform:o})))}))},Le=a(191);const Fe=Object(Le.default)("li")`
flex: auto;
text-align: center;
list-style-type: none;
position: relative;
display: flex;
flex-direction: row;
padding-top: var(--tree-node-padding);
padding-right: var(--tree-line-height);
padding-bottom: 0;
padding-left: calc(var(--tree-line-height) + var(--arrow-width));
margin-top: 0px;
/* line cont */
::before,
::after {
content: '';
position: absolute;
left: 0;
width: var(--tree-line-height);
height: 100%;
}
/* vertical line */
::before {
border-left: var(--tree-line-width) solid var(--tree-line-color);
}
/* horizontal line */
::after {
top: 100%;
transform: translateY(-50%);
border-top: var(--tree-line-width) solid var(--tree-line-color);
}
/* single child node - no line */
:only-child {
padding: 0;
padding-left: var(--arrow-width);
::after,
:before {
display: none;
}
}
/* top curve */
:first-of-type {
::before {
bottom: -50%;
border-radius: var(--tree-line-border-radius) 0 0 0;
}
::after {
border-radius: var(--tree-line-border-radius) 0 0 0;
}
}
/* bottom curve */
:last-of-type {
::before {
border-radius: 0 0 0 var(--tree-line-border-radius);
top: -50%;
}
::after {
top: 0;
border: 0 none;
border-bottom: var(--tree-line-width) solid var(--tree-line-color);
border-radius: 0 0 0 var(--tree-line-border-radius);
}
}
/* arrow */
/* first node*/
.arrow {
display: none;
}
.ChildrenContainer .arrow {
display: block;
width: 20px;
position: absolute;
width: 0;
height: 0;
top: 50%;
border-style: solid;
border-width: 7px 0 7px 9px;
border-color: transparent transparent transparent var(--tree-line-color);
transform: translate(-9px, -50%);
z-index: 2;
}
`,ke=Object(Le.default)("ul")`
display: flex;
padding-inline-start: 0;
padding-top: var(--tree-line-height);
position: relative;
flex-direction: column;
padding-left: calc(var(--tree-line-height));
padding-top: 0px;
margin: 0px;
::before {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 0;
border-top: var(--tree-line-width) solid var(--tree-line-color);
width: var(--tree-line-height);
transform: translateY(-50%);
}
`;var Ve=function({children:e,label:t,className:a=""}){return i.createElement(Fe,{className:"NodeContainer "+a},i.createElement("div",{className:"arrow"}),t,i.Children.count(e)>0&&i.createElement(ke,{className:"ChildrenContainer"},e))};const Ue=Object(Le.default)("ul")`
padding-inline-start: 0;
margin: 0;
`,Be=Object(Le.default)(Ue)`
--line-height: ${({lineHeight:e})=>e};
--line-width: ${({lineWidth:e})=>e};
--line-color: ${({lineColor:e})=>e};
--line-border-radius: ${({lineBorderRadius:e})=>e};
--node-padding: ${({nodePadding:e})=>e};
--tree-line-height: var(--line-height, 20px);
--tree-line-width: var(--line-width, 1px);
--tree-line-color: var(--line-color, black);
--tree-line-border-radius: var(--line-border-radius, 5px);
--tree-node-padding: var(--node-padding, 5px);
--arrow-width: 9px;
`,je=i.forwardRef(({children:e,label:t,...a},n)=>i.createElement(Be,Object(re.a)({},a,{ref:n}),i.createElement(Ve,{label:t},e)));var $e=i.memo(je);const Ye=n.a.createContext(""),Ge=({expanded:e=!1,onClick:t})=>{const a=Object(Ne.useTheme)();return n.a.createElement("button",{onClick:t,className:Pe.a`
width: 12px;
height: 12px;
padding: 0px;
line-height: 0px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background-color: ${a.colors.white};
cursor: pointer;
border: none;
`},e?"-":"+")},We=({fileName:e,required:t=!1,fields:a,onExpandStateChange:i})=>{const r=Object(Ne.useTheme)(),o=n.a.useContext(Ye),[s,d]=n.a.useState(!1),c=n.a.useMemo(()=>a.filter(e=>"required"==e.required).map(e=>({...e,isMatch:e.name.includes(o)})),[o]),u=n.a.useMemo(()=>a.filter(e=>"optional"==e.required).map(e=>({...e,isMatch:e.name.includes(o)})),[o]),m=n.a.useMemo(()=>a.filter(e=>"conditional"==e.required).map(e=>({...e,isMatch:e.name.includes(o)})),[o]),p=e=>e.isMatch,h=n.a.useMemo(()=>c.some(p)||u.some(p),[o]),_=n.a.useRef(!0);n.a.useEffect(()=>{_.current||d(!!h),_.current=!1},[o]);const g=Object(l.styled)("li")`
list-style-position: inside;
word-wrap: break-word;
list-style-type: disc;
`,b=Object(l.styled)("ul")`
padding-left: 10px;
`,v=et();return n.a.useEffect(()=>{const e=({expanded:e})=>{d(e)};return v.subscribe(e),()=>v.unsubscribe(e)},[]),n.a.createElement("div",{className:Pe.a`
display: flex;
flex-direction: column;
justify-content: center;
opacity: ${h?1:.25};
margin: 10px 0px;
`},n.a.createElement("div",{className:Pe.a`
border-radius: 10px;
border: solid 2px ${t?r.colors.error:r.colors.secondary};
background: ${r.colors.white};
width: 260px; // width of
padding: 2px;
`},n.a.createElement("div",{className:Pe.a`
display: flex;
justify-content: space-between;
align-items: center;
`},n.a.createElement(f.a,{variant:"data",color:"secondary",bold:!0,className:Pe.a`
margin-left: 5px;
`},e),n.a.createElement(D.a,{className:Pe.a`
background: ${r.colors.primary_1};
display: flex;
cursor: pointer;
`,onClick:e=>{d(!s),i(!s)}},n.a.createElement("div",null,o&&o.length?`${c.filter(p).length+u.filter(p).length+m.filter(p).length} / ${a.length}`:c.length+u.length+m.length," ","fields"),n.a.createElement("div",{className:Pe.a`
margin-left: 5px;
`},n.a.createElement(Ge,{expanded:s})))),s&&n.a.createElement("div",{className:Pe.a`
text-align: left;
`},!!c.length&&n.a.createElement(f.a,{color:"error",bold:!0},"Required (",c.length," fields)"),n.a.createElement(b,null,c.map(e=>n.a.createElement(g,{key:e.name},n.a.createElement(f.a,{variant:"data",color:e.isMatch?"black":"grey_2"},e.name)))),!!u.length&&n.a.createElement(f.a,{color:"secondary_dark",bold:!0},"Optional (",u.length," fields)"),n.a.createElement(b,null,u.map(e=>n.a.createElement(g,{key:e.name},n.a.createElement(f.a,{variant:"data",color:e.isMatch?"black":"grey_2"},e.name)))),!!m.length&&n.a.createElement(f.a,{color:"orange",bold:!0},"Conditional (",m.length," fields)"),n.a.createElement(b,null,m.map(e=>n.a.createElement(g,{key:e.name},n.a.createElement(f.a,{variant:"data",color:e.isMatch?"black":"grey_2"},e.name)))))))},ze=({fileDef:e,onExpandStateChange:t})=>{const a=({fileName:e,required:a,children:i,fields:r})=>n.a.createElement(Ve,{label:n.a.createElement(We,{fileName:e,required:a,fields:r,onExpandStateChange:t})},i);return n.a.createElement(a,{fileName:e.name,fields:e.fields,required:e.required},e.children.map(e=>n.a.createElement(ze,{fileDef:e,key:e.name,onExpandStateChange:t})))};var Qe=n.a.forwardRef(({searchString:e,rootFile:t,onNodeExpand:a},i)=>{const r=Object(Ne.useTheme)(),o=e=>t=>{a({fileName:e,expanded:t})},s=()=>n.a.createElement(We,{fileName:t.name,fields:t.fields,onExpandStateChange:o(t.name),required:!0});return n.a.createElement(Ye.Provider,{value:e},n.a.createElement($e,{ref:i,label:n.a.createElement(s,null),lineHeight:"40px",lineWidth:"4px",lineBorderRadius:"25px",lineColor:r.colors.grey_1,nodePadding:"2px"},t.children.map(e=>n.a.createElement(ze,{fileDef:e,key:e.name,onExpandStateChange:o(e.name)}))))}),Ze=a(130),Je=a(258),Xe=a.n(Je);const Ke=n.a.createContext(),et=()=>n.a.useContext(Ke);var tt=({data:e,searchValue:t})=>{const a=Object(Ne.useTheme)(),i=n.a.createRef(),r=(()=>{let e=[];return{subscribe:t=>e=e.concat(t),unsubscribe:t=>e=e.filter(e=>{}),listeners:e,publish:t=>{e.forEach(e=>{e(t)})}}})(),o=()=>{r.publish({expanded:!0})};return n.a.createElement("div",{style:{display:"flex",cursor:"grab",position:"relative"},ref:i},n.a.createElement(Ze.Global,{styles:Ze.css`
.dict_src-pages-dictionary- {
/* experimental css properties */
width: -webkit-fill-available;
width: -moz-available;
width: stretch;
height: -webkit-fill-available;
height: -moz-available;
height: stretch;
}
`}),n.a.createElement(He,{menu:({resetTransform:e})=>n.a.createElement("div",{style:{border:"solid 1px "+a.colors.grey_2,position:"absolute",cursor:"default",background:a.colors.white,padding:8,right:8,top:8}},n.a.createElement(f.a,{color:"primary",css:{fontFamily:"trade-gothic-next"}},"Filter by Data Tier"),n.a.createElement(Xe.a,{variant:"secondary",onClick:()=>(e=>{e(),r.publish({expanded:!1})})(e)},"Collapse All"),n.a.createElement(Xe.a,{variant:"secondary",onClick:o},"Expand All"))},n.a.createElement("div",{style:{height:800,width:2e3,display:"flex",alignItems:"center"}},n.a.createElement(Ke.Provider,{value:r},n.a.createElement(Qe,{searchString:t,rootFile:e,onNodeExpand:({fileName:e,expanded:t})=>{console.log(e,t)}})))))},at=a(497),it=a(600),nt=a.n(it);const rt=(e,t)=>{const[a,i]=n.a.useState("");return n.a.useEffect(()=>{const a=a=>{const n=(()=>{const a=e.find(e=>{if(e&&e.current){const{top:a}=e.current.getBoundingClientRect();if(a>=0&&a<=t)return e.current}});return a?a.current:null})();if(n){const e=n.dataset.menuTitle;i(e)}};return document.addEventListener("scroll",a),()=>document.removeEventListener("scroll",a)},[e]),a};var ot=({contents:e,scrollYOffset:t,...a})=>{const i=e.map(e=>e.contentRef),r=rt(i,t),o=e.map(e=>e.name===r?{...e,active:!0}:e);return n.a.createElement(nt.a,Object(re.a)({contents:o,scrollYOffset:t},a))},st=a(601),dt=a.n(st);a(240);const ct=({children:e,visible:t})=>n.a.createElement("div",{style:{display:t?"block":"none"}},e),lt=a(635);var ut=a(636),mt=a.n(ut),pt=a(645),ht=a.n(pt),ft=a(647),_t=a.n(ft);const gt=()=>{const[e,t]=Object(i.useState)(!1);return[e,e=>{t(e);const a=document.getElementsByTagName("html")[0].classList;e?a.add("modal-open"):a.remove("modal-open")}]},bt=n.a.createRef(),vt=({children:e})=>{const t=bt.current;return t?o.a.createPortal(n.a.createElement("div",{style:{width:"100vw",height:"100vh"}},n.a.createElement(ce.a.Overlay,null,e)),t):null},yt=a(650),Ct=a(651);const Et=({schemas:e,menuContents:t,isLatestSchema:a})=>e.length>0?e.map(e=>{const i=dt()(t,{name:ne()(e.name)});return n.a.createElement(Oe,{schema:e,menuItem:i,isLatestSchema:a})}):n.a.createElement("div",null,"No schemas found");t.default=function(){const[e,t]=Object(i.useState)(yt.currentVersion),[a,r]=Object(i.useState)(yt.dictionary),[o,d]=Object(i.useState)(Ct),[m,h]=Object(i.useState)({tier:"",attribute:""}),[_,b]=Object(i.useState)(""),y=async e=>{try{const{dict:a,tree:i}=await async function(e){try{const t=await c.a.get(`/data/schemas/${e}.json`),a=await c.a.get(`/data/schemas/${e}_tree.json`);return{dict:t.data,tree:a.data}}catch(t){throw t}}(e);t(e),r(a),d(i)}catch(a){alert("DICTIONARY FETCHING ERROR - VERSION NOT AVAILABLE")}},C=Object(u.a)(),{siteConfig:{customFields:{PLATFORM_UI_ROOT:E="",GATEWAY_API_ROOT:I=""}}}=C,D=n.a.useMemo(()=>{const e=be()(a,"schemas",[]).map(e=>e.fields),t=_t()(e).reduce((e,t)=>{be()(t,"required",!1);return e.attributes.push(O.required),e.attributes.push(O.conditional),e.attributes.push(O.optional),e.tiers.push(O.extended),e},{tiers:[],attributes:[]});return{tiers:mt()(t.tiers),attributes:mt()(t.attributes)}},[a]),T=n.a.useMemo(()=>a.schemas.map(e=>{const{tier:t,attribute:a}=m,i=e.fields.filter(e=>{const t=be()(e,"required","optional");let i=!1;return"no_active_filter"===a||((a===O.conditional&&"conditional"==t||a===O.required&&"required"==t||a===O.optional&&"optional"==t||""===a||"no_active_filter"===a)&&(i=!0),i)});return{...e,fields:i}}).filter(e=>e.fields.length>0),[m,a]),q=T.length,x=T.reduce((e,t)=>e+t.fields.length,0),S=(e=>{const t=e.map(e=>e.name);return a.schemas.map(e=>({key:e.name,name:ne()(e.name),contentRef:Object(i.createRef)(),active:!1,disabled:!t.includes(e.name)}))})(T),R=lt.sort().slice(-1)[0]===e,w=Object.freeze({OVERVIEW:"OVERVIEW",DETAILS:"DETAILS"}),[M,N]=n.a.useState(w.DETAILS);return Object(l.styled)(pt.Tab)`
border: 0 none;
position: relative;
&.active {
border: 0 none;
::after {
content: '';
border-bottom: 2px solid #00c79d;
position: absolute;
bottom: -2px;
left: 50%;
width: 80%;
margin-left: -40%;
}
}
`,n.a.createElement(l.ThemeProvider,null,n.a.createElement("div",{id:"modalCont",className:p.a.modalCont,ref:bt}),n.a.createElement(s.a,{permalink:"dictionary"},n.a.createElement(v,null,n.a.createElement("div",{className:p.a.mainContainer},n.a.createElement("div",{className:p.a.dict},n.a.createElement("div",{className:p.a.heading},n.a.createElement(f.a,{color:"#151c3d",css:{fontFamily:"trade-gothic-next-condensed",fontSize:"28px",display:"inline-block",marginRight:"55px",flexShrink:0},as:"h1"},"Data Dictionary"),n.a.createElement(f.a,{variant:"paragraph",color:"#000",css:{fontFamily:"trade-gothic-next"}},"The C19HCC Data Dictionary anchors the patient cohort descriptions and other definitions. The classes and elements are not expected to be literally presented in any EHR. It will require manual effort to map the EHR to the cohort definitions. The classes and elements listed here align to standard models such as FHIR and OHDSI CDM, borrowing concepts from both.")),n.a.createElement("div",{className:p.a.infobar},n.a.createElement("div",null,n.a.createElement("form",null,n.a.createElement("div",{style:{width:"150px",marginRight:"10px"}},n.a.createElement(g.a,{"aria-label":"version-select",value:e,options:yt.versions.map(e=>({content:"Version "+e,value:e})),onChange:e=>y(e)}))),n.a.createElement("span",null,n.a.createElement(f.a,{variant:"data",css:{fontFamily:"trade-gothic-next"}},"Last updated: "),n.a.createElement(f.a,{variant:"data",bold:!0,css:{fontFamily:"trade-gothic-next"}},Object(at.format)(be()(a,"updatedAt",""),"MMMM D, YYYY")))),n.a.createElement(ht.a,{value:M,onChange:(e,t)=>{N(t)},styles:{marginBottom:"-2px"}}),n.a.createElement("div",null)),n.a.createElement(Me,{files:q,fields:x,dataTiers:Re.concat(D.tiers.map(e=>({content:ne()(e),value:e}))),dataAttributes:Re.concat(D.attributes.map(e=>({content:ne()(e),value:e}))),searchParams:m,onSearch:e=>h(e)}),n.a.createElement(ct,{visible:M===w.DETAILS},n.a.createElement(Et,{schemas:T,menuContents:S,isLatestSchema:R})),n.a.createElement(ct,{visible:!1},n.a.createElement(tt,{searchValue:_,data:o}))),n.a.createElement(ct,{visible:!0},n.a.createElement("div",{className:p.a.menu},n.a.createElement(ot,{title:"Clinical Classes",contents:S,color:"#0774d3",scrollYOffset:"70",dataTiers:D.tiers.map(e=>({content:ne()(e),value:e})),dataAttributes:D.attributes.map(e=>({content:ne()(e),value:e}))})))))))}},153:function(e,t,a){"use strict";var i=a(0),n=a.n(i),r=a(132),o=a.n(r);t.a=e=>{n.a.useRef();return n.a.createElement("div",{className:"navbar__search",key:"search-box"},n.a.createElement("span",{"aria-label":"expand searchbar",role:"button",className:o()("search-icon",{"search-icon-hidden":e.isSearchBarExpanded}),tabIndex:0}))}},155:function(e,t,a){"use strict";var i=a(0),n=a.n(i),r=a(134),o=(a(135),a(85)),s=a.n(o);t.a=function(){const e=Object(r.a)(),{siteConfig:t={}}=e;return n.a.createElement("footer",{className:s.a["nav-footer"],id:"footer"},n.a.createElement("div",{className:s.a.footerWrapper},n.a.createElement("div",{className:s.a.footerLogo}),n.a.createElement("div",{className:s.a.footerContent},n.a.createElement("section",{className:s.a.footerLinks}),n.a.createElement("section",{className:s.a["legal-text"]},t.themeConfig.footer.copyright),n.a.createElement("section",{className:s.a["legal-text"]},n.a.createElement("a",{href:"https://www.icgc-argo.org",target:"_blank"},"Based on the ICGC ARGO Data Platform")," ")),n.a.createElement("div",{className:s.a.footerLogo})))}},635:function(e){e.exports=JSON.parse('["2.80","2.70","2.66"]')},650:function(e){e.exports=JSON.parse('{"dictionary":{"name":"COVID Data Dictionary","version":"2.70","schemas":[{"name":"root","description":"Metadata applicable to all data elements.","fields":[{"name":"reported_date","valueType":"date","description":"The date or date-time the observation is reported."},{"name":"patient_id","valueType":"ID","description":"Unique identifier assigned to the patient.","required":"required","notes":"FHIR: Patient.identifier, PCORnet: Demographics.patid, OHDSI CDM: Person.person_id, Sentinel: Demographic.PatID"}]},{"name":"patient","description":"The collection of data elements with demographic information about a patient.","parent":"root","fields":[{"name":"date_of_birth","description":"The actual or approximate date of birth.","required":"optional","valueType":"date","note:":"FHIR: Patient.birthDate, PCORnet: Demographics.birth_date, Demographics.birth_time, OHDSI CDM: Person.year_of_birth, Person.month_of_birth, Person.day_of_birth, Person.birth_datetime, Sentinel: Demographic.Birth-Date, I2B2: Demographics.birth_date"},{"name":"administrative_gender","description":"The gender that the patient is considered to have for administration and record keeping purposes.","required":"required","valueType":"code","permissible":{"codeList":["Male","Female","Other","Unknown"]},"notes":"Codes must align with FHIR Administrative Gender value set (http://hl7.org/fhir/ValueSet/administrative-gender). FHIR: Patient.gender, OHDSI CDM: Person.gender_concept_id, PCORnet: Demographics.sex, Sentinel: Demographic.Sex, I2B2: Demographics.sex"},{"name":"race","description":"Concepts classifying the person into a named category of humans sharing common history, traits, geographical origin or nationality. The race codes used to represent these concepts are based upon the CDC Race and Ethnicity Code Set Version 1.0.","valueType":"code","required":"optional","permissible":{"codeList":["American Indian or Alaska Native","Asian","Black or African American","Native Hawaiian or Other Pacific Islander","White","Unknown","Asked but no answer"]},"notes":"Codes from http://hl7.org/fhir/us/core/ValueSet/omb-race-category. FHIR: Patient.extension: us-core-race, PCORnet: Demographics.race, OHDSI CDM: Person.race_concept_id, Sentinel: Demographic.Race, I2B2: Demographics.Race"},{"name":"ethnicity","description":"Concepts classifying the person into a named category of humans sharing common history, traits, geographical origin or nationality. The ethnicity codes used to represent these concepts are based upon the CDC Race and Ethnicity Code Set Version 1.0.","valueType":"code","required":"optional","permissible":{"codeList":["Hispanic or Latino","Non Hispanic or Latino"]},"notes":"Codes from http://hl7.org/fhir/us/core/ValueSet/omb-ethnicity-category. FHIR: Patient.extension: us-core-ethnicity, PCORnet: Demographics.hispanic, OHDSI CDM: Person.ethnicity_concept_id, Sentinel: Demographic.Hispanic, I2B2: Demographics.Hispanic"},{"name":"zip_code","description":"Zip code of the primary residence of the patient.","valueType":"string","required":"required","permissible":{"regex":"(^\\\\d{5}$)|(^\\\\d{9}$)|(^\\\\d{5}-\\\\d{4}$)"},"notes":"Five digit zip code is acceptable. FHIR: Patient.address, OHDSI CDM: Person.location_id, Sentinel: Demographic.Zip"}]},{"name":"Vital_status","description":"An indicator of whether the patient is alive or dead.","parent":"patient","fields":[{"name":"vital_status","description":"Donor\'s last known state of living or deceased.","valueType":"code","required":"required","permissible":{"codeList":["Alive","Deceased","Unknown"]},"notes":"FHIR: Patient.deceasedBoolean, PCORnet: Death.patid, Death_cause.patid, OHDSI CDM: DEATH.person_id (deprecated in CDM 6.0), VISIT_DETAIL.DISCHARGE_TO_CONCEPT_ID = 4216643 \'Patient died\', OBSERVATION_TYPE_CONCEPT_ID = 44818516 (EHR discharge status \'Expired\')."},{"name":"cause_of_death","description":"Indicates the cause of a patient\'s death.","valueType":"code","required":"conditional","permissible":{"codeList":["ICD-10 Code","SNOMED-CT code"]},"notes":"Cause of death is only required to be submitted if the patient is deceased. Mortality coding of COVID-19 with ICD-10 see: https://www.who.int/classifications/icd/COVID-19-coding-icd10.pdf?ua=1. FHIR: VRDR Cause of Death Condition profile; FHIR: AdverseEvent.suspectedEntity.causality.Extension (Proposed Name: cause-code : CodeableConcept), PCORnet: Death_cause.death_cause, Death_cause.death_cause_code, OHDSI CDM: Death.death_type_concept_id, Death.cause_concept_id."},{"name":"date_of_death","description":"Indicates the actual or approximate date of a patient\'s death.","valueType":"date","required":"conditional","notes":"Date of death is only required to be submitted if the patient is deceased. FHIR: Patient.deceasedDateTime, VRDR Death Date profile, AdverseEvent.date, PCORnet: Death.death_date, OHDSI CDM: Death.death_date"}]},{"name":"patient_PII","description":"Personally identifiable information about a patient.","parent":"patient","fields":[{"name":"family_name","description":"The part of a name that links to the genealogy.","valueType":"string","notes":"FHIR: Patient.name.family. Patient PII not reported in other systems."},{"name":"given_name(s)","description":"Given names (not always \'first\'). Includes middle names.","valueType":"string","notes":"FHIR: Patient.name.given. Patient PII not reported in other systems."},{"name":"address_line","description":"This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.","valueType":"string","notes":"FHIR: Patient.address.line. Patient PII not reported in other systems."},{"name":"address_city","description":"The name of the city, town, suburb, village or other community or delivery center.","valueType":"string","notes":"FHIR: Patient.address.city. Patient PII not reported in other systems."},{"name":"address_state","description":"US 2 letter state code.","valueType":"string","notes":"FHIR: Patient.address.state. Patient PII not reported in other systems."},{"name":"primary_phone_number","description":"Preferred phone number for the patient.","valueType":"string","notes":"FHIR: Patient.contact.telecom. Patient PII not reported in other systems."}]},{"name":"condition","description":"The collection of data elements related to a condition. A condition can be either a diagnosis or part of an ongoing problem list.","parent":"patient","fields":[{"name":"condition_id","valueType":"ID","description":"Unique identifier assigned to this instance of condition in the patient.","required":"required","notes":"FHIR: Condition.id, PCORnet: Diagnosis.diagnosisid, Condition.conditionid, OHDSI CDM: Condition_occurrence.condition_occurrence_id"},{"name":"code","valueType":"code","description":"The code to represent the condition, diagnosis or problem.","required":"required","permissible":{"codeList":["ICD-10-CM code","SNOMED CT disorder code"]},"notes":"This field accepts either ICD-10-CM or SNOMED-CT disorder codes. FHIR: Condition.code, PCORnet: Diagnosis.dx, Diagnosis.dx_type, Condition.condition, Condition.condition_type, OHDSI CDM: Condition_occurrence.condition_concept_id, I2B2: Diagnosis.DIAGNOSIS_CODE, Diagnosis.DIAGNOSIS_CODING_SYSTEM, Diagnosis.DIAGNOSIS_CODING_SYSTEM_VERSION."},{"name":"category","description":"Condition category which distinguishes between a diagnosis or a problem.","permissible":{"codeList":["problem-list-item","encounter-diagnosis"]},"valueType":"code","notes":"Include all codes defined in http://terminology.hl7.org/CodeSystem/condition-category. FHIR: Condition.category, I2B2: Diagnosis.DIAGNOSIS_SOURCE"},{"name":"onset_date","description":"An estimate or actual date that the patient reported experiencing the condition.","required":"required","valueType":"date","notes":"FHIR: Condition.onsetDateTime, PCORnet: Condition.onset_date, I2B2: Diagnosis.DIAGNOSIS_DATE"},{"name":"verification_date","description":"Date when condition was confirmed by positive test, imaging, biopsy, or other method.","required":"optional","valueType":"date","notes":"TBD"},{"name":"clinical_status","description":"The clinical status of the condition. (Reference source: FHIR Condition clinical status from http://hl7.org/fhir/condition-definitions.html#Condition.clinicalStatus).","valueType":"code","required":"required","permissible":{"codeList":["active","recurrence","relapse","inactive","remission","resolved"]},"notes":"The clinical status terms are described at http://hl7.org/fhir/valueset-condition-clinical.html. FHIR: Condition.clinicalStatus, PCORnet: Condition.condition_status, OHDSI CDM: Condition_occurrence.condition_status_concept_id"}]},{"name":"med_exposure","description":"An instance of a medication or substance introduced into the body. Medication exposures are indicated by a variety of records: medication orders, medication administrations, medication lists, and patient-reported medication statements.","parent":"patient","fields":[{"name":"med_id","valueType":"ID","description":"Unique identifier assigned to the medication exposure episode.","required":"required"},{"name":"code","valueType":"code","description":"The code to represent the medication that was administered.","required":"required","permissible":{"codeList":["RxNorm code: http://www.nlm.nih.gov/research/umls/rxnorm","NDC code: http://hl7.org/fhir/sid/ndc"]},"notes":"Medications can be reported in NDC or RxNorm. For NDC, the product code or package code is acceptable. For RxNorm, the ingredient (IN) or multiple ingredient (MIN) codes are preferred over the brand codes or combination (Ingredient + Strength (SCDC), Ingredient + Dose Form (SCDF), etc.). FHIR: MedicationDispense.medicationCodeableConcept, MedicationRequest.medicationCodeableConcept, MedicationStatement.medicationCodeableConcept, PCORnet: Prescribing.rxnorm_cui, OHDSI CDM: Drug_exposure.drug_concept_id, Drug_exposure.drug_type_concept_id, I2B2: Medication.MEDICATION_ CLASSIFICATION_SYSTEM, Medication.MEDICATION_ CODING_SYSTEM, Medication.MEDICATION_ CLASSIFICATION_SYSTEM_VERSION, Medication.MEDICATION_ CLASSIFICATION_SYSTEM, Medication.MEDICATION_CODE, Medication.MEDICATION_CODING_SYSTEM_VERSION, Medication.RAW_ MEDICATION_CODE"},{"name":"med_dose_quantity","description":"The amount of the medication given at one administration event.","valueType":"quantity","notes":"FHIR: MedicationRequest(MedicationDispense).dosageInstruction.doseAndRate.dose[x], MedicationStatement.dosage.doseAndRate.dose[x], PCORnet: Prescribing.rx_dose_form, Prescribing.rx_dose_ordered, Prescribing.rx_dose_ordered_unit, OHDSI CDM: Drug_exposure.quantity"},{"name":"med_dose_units","description":"Unit of measure for the dose quantity of the administered medication.","valueType":"code","permissible":{"codeList":["UCUM code"]},"notes":"Nomenclature conforms to the Unified Code for Units of Measure (UCUM): https://unitsofmeasure.org/trac. FHIR: MedicationRequest(MedicationDispense).dosageInstruction.doseAndRate.doseQuantity.system/code, PCORNet: Prescribing.rx._dose_ordered_unit"},{"name":"med_route","description":"The path of the substance into the body for the administered medication.","permissible":{"codeList":["Include codes from http://snomed.info/sct where concept is-a 284009009 (Route of administration values)"]},"valueType":"code","notes":"FHIR: MedicationDispense(MedicationRequest).dosageInstruction.route, PCORnet: Dispensing.dispense_route, PCORnet: Prescribing.rx_route, OHDSI CDM: Drug_exposure.route_concept_id, I2B2: Medication.RAW_MEDICATION_ROUTE"},{"name":"med_frequency","description":"The timing for the frequency that the medication was taken.","valueType":"string","notes":"Frequency should be reported as a string instead of a complex data structure to simplify the collection of data. FHIR: MedicationRequest.dosageInstruction.timing, PCORnet: Prescribing.rx_frequency"},{"name":"med_start_date","description":"The date when the medication was started.","required":"required","valueType":"date","notes":"FHIR: MedicationDispense.whenHandedOver, MedicationStatement.effectivePeriod.start, PCORnet: Dispensing.dispense_date, OHDSI CDM: Drug_exposure.drug_exposure_start_date, Drug_exposure.drug_exposure_start_datetime"},{"name":"med_stop_date","description":"The date when the medication as administered to the patient.","required":"required","valueType":"date","notes":"If the stop date is not provided, it is assumed the medication is ongoing at the time of the report. FHIR: MedicationStatement.effectivePeriod.end, OHDSI CDM: Drug_exposure.drug_exposure_end_date, Drug_exposure.drug_exposure_end_datetime. May be calculated from FHIR: MedicationStatement.basedOn(MedicationRequest).dispenseRequest.expectedSupplyDuration, OHDSI CDM: Drug_exposure.days_supply"}]},{"name":"procedure","description":"An action that was performed on or for a patient. This can be a physical intervention like an operation, or less invasive services such as counseling.","parent":"patient","fields":[{"name":"procedure_id","valueType":"ID","description":"Unique identifier assigned to the procedure occurrence.","required":"required","notes":"FHIR: Procedure.id, PCORnet: Procedures.proceduresid, OHDSI CDM: Device_exposure.device_exposure_id, Procedure_occurrence.procedure_occurrence_id"},{"name":"code","description":"The code representing the procedure. A procedure is an action performed on a patient, including diagnostic tests, therapies - such as respiratory therapy, surgeries, and other clinical interventions.","required":"required","valueType":"code","notes":"SNOMED CT (preferred), ICD-10-CM (preferred) or HCPCS (alternative). FHIR: Procedure.code, PCORnet: Procedures.px, Procedures.px_type, OHDSI CDM: Procedure_occurrence.procedure_concept_id, I2B2: Procedure.PROCEDURE_ CODING_SYSTEM, Procedure.PROCEDURE_CODE, Procedure.PROCEDURE_CODING_SYSTEM_VERSION"},{"name":"status","description":"The status of the procedure in terms of workflow.","required":"required","permissible":{"codeList":["in-progress","aborted","completed","entered-in-error"]},"valueType":"code"},{"name":"start_date","description":"The date and time the procedure started.","required":"required","valueType":"date","notes":"FHIR: Procedure.performedDateTime, Procedure.performedPeriod.start, PCORnet: Procedures.px_date, OHDSI CDM: Procedure_occurrence.procedure_date, Procedure_occurrence.procedure_datetime, I2B2: Procedure.PROCEDURE_DATE"},{"name":"end_date","description":"The date and time the procedure ended.","required":"optional","valueType":"date","notes":"FHIR: Procedure.performedPeriod.end, OHDSI CDM: Device_exposure.device_exposure_end_date, Device_exposure.device_exposure_end_datetime"}]},{"name":"lab_result","description":"An individual laboratory test and result value","parent":"patient","fields":[{"name":"lab_result_id","description":"Unique identifier of the lab test.","required":"required","valueType":"ID","notes":"FHIR: Observation.id, PCORnet: Lab_result_cm.lab_result_cm_id, OHDSI CDM: Measurement.measurement_id, Observation.observation_id"},{"name":"code","valueType":"code","description":"The code identifying the type of lab test performed.","required":"required","permissible":{"codeList":["LOINC code"]},"notes":"LOINC is preferred as the coding system for the lab test. In cases where there is a no LOINC code immediately available, a local test code would be accepted provided that there is a code system listing where the code originated. FHIR: Observation.code, PCORnet: Lab_result_cm.lab_loinc, Lab_result_cm.raw_lab_name, OHDSI CDM: Measurement.measurement_concept_id, Observation.observation_concept_id, I2B2: Laboratory_test.RAW_PANEL, Laboratory_test.LAB_ CLASSIFICATION _SYSTEM_VERSION, Laboratory_test.LAB_ CLASSIFICATION_SYSTEM, Laboratory_test.LAB_ CODING_SYSTEM, Laboratory_test.LAB_CODE, Laboratory_test.LAB_CODING_SYSTEM_VERSION, Laboratory_test.RAW_LAB_CODE"},{"name":"relevant_dateTime","valueType":"dateTime","description":"The date or dateTime when the specimen was collected.","notes":"FHIR: Observation.effectiveDateTime, Observation.basedOn(ServiceRequest).occurrenceDateTime, PCORnet: Lab_result_cm.lab_order_date, OHDSI CDM: Measurement.measurement_date, Measurement.measurement_datetime, Observation.observation_date, Observation.observation_datetime"},{"name":"result_dateTime","valueType":"dateTime","description":"The date or dateTime when the result was reported.","notes":"FHIR: Observation.issued, PCORnet: Lab_result_cm.result_date, Lab_result_cm.result_time"},{"name":"result_code","description":"The value associated with a lab result, represented as a code.","valueType":"code","notes":"FHIR: Observation.valueCodeableConcept, PCORnet: Lab_result_cm.result_snomed, OHDSI CDM: Measurement.value_as_concept_id, Observation.value_as_concept_id, I2B2: Laboratory_test.RESULT_QUALITATIVE"},{"name":"result_quantity","description":"The value associated with a lab result, represented as a number. The number can be either an integer or a float.","valueType":"quantity","notes":"FHIR: Observation.valueQuantity, PCORnet: Lab_result_cm.result_qual, Lab_result_cm.result_num, Lab_result_cm.result_modifier,Lab_result_cm.raw_result, Measurement.value_as_number, Observation.value_as_number, I2B2: Laboratory_test.RAW_RESULT, Laboratory_test.RESULT_MODIFIER, Laboratory_test.RESULT_NUMERICAL"},{"name":"result_units","description":"Unit of measure for the associated with the lab result quantity.","valueType":"code","permissible":{"codeList":["UCUM code"]},"notes":"Nomenclature conforms to the Unified Code for Units of Measure (UCUM): https://unitsofmeasure.org/trac. FHIR: Observation.valueQuantity.system/codes PCORnet: Lab_result_cm.result_unit, OHDSI CDM: Measurement.unit_concept_id, I2B2: Laboratory_test.RAW_UNIT, Laboratory_test.RESULT_UNIT"},{"name":"lab_result_interpretation","description":"An interpretation associated with the lab test result","valueType":"code","permissible":{"codeList":["Any of the codes specified in the http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation value set."]},"notes":"FHIR: Observation.interpretation, PCORnet: Lab_result_cm.abn_ind, I2B2: Laboratory_test.ABNORMAL_RESULT_INDICATOR"}]},{"name":"encounter","description":"Data elements associated with an encounter at a health care facility, such as an ambulatory visit, an emergency department visit, or a hospitalization.","parent":"patient","fields":[{"name":"encounter_id","description":"A unique identifier for the encounter.","required":"required","valueType":"ID","notes":"FHIR: Encounter.id, PCORnet: Encounter.encounterid, OHDSI CDM: Visit_occurrence.visit_occurrence_id, Sentinel: Encounter.EncounterID"},{"name":"facility_id","valueType":"ID","description":"Unique identifier of the facility providing the encounter.","required":"optional","notes":"FHIR: Location.id, OHDSI CDM: Care_site.care_site_id, Location.location_id"},{"name":"encounter_class","description":"A classification of the encounter, e.g. ambulatory, emergency or inpatient","required":"required","valueType":"code","permissible":{"codeList":["AMB (ambulatory)","EMER (emergency)","FLD (field)","HH (home health)","IMP (inpatient encounter)","ACUTE (inpatient acute)","NONAC (inpatient non-acute)","OBSENC (observation encounter)","PRENC (pre-admission)","SS (short stay)","VR (virtual)"]},"notes":"Permissible values descriptions are available at http://hl7.org/fhir/v3/ActEncounterCode/vs.html. FHIR: Encounter.class, PCORnet: Encounter.enc_type, Sentinel: Encounter.EncType, I2B2: Procedure.VISIT.VISIT_TYPE"},{"name":"admission_date","description":"The date the patient was admitted for the encounter","required":"required","valueType":"date","notes":"FHIR: Encounter.period.start, PCORnet: Encounter.admit_date, Encounter.admit_time, OHDSI CDM: Visit_occurrence.visit_start_date, Visit_occurrence.visit_start_datetime, Sentinel: Encounter.ADATE, I2B2: Procedure.VISIT.ADMIT_DATE"},{"name":"admission_source","description":"The type of location the patient originated from.","required":"optional","valueType":"code","permissible":{"codeList":["Any of the codes specified in the http://terminology.hl7.org/CodeSystem/admit-source value set"]},"notes":"Definitions for the permissible values are available at http://hl7.org/fhir/codesystem-encounter-admit-source.html. FHIR: Encounter.hospitalization.admitSource or Encounter.hospitalization.origin(location).type, PCORnet: Encounter.admitting_source, OHDSI CDM: Visit_occurrence.admitting_source_concept_id, Sentinel: Encounter.Admitting_Source"},{"name":"discharge_date","description":"The date the patient was discharged from the encounter","required":"required","valueType":"date","notes":"FHIR: Encounter.period.end, PCORnet: Encounter.discharge_date, Encounter.discharge_time, OHDSI CDM: Visit_occurrence.visit_end_date, Visit_occurrence.visit_end_datetime, Sentinel: Encounter.DDATE, I2B2: Procedure.VISIT.DISCHARGE_DATE"},{"name":"discharge_disposition","description":"Categorization of the status of the patient at discharge according to the type of location the patient was discharged to.","valueType":"code","required":"required","permissible":{"codeList":["home (Home)","alt-home (Alternative home)","other-hcf (Other healthcare facility)","hosp (Hospice)","long (Long-term care)","aadvice (Left against advice)","exp (Expired)","psy (Psychiatric hospital)","rehab (Rehabilitation)","snf (Skilled nursing facility)","other (Other)"]},"notes":"Definitions for the permissible values are available at https://www.hl7.org/fhir/valueset-encounter-discharge-disposition.html. FHIR: Encounter.extension (Proposed Name: discharge-disposition: CodeableConcept), PCORnet: Encounter.discharge_disposition, Sentinel: Encounter.Discharge_Disposition"},{"name":"initial_diagnosis","description":"The initial working diagnosis (also known as \'chief complaint\') first entered into the EHR","valueType":"code","permissible":{"codeList":["ICD-10-CM code","SNOMED CT code"]},"notes":"FHIR: Encounter.diagnosis.condition (Role = CC), OHDSI CDM: Condition_occurrence with condition_status_concept_id = 4033240, PCORnet: DIAGNOSIS.DX_SOURCE (IN)"},{"name":"admitting_diagnosis","description":"The main diagnosis code used to admit the patient.","valueType":"code","required":"conditional","permissible":{"codeList":["ICD-10-CM code","SNOMED CT disorder code"]},"notes":"An admitting diagnosis is only expected to be available for inpatient encounters. FHIR: Encounter.diagnosis.condition (Role = AD),OHDSI CDM: Condition_occurrence with condition_status_concept_id = 4203942, PCORnet: DIAGNOSIS with DX_SOURCE=AD"},{"name":"discharge_diagnosis","description":"The final diagnosis determined to be the main cause for the hospitalization after all testing, surgery, and workup are complete.","valueType":"code","required":"conditional","permissible":{"codeList":["ICD-10-CM code","SNOMED CT disorder code"]},"notes":"Discharge diagnosis is only expected to be available for inpatient encounters that have been completed. FHIR: Encounter.diagnosis.condition (Role = DD), OHDSI CDM: Condition_occurrence with condition_status_concept_id = 4230359, PCORnet: DIAGNOSIS with DX_SOURCE=DI"}]},{"name":"encounter_detail","description":"Department, unit or setting the patient visits during the course of an inpatient encounter, such as emergency department or intensive care unit.","parent":"encounter","fields":[{"name":"encounter_id","description":"A unique identifier for the encounter.","required":"required","valueType":"ID","notes":"OHDSI CDM: visit_detail_parent_id"},{"name":"encounter_detail_id","description":"A unique identifier for the instance of encounter setting.","required":"required","valueType":"ID","notes":"OHDSI CDM: visit_detail_id"},{"name":"type","description":"The type of setting according to its function/purpose","required":"required","valueType":"code","permissible":{"codeList":["Code from http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType value set."]},"notes":"Definitions for the permissible values for setting type are available at http://hl7.org/fhir/v3/ServiceDeliveryLocationRoleType/vs.html. OHDSI CDM: visit_detail_type_concept_id"},{"name":"arrival_date","description":"The date the patient arrived at the setting.","required":"optional","valueType":"date","notes":"OHDSI CDM: visit_detail_start_date, visit_detail_start_datetime"},{"name":"departure_date","description":"The date the patient departed the setting.","required":"optional","valueType":"date","notes":"OHDSI CDM: visit_detail_end_date, visit_detail_end_datetime"},{"name":"length of stay","description":"The length of time a patient spent in the setting.","required":"optional","valueType":"quantity","notes":"Can be derived from arrival and departure dates."}]},{"name":"patient_observation","description":"Clinical information obtained through examination, assessment, survey, or questioning, including vital signs.","parent":"patient","fields":[{"name":"observation_id","description":"Unique identifier of the observation.","required":"required","valueType":"ID","note":"FHIR: Observation.id, PCORnet: Vital.vitalid, Lab_result_cm.lab_result_cm_id, OMOP: Measurement.measurement_id, Observation.observation_id"},{"name":"code","valueType":"code","description":"The code identifying the type of observation.","required":"required","permissible":{"codeList":["LOINC code"]},"notes":"LOINC is preferred as the coding system for the observation. In cases where there is a no LOINC code immediately available, a local test code would be accepted provided that there is a code system listing where the code originated. FHIR: Observation.code, PCORnet: specific VITAL table elements, PRO_CM: CM_LOINC, OHDSI CDM: Measurement.measurement_concept_id, Observation.observation_concept_id"},{"name":"observation_datetime","valueType":"dateTime","description":"The date-time of the observation, if the observation is made at a specific time.","notes":"Either the observation_datetime or the observation_period_start should be reported, but not both. FHIR: Observation.effectiveDateTime.start, PCORnet: Vital.measure_date, Vital.measure_time, OMOP: Measurement.measurement_date, Measurement.measurement_datetime, Observation.observation_date, Observation.observation_datetime"},{"name":"observation_period_start","valueType":"dateTime","description":"The date or date-time marking the beginning of the clinically-relevant time period of the observation.","notes":"Either the observation_datetime or the observation_period_start should be reported, but not both."},{"name":"observation_period_end","valueType":"dateTime","description":"The date or date-time marking end of the observation period. If the observation_period_start is reported and the observation_period_end is not reported, the observation is assumed to be ongoing at the time of reporting."},{"name":"result_string","description":"The value associated with the observation, represented as a text.","valueType":"text","notes":"A textual description of the observation result. A code is preferred if available."},{"name":"result_code","description":"The value associated with the observation, represented as a code.","valueType":"code","note":"FHIR: Observation.valueCodeableConcept, PCORnet: Vital.ht, Vital.wt, Vital.systolic, Vital.original_bmi, Vital.smoking, Vital.tobacco, Vital.tobacco_type"},{"name":"result_quantity","description":"The value associated with a lab result, represented as a number. The number can be either an integer or a float.","valueType":"quantity","note":"FHIR: Observation.valueQuantity, PCORnet: Vital.ht, Vital.wt, Vital.systolic, Vital.original_bmi"},{"name":"result_units","description":"Unit of measure for the associated with the lab result quantity.","valueType":"code","permissible":{"codeList":["UCUM code"]},"notes":"Nomenclature conforms to the Unified Code for Units of Measure (UCUM): https://unitsofmeasure.org/trac. FHIR: Observation.valueQuantity.system/codes PCORnet: OHDSI CDM: Measurement.unit_concept_id"},{"name":"result_interpretation","description":"An interpretation associated with the observation","valueType":"code","permissible":{"codeList":["Any of the codes specified in the http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation value set."]},"notes":"FHIR: Observation.interpretation"}]}],"updatedAt":"2020-05-07T19:42:02.583Z"},"versions":["2.80","2.70","2.66"],"currentVersion":"2.80"}')},651:function(e){e.exports=JSON.parse('{"name":"root","fields":[{"name":"reported_date","required":"optional"},{"name":"patient_id","required":"required"}],"required":"optional","parentName":"","children":[{"name":"patient","fields":[{"name":"date_of_birth","required":"optional"},{"name":"administrative_gender","required":"required"},{"name":"race","required":"optional"},{"name":"ethnicity","required":"optional"},{"name":"zip_code","required":"required"}],"required":"optional","parentName":"root","children":[{"name":"Vital_status","fields":[{"name":"vital_status","required":"required"},{"name":"cause_of_death","required":"conditional"},{"name":"date_of_death","required":"conditional"}],"required":"optional","parentName":"patient","children":[]},{"name":"patient_PII","fields":[{"name":"family_name","required":"optional"},{"name":"given_name(s)","required":"optional"},{"name":"address_line","required":"optional"},{"name":"address_city","required":"optional"},{"name":"address_state","required":"optional"},{"name":"primary_phone_number","required":"optional"}],"required":"optional","parentName":"patient","children":[]},{"name":"condition","fields":[{"name":"condition_id","required":"required"},{"name":"code","required":"required"},{"name":"category","required":"optional"},{"name":"onset_date","required":"required"},{"name":"verification_date","required":"optional"},{"name":"clinical_status","required":"required"}],"required":"optional","parentName":"patient","children":[]},{"name":"med_exposure","fields":[{"name":"med_id","required":"required"},{"name":"code","required":"required"},{"name":"med_dose_quantity","required":"optional"},{"name":"med_dose_units","required":"optional"},{"name":"med_route","required":"optional"},{"name":"med_frequency","required":"optional"},{"name":"med_start_date","required":"required"},{"name":"med_stop_date","required":"required"}],"required":"optional","parentName":"patient","children":[]},{"name":"procedure","fields":[{"name":"procedure_id","required":"required"},{"name":"code","required":"required"},{"name":"status","required":"required"},{"name":"start_date","required":"required"},{"name":"end_date","required":"optional"}],"required":"optional","parentName":"patient","children":[]},{"name":"lab_result","fields":[{"name":"lab_result_id","required":"required"},{"name":"code","required":"required"},{"name":"relevant_dateTime","required":"optional"},{"name":"result_dateTime","required":"optional"},{"name":"result_code","required":"optional"},{"name":"result_quantity","required":"optional"},{"name":"result_units","required":"optional"},{"name":"lab_result_interpretation","required":"optional"}],"required":"optional","parentName":"patient","children":[]},{"name":"encounter","fields":[{"name":"encounter_id","required":"required"},{"name":"facility_id","required":"optional"},{"name":"encounter_class","required":"required"},{"name":"admission_date","required":"required"},{"name":"admission_source","required":"optional"},{"name":"discharge_date","required":"required"},{"name":"discharge_disposition","required":"required"},{"name":"initial_diagnosis","required":"optional"},{"name":"admitting_diagnosis","required":"conditional"},{"name":"discharge_diagnosis","required":"conditional"}],"required":"optional","parentName":"patient","children":[{"name":"encounter_detail","fields":[{"name":"encounter_id","required":"required"},{"name":"encounter_detail_id","required":"required"},{"name":"type","required":"required"},{"name":"arrival_date","required":"optional"},{"name":"departure_date","required":"optional"},{"name":"length of stay","required":"optional"}],"required":"optional","parentName":"encounter","children":[]}]},{"name":"patient_observation","fields":[{"name":"observation_id","required":"required"},{"name":"code","required":"required"},{"name":"observation_datetime","required":"optional"},{"name":"observation_period_start","required":"optional"},{"name":"observation_period_end","required":"optional"},{"name":"result_string","required":"optional"},{"name":"result_code","required":"optional"},{"name":"result_quantity","required":"optional"},{"name":"result_units","required":"optional"},{"name":"result_interpretation","required":"optional"}],"required":"optional","parentName":"patient","children":[]}]}]}')}}]);