@icap-ethiopia/esm-ethiohri-intake 1.0.0-pre.49 → 1.0.0-pre.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/475.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_icap_ethiopia_esm_ethiohri_intake=globalThis.webpackChunk_icap_ethiopia_esm_ethiohri_intake||[]).push([[475],{8350:(e,n,t)=>{t.d(n,{OY:()=>c,jo:()=>d});var a=t(5987),l=t(9324),A=t(4200),r=t(6072);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function o(e,n){if(e){if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}function c(e,n,t,c){var d,m,s,u,v=(s=(0,r.useState)([]),u=2,function(e){if(Array.isArray(e))return e}(s)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,l,A=[],r=!0,i=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(A.push(a.value),!n||A.length!==n);r=!0);}catch(e){i=!0,l=e}finally{try{r||null==t.return||t.return()}finally{if(i)throw l}}return A}}(s,u)||o(s,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=v[0],f=v[1],E=(c-1)*t,b="/ws/rest/v1/encounter?encounterType=".concat(n,"&patient=").concat(e,"&v=").concat(A.RZ,"&totalCount=true&limit=").concat(t,"&startIndex=").concat(E),h=(0,l.Ay)(b,a.openmrsFetch),y=h.data,x=h.error,g=h.isLoading,T=h.mutate;return(0,r.useEffect)((function(){y&&(y.data.results.sort((function(e,n){return new Date(n.encounterDatetime).getTime()-new Date(e.encounterDatetime).getTime()})),f(function(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(y.data.results)))}),[y]),{encounters:p,total:null===(m=y)||void 0===m||null===(d=m.data)||void 0===d?void 0:d.totalCount,isLoading:g,isError:x,mutate:T}}function d(e,n,t){var A,r,i,o,c,d,m=new URLSearchParams({patient:e,code:n,_sort:"-_lastUpdated",_count:"1"});t&&m.append("encounter.type",t);var s="".concat(a.fhirBaseUrl,"/Observation?").concat(m.toString()),u=(0,l.Ay)(s,a.openmrsFetch),v=u.data,p=u.error,f=u.isLoading;return{latestMatched:(null===(i=v)||void 0===i||null===(r=i.data)||void 0===r||null===(A=r.entry)||void 0===A?void 0:A.length)?null===(d=v)||void 0===d||null===(c=d.data)||void 0===c||null===(o=c.entry[0])||void 0===o?void 0:o.resource:null,latestLoading:f,latestError:p}}},8475:(e,n,t)=>{t.r(n),t.d(n,{default:()=>T});var a=t(6072),l=t.n(a),A=t(2480),r=t(9785),i=t(5987),o=t(9503),c=t(231),d=t.n(c),m=t(3670),s=t(6818),u=t(9208),v=t(4200),p=t(3941),f=t(3371),E=t(8350);function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function h(e,n,t,a,l,A,r){try{var i=e[A](r),o=i.value}catch(e){return void t(e)}i.done?n(o):Promise.resolve(o).then(a,l)}function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){y(e,n,t[n])}))}return e}function g(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}const T=function(e){var n,t,c,y,T,N,I,S,w,C,k,P,O,W,D,R,B,F,z,L,M,H,V,K,Q,j,G,U,Y,_,$,J,X,q,Z=e.encounter,ee=e.type,ne=e.mutateEncounters,te=(new Date).toISOString(),ae=(X=(0,a.useState)(!1),q=2,function(e){if(Array.isArray(e))return e}(X)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,l,A=[],r=!0,i=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(A.push(a.value),!n||A.length!==n);r=!0);}catch(e){i=!0,l=e}finally{try{r||null==t.return||t.return()}finally{if(i)throw l}}return A}}(X,q)||function(e,n){if(e){if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}(X,q)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),le=ae[0],Ae=ae[1],re=(0,i.usePatient)(),ie=(0,i.useSession)(),oe=d()().diff(d()(null===(t=re)||void 0===t||null===(n=t.patient)||void 0===n?void 0:n.birthDate),"year"),ce=null===(y=re)||void 0===y||null===(c=y.patient)||void 0===c?void 0:c.gender,de=(0,p.useTranslation)().t,me=(0,s.V)().facilityInfo,se=null!==(J=null===(T=(0,E.jo)(re.patientUuid,"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",v.gT).latestMatched)||void 0===T?void 0:T.valueDateTime)&&void 0!==J?J:null,ue=(0,r.mN)({defaultValues:Z?(0,u.j)(Z,m.oT,m.Jz,["339d3209-c797-457f-afb8-8d19d99c63b7","14718b2b-d38a-4f68-8e22-8bc739ae43f7","3bb2b035-fa5d-4abf-8d47-5f28fb9cf333","0675742c-ea84-4cab-a85f-54b46eadd1ee"]):m.oT,mode:"all"}),ve=ue.control,pe=ue.handleSubmit,fe=(ue.watch,ue.setValue),Ee=(ue.resetField,ue.formState),be=Ee.errors,he=Ee.touchedFields,ye=(0,r.FH)({control:ve});(0,a.useEffect)((function(){"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal&&(fe("heentExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("lymphNodesExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("chestExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("heartExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("abdomenExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("genitourinarySystemExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("musculoskeletalSystemExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("skinExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("nervousSystemExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"))}),[fe,ye.areAllSystemsNormal]),(0,a.useEffect)((function(){!function(){var e=ye.height,n=ye.weight;if(!e||!n)return!0;var t=e/100,a=parseFloat((n/(t*t)).toFixed(1));fe("bmi",a)}()}),[ye.height,ye.weight,fe]);var xe,ge,Te=(0,a.useMemo)((function(){return{HIVRelatedOIs:function(e){return"131768AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.opportunisticInfectionPresent},otherOpportunisticIllnesses:function(e){var n,t;return"131768AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.opportunisticInfectionPresent&&(null===(t=e.HIVRelatedOIs)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))},healthFacility:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.ARVForPMTCT},regimenForMother:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.ARVForPMTCT},regimenForBaby:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.ARVForPMTCT},Regimen:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},artStartDate:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},monthsOnART:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},stillonTreatment:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},headCircumference:function(e){return oe<=5},anthropometryInterpretation:function(e){return oe<=5},developmentalStatus:function(e){return oe<=5},pregnancyAtEnrollment:function(e){return"female"===ce},lmpDate:function(e){return"female"===ce&&"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.pregnancyAtEnrollment},eddDate:function(e){return"female"===ce&&"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.pregnancyAtEnrollment},otherPresentingComplaints:function(e){var n,t;return null===(t=e.presentingComplaints)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept}))},percentOfLostBodyWeight:function(e){var n,t;return null===(t=e.presentingComplaints)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(e){return"832AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept}))},heentExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.heentExamination},lymphNodesExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lymphNodesExamination},chestExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.chestExamination},heartExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.heartExamination},abdomenExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.abdomenExamination},genitourinarySystemExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.genitourinarySystemExamination},musculoskeletalSystemExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.musculoskeletalSystemExamination},skinExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.skinExamination},nervousSystemExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.nervousSystemExamination}}}),[ce,oe]),Ne=(xe=function(e){var n,t,a;return function(e,n){var t,a,l,A,r={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return A={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function i(A){return function(i){return function(A){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(l=2&A[0]?a.return:A[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,A[1])).done)return l;switch(a=0,l&&(A=[2&A[0],l.value]),A[0]){case 0:case 1:l=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,a=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(!((l=(l=r.trys).length>0&&l[l.length-1])||6!==A[0]&&2!==A[0])){r=0;continue}if(3===A[0]&&(!l||A[1]>l[0]&&A[1]<l[3])){r.label=A[1];break}if(6===A[0]&&r.label<l[1]){r.label=l[1],l=A;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(A);break}l[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(e,r)}catch(e){A=[6,e],a=0}finally{t=l=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,i])}}}(this,(function(l){switch(l.label){case 0:Ae(!0),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,(0,f.g)(e,{namespace:"rfe-forms",touchedFields:he,encounter:Z,conceptsUuid:m.Jz,encounterType:v.$w,formUuid:v.Go,encounterDate:te,patientUuid:re.patientUuid,providerUuid:ie.currentProvider.uuid,locationUuid:me.uuid,visibilityRules:Te,encounterUuid:null===(n=Z)||void 0===n?void 0:n.uuid,mutateEncounters:ne,workspaceName:"intake-b-form-workspace",editMode:null===(t=ee)||void 0===t?void 0:t.edit})];case 2:return l.sent(),[3,5];case 3:return a=l.sent(),console.error("Error submitting form:",a),[3,5];case 4:return Ae(!1),[7];case 5:return[2]}}))},ge=function(){var e=this,n=arguments;return new Promise((function(t,a){var l=xe.apply(e,n);function A(e){h(l,t,a,A,r,"next",e)}function r(e){h(l,t,a,A,r,"throw",e)}A(void 0)}))},function(e){return ge.apply(this,arguments)});return l().createElement(A.lVW,{onSubmit:pe(Ne),className:o.A.formNEw},l().createElement("h2",{className:o.A.heading},"HIV CARE/ART CLINIC INTAKE FORM-B"),l().createElement("div",{className:o.A.scrollableContent},l().createElement(A.BJc,{gap:1,className:o.A.container},l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PAST OPPORTUNISTIC ILLNESS(OI), PROPHYLAXIS AND TREATMENT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"opportunisticInfectionPresent",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Past Opportunistic Illnesses(OIs) present")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.opportunisticInfectionPresent,invalidText:null===(t=be.opportunisticInfectionPresent)||void 0===t?void 0:t.message}),m.SD.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"131768AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.opportunisticInfectionPresent&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"HIVRelatedOIs",control:ve,render:function(e){var n,t,a,r=e.field,i=m.bB.filter((function(e){var n,t,a;return null===(a=r)||void 0===a||null===(t=a.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,{readOnly:null===(n=ee)||void 0===n?void 0:n.view,id:"HIVRelatedOIs",titleText:l().createElement("span",{className:o.A.label},de("HIVRelatedOIs","Past Opportunistic Illnesses(OIs)")),initialSelectedItems:i,items:m.bB,sortItems:function(e){return e},invalid:!!be.HIVRelatedOIs,invalidText:null===(t=be.HIVRelatedOIs)||void 0===t?void 0:t.message,onChange:function(e){var n=e.selectedItems;r.onChange({selectedItems:n}),r.onBlur()},onBlur:function(){return r.onBlur()},value:(null===(a=r.value)||void 0===a?void 0:a.selectedItems)||[]})}}),null===(S=ye)||void 0===S||null===(I=S.HIVRelatedOIs)||void 0===I||null===(N=I.selectedItems)||void 0===N?void 0:N.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)}))),(null===(k=ye)||void 0===k||null===(C=k.HIVRelatedOIs)||void 0===C||null===(w=C.selectedItems)||void 0===w?void 0:w.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherOpportunisticIllnesses",control:ve,rules:{maxLength:{value:50,message:"Please use a maximum of 50 characters"}},render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"otherOpportunisticIllnesses",labelText:l().createElement("span",{className:o.A.label},"Other opportunistic illnesses")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.otherOpportunisticIllnesses,invalidText:null===(t=be.otherOpportunisticIllnesses)||void 0===t?void 0:t.message}))}}))))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PAST PROPHYLAXIS/TREATMENT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"cotrimoxazoleDateStarted",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"cotrimoxazoleDateStarted",labelText:l().createElement("span",{className:o.A.label},"Cotrimoxazole started date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.cotrimoxazoleDateStarted,invalidText:null===(n=be.cotrimoxazoleDateStarted)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"cotrimoxazoleDateStopped",control:ve,rules:{validate:function(e){return!e||!ye.cotrimoxazoleDateStarted||new Date(e)>new Date(ye.cotrimoxazoleDateStarted)||"Cotrimoxazole stopped date should not be earlier than started date"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"cotrimoxazoleDateStopped",labelText:l().createElement("span",{className:o.A.label},"Cotrimoxazole stopped date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.cotrimoxazoleDateStopped,invalidText:null===(n=be.cotrimoxazoleDateStopped)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"TBProphylaxisType",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"TB prophylaxis type")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.TBProphylaxisType,invalidText:null===(t=be.TBProphylaxisType)||void 0===t?void 0:t.message}),m.nc.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"inhStartedDate",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"inhStartedDate",labelText:l().createElement("span",{className:o.A.label},"TPT started date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.inhStartedDate,invalidText:null===(n=be.inhStartedDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"inhCompletedDate",control:ve,rules:{validate:function(e){return!e||!ye.inhStartedDate||new Date(e)>new Date(ye.inhStartedDate)||"TPT completed date should not be earlier than started date"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"inhCompletedDate",labelText:l().createElement("span",{className:o.A.label},"TPT completed date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.inhCompletedDate,invalidText:null===(n=be.inhCompletedDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"fluconazolePreventiveTherapyDateStarted",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"fluconazolePreventiveTherapyDateStarted",labelText:l().createElement("span",{className:o.A.label},"Fluconazole Preventive Therapy (FPT) started date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.fluconazolePreventiveTherapyDateStarted,invalidText:null===(n=be.fluconazolePreventiveTherapyDateStarted)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"fluconazolePreventiveTherapyDateCompleted",control:ve,rules:{validate:function(e){return!e||!ye.fluconazolePreventiveTherapyDateStarted||new Date(e)>new Date(ye.fluconazolePreventiveTherapyDateStarted)||"Fluconazole completed date should not be earlier than started date"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"fluconazolePreventiveTherapyDateCompleted",labelText:l().createElement("span",{className:o.A.label},"Fluconazole Preventive Therapy (FPT) completed date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.fluconazolePreventiveTherapyDateCompleted,invalidText:null===(n=be.fluconazolePreventiveTherapyDateCompleted)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lifelongARTTI",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Lifelong ART/TI")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.lifelongARTTI,invalidText:null===(t=be.lifelongARTTI)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.lifelongARTTI&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"Regimen",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.l6P,g(x({id:"Regimen",labelText:l().createElement("span",{className:o.A.label},"Regimens")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.Regimen,invalidText:null===(t=be.Regimen)||void 0===t?void 0:t.message,helperText:l().createElement("span",{className:o.A.helperText},"2798d3bc-2e0a-459c-b249-9516b380a69e"===a.value||"3495d89f-4d46-44d8-b1c9-d101bc9f15d4"===a.value||"ae0dc59c-eb3d-421b-913b-ee5a06ec6182"===a.value||"c5995b5c-19bb-42f6-895b-0b4627bc9dd1"===a.value||"a9da3e97-3916-4834-854c-6bcbc5142aca"===a.value||"8b727274-4a3c-4a81-ae50-9f759a87358d"===a.value||"71ecf102-8d3d-4a2a-b799-30773ad5d447"===a.value||"a87d9674-11af-4440-afd0-d097d84d0393"===a.value||"82e23d8c-4c9d-4b18-a960-9f8890b86f2f"===a.value||"cf29c24b-b796-4536-aaa5-8303f45bb5f8"===a.value||"2e84a82a-8b93-40fc-a556-2028d39f5710"===a.value||"c33efc4a-734f-4e89-92a4-71b259a5e547"===a.value||"7bbee32a-31a8-4199-a8a2-2d15c748d80a"===a.value||"756b4487-f358-4817-b248-9c05080bad67"===a.value||"fcafc964-f018-41c8-9dc9-343a2f4a94b5"===a.value||"7c30ed1a-a770-4b74-8704-82077427128d"===a.value||"18c78c5f-082c-4acc-a121-62fa334f34d3"===a.value||"5c9424e6-4f18-44e1-a074-e561643a7d91"===a.value||"2e58ef33-d019-4bd9-97b8-553e39e12646"===a.value||"8feb33db-71db-4fd0-a0e7-c02f81fcc76f"===a.value||"5415f1b1-a680-4870-89c5-3324d42da408"===a.value||"3e7d018b-9669-4f48-9298-d7c633f86b0f"===a.value?"Warning: This Regimen is retired.":"")}),l().createElement(A.ebT,{text:"Select",value:""}),m.Vm.map((function(e){return l().createElement(A.ebT,{key:e.concept,text:e.label,value:e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"artStartDate",control:ve,rules:{validate:function(e){return!e||!se||new Date(e)>=new Date(se)||"ART start date should not be before HIV confirmed date in Intake A"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"artStartDate",labelText:l().createElement("span",{className:o.A.label},"ART Start date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.artStartDate,invalidText:null===(n=be.artStartDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"monthsOnART",control:ve,rules:{pattern:{value:/^\d{1,3}$/,message:"Months on ART should not be more than three digits long"}},render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"monthsOnART",labelText:l().createElement("span",{className:o.A.label},"Months on ART")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.monthsOnART,invalidText:null===(t=be.monthsOnART)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"stillonTreatment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Still on Treatment")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.stillonTreatment,invalidText:null===(t=be.stillonTreatment)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}}))),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"ARVForPMTCT",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"ARV For PMTCT")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.ARVForPMTCT,invalidText:null===(t=be.ARVForPMTCT)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.ARVForPMTCT&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"healthFacility",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"healthFacility",labelText:l().createElement("span",{className:o.A.label},"Health Facility")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.healthFacility,invalidText:null===(t=be.healthFacility)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"regimenForMother",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.l6P,g(x({id:"regimenForMother",labelText:l().createElement("span",{className:o.A.label},"Regimen for Mother")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.regimenForMother,invalidText:null===(t=be.regimenForMother)||void 0===t?void 0:t.message,helperText:l().createElement("span",{className:o.A.helperText},"2798d3bc-2e0a-459c-b249-9516b380a69e"===a.value||"3495d89f-4d46-44d8-b1c9-d101bc9f15d4"===a.value||"ae0dc59c-eb3d-421b-913b-ee5a06ec6182"===a.value||"c5995b5c-19bb-42f6-895b-0b4627bc9dd1"===a.value||"a9da3e97-3916-4834-854c-6bcbc5142aca"===a.value||"8b727274-4a3c-4a81-ae50-9f759a87358d"===a.value||"a664a63f-57f5-4cfc-80c0-4a8456725c2a"===a.value||"71ecf102-8d3d-4a2a-b799-30773ad5d447"===a.value||"a87d9674-11af-4440-afd0-d097d84d0393"===a.value||"82e23d8c-4c9d-4b18-a960-9f8890b86f2f"===a.value||"cf29c24b-b796-4536-aaa5-8303f45bb5f8"===a.value||"2e84a82a-8b93-40fc-a556-2028d39f5710"===a.value?"Warning: This Regimen is retired.":"")}),l().createElement(A.ebT,{text:"Select",value:""}),m.z$.map((function(e){return l().createElement(A.ebT,{key:e.concept,text:e.label,value:e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"regimenForBaby",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.l6P,g(x({id:"regimenForBaby",labelText:l().createElement("span",{className:o.A.label},"Regimen for Baby")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.regimenForBaby,invalidText:null===(t=be.regimenForBaby)||void 0===t?void 0:t.message,helperText:l().createElement("span",{className:o.A.helperText},"c33efc4a-734f-4e89-92a4-71b259a5e547"===a.value||"7bbee32a-31a8-4199-a8a2-2d15c748d80a"===a.value||"756b4487-f358-4817-b248-9c05080bad67"===a.value||"fcafc964-f018-41c8-9dc9-343a2f4a94b5"===a.value||"7c30ed1a-a770-4b74-8704-82077427128d"===a.value||"18c78c5f-082c-4acc-a121-62fa334f34d3"===a.value||"5c9424e6-4f18-44e1-a074-e561643a7d91"===a.value||"2e58ef33-d019-4bd9-97b8-553e39e12646"===a.value||"8feb33db-71db-4fd0-a0e7-c02f81fcc76f"===a.value||"5415f1b1-a680-4870-89c5-3324d42da408"===a.value||"3e7d018b-9669-4f48-9298-d7c633f86b0f"===a.value?"Warning: This Regimen is retired.":"")}),l().createElement(A.ebT,{text:"Select",value:""}),m.CK.map((function(e){return l().createElement(A.ebT,{key:e.concept,text:e.label,value:e.concept})})))}})))))),l().createElement("h2",{className:o.A.heading},"CLIENT STATUS AT ENROLLMENT"),l().createElement(A.BJc,{gap:1,className:o.A.container},l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"VITAL SIGNS",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"temperature",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Temperature should be a valid number":!(n<25||n>50)||"Temperature should be between 25 and 50"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"temperature",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Temperature (in degree Celsius)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){["e","E","+","-"].includes(e.key)&&e.preventDefault()},invalid:!!be.temperature,invalidText:null===(n=be.temperature)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heartRate",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Heart Rate should be a valid number":!(n<25||n>300)||"Heart Rate should be between 25 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"heartRate",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"PULSE/Heart Rate (per minute)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.heartRate,invalidText:null===(n=be.heartRate)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"systolicBloodPressure",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Blood Pressure should be a valid number":!(n<50||n>300)||"Blood Pressure should be between 50 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,allowEmpty:!0,id:"systolicBloodPressure",label:l().createElement("span",{className:o.A.label},"Systolic Blood Pressure (in mmHg)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.systolicBloodPressure,invalidText:null===(n=be.systolicBloodPressure)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"diastolicBloodPressure",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Diastolic Blood Pressure should be a valid number":!(n<40||n>300)||"Diastolic Blood Pressure should be between 40 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,allowEmpty:!0,id:"diastolicBloodPressure",label:l().createElement("span",{className:o.A.label},"Diastolic Blood Pressure (in mmHg)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.diastolicBloodPressure,invalidText:null===(n=be.diastolicBloodPressure)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"rr",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Respiratory Rate should be a valid number":!(n<4||n>45)||"Respiratory Rate should be between 4 and 45"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"rr",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Respiratory Rate/RR (R/min)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.rr,invalidText:null===(n=be.rr)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"ANTHROPOMETRY",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"height",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"height should be a valid number":!(n<0||n>300)||"height should be between 40 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,allowEmpty:!0,id:"height",label:l().createElement("span",{className:o.A.label},"Height (in cm)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.height,invalidText:null===(n=be.height)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"weight",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"weight should be a valid number":!(n<0||n>500)||"weight should be between 0 and 500"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"weight",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Weight (in kg)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){["e","E","+","-"].includes(e.key)&&e.preventDefault()},invalid:!!be.weight,invalidText:null===(n=be.weight)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"bmi",control:ve,render:function(e){var n,t=e.field;return l().createElement(A.ksK,g(x({id:"bmi",labelText:l().createElement("span",{className:o.A.label},"BMI (kg/m²)")},t),{readOnly:!0,invalid:!!be.bmi,invalidText:null===(n=be.bmi)||void 0===n?void 0:n.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"patientFunctionalStatus",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Functional Status")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.patientFunctionalStatus,invalidText:null===(t=be.patientFunctionalStatus)||void 0===t?void 0:t.message}),m.oM.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})))),oe<=5&&l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"FOR CHILD ONLY",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"headCircumference",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"headCircumference",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Head Circumference (in cm)"),min:0,max:99999999,value:a.value,onChange:function(e,n){var t=n.value;a.onChange(Number(t)),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.headCircumference,invalidText:null===(n=be.headCircumference)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"anthropometryInterpretation",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Anthropometry interpretation")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.anthropometryInterpretation,invalidText:null===(t=be.anthropometryInterpretation)||void 0===t?void 0:t.message}),m.Cj.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"developmentalStatus",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Developmental Status (for a child < 5)")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.developmentalStatus,invalidText:null===(t=be.developmentalStatus)||void 0===t?void 0:t.message}),m.qh.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})))),"female"===ce&&l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PREGNANCY STATUS",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"pregnancyAtEnrollment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Client's Pregnancy at Enrollment")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.pregnancyAtEnrollment,invalidText:null===(t=be.pregnancyAtEnrollment)||void 0===t?void 0:t.message}),m.gm.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.pregnancyAtEnrollment&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lmpDate",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"lmpDate",labelText:l().createElement("span",{className:o.A.label},"LMP"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.lmpDate,invalidText:null===(n=be.lmpDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"eddDate",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"eddDate",labelText:l().createElement("span",{className:o.A.label},"EDD"),value:a.value,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.eddDate,invalidText:null===(n=be.eddDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})," ")))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PRESENTING SYMPTOMT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"presentingComplaints",control:ve,render:function(e){var n,t,a,r=e.field,i=m.lP.filter((function(e){var n,t,a;return null===(a=r)||void 0===a||null===(t=a.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,g(x({readOnly:null===(n=ee)||void 0===n?void 0:n.view,id:"presentingComplaints",titleText:l().createElement("span",{className:o.A.label},de("presentingComplaints","Presenting Complaints"))},r),{initialSelectedItems:i,items:m.lP,invalid:!!be.presentingComplaints,sortItems:function(e){return e},invalidText:null===(t=be.presentingComplaints)||void 0===t?void 0:t.message,onChange:function(e){var n=e.selectedItems;r.onChange({selectedItems:n}),r.onBlur()},value:(null===(a=r.value)||void 0===a?void 0:a.selectedItems)||[]}))}}),null===(W=ye)||void 0===W||null===(O=W.presentingComplaints)||void 0===O||null===(P=O.selectedItems)||void 0===P?void 0:P.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)}))),(null===(B=ye)||void 0===B||null===(R=B.presentingComplaints)||void 0===R||null===(D=R.selectedItems)||void 0===D?void 0:D.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherPresentingComplaints",control:ve,rules:{maxLength:{value:50,message:"Please use a maximum of 50 characters"}},render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"otherPresentingComplaints",labelText:l().createElement("span",{className:o.A.label},"Other presenting complaints")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.otherPresentingComplaints,invalidText:null===(t=be.otherPresentingComplaints)||void 0===t?void 0:t.message}))}})),(null===(L=ye)||void 0===L||null===(z=L.presentingComplaints)||void 0===z||null===(F=z.selectedItems)||void 0===F?void 0:F.some((function(e){return"832AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"percentOfLostBodyWeight",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"percentOfLostBodyWeight",labelText:l().createElement("span",{className:o.A.label},"Percent (%) of lost body weight")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.percentOfLostBodyWeight,invalidText:null===(t=be.percentOfLostBodyWeight)||void 0===t?void 0:t.message}))}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"GENERAL APPEARANCE AT ENROLLMENT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"generalAppearance",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"generalAppearance",labelText:l().createElement("span",{className:o.A.label},"General Appearance")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.generalAppearance,invalidText:null===(t=be.generalAppearance)||void 0===t?void 0:t.message}))}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PHYSICAL EXAMINATION BY SYSTEM",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"areAllSystemsNormal",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Are all systems normal")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.areAllSystemsNormal,invalidText:null===(t=be.areAllSystemsNormal)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heentExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"HEENT examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.heentExamination,invalidText:null===(t=be.heentExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.heentExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heentExaminationComment",control:ve,render:function(e){var n,t,a,r=e.field;return l().createElement(A.ksK,g(x({id:"heentExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of HEENT")},r),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,readOnly:null===(t=ee)||void 0===t?void 0:t.view,invalid:!!be.heentExaminationComment,invalidText:null===(a=be.heentExaminationComment)||void 0===a?void 0:a.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lymphNodesExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Lymph nodes examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.lymphNodesExamination,invalidText:null===(t=be.lymphNodesExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.lymphNodesExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lymphNodesExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"lymphNodesExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Lymph nodes")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.lymphNodesExaminationComment,invalidText:null===(t=be.lymphNodesExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"chestExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Chest examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.chestExamination,invalidText:null===(t=be.chestExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.chestExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"chestExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"chestExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Chest")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.chestExaminationComment,invalidText:null===(t=be.chestExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heartExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Heart examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.heartExamination,invalidText:null===(t=be.heartExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.heartExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heartExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"heartExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Heart")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.heartExaminationComment,invalidText:null===(t=be.heartExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"abdomenExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Abdomen examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.abdomenExamination,invalidText:null===(t=be.abdomenExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.abdomenExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"abdomenExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"abdomenExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Abdomen")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.abdomenExaminationComment,invalidText:null===(t=be.abdomenExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"genitourinarySystemExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Genitourinary system examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.genitourinarySystemExamination,invalidText:null===(t=be.genitourinarySystemExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.genitourinarySystemExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"genitourinarySystemExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"genitourinarySystemExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Genitourinary System")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.genitourinarySystemExaminationComment,invalidText:null===(t=be.genitourinarySystemExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"musculoskeletalSystemExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Musculoskeletal system examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.musculoskeletalSystemExamination,invalidText:null===(t=be.musculoskeletalSystemExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.musculoskeletalSystemExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"musculoskeletalSystemExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"musculoskeletalSystemExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Musculoskeletal System")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.musculoskeletalSystemExaminationComment,invalidText:null===(t=be.musculoskeletalSystemExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"skinExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Skin examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.skinExamination,invalidText:null===(t=be.skinExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.skinExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"skinExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"skinExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Skin")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.skinExaminationComment,invalidText:null===(t=be.skinExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"nervousSystemExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Nervous system examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.nervousSystemExamination,invalidText:null===(t=be.nervousSystemExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.nervousSystemExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"nervousSystemExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"nervousSystemExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Nervous System")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.nervousSystemExaminationComment,invalidText:null===(t=be.nervousSystemExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherPhysicalExaminationFindings",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"otherPhysicalExaminationFindings",labelText:l().createElement("span",{className:o.A.label},"Other Physical Examination Findings")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.otherPhysicalExaminationFindings,invalidText:null===(t=be.otherPhysicalExaminationFindings)||void 0===t?void 0:t.message}))}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"WHO STAGING",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"WHOStaging",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"WHO Staging")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.WHOStaging,invalidText:null===(t=be.WHOStaging)||void 0===t?void 0:t.message}),m.RY.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"whoWhy",control:ve,render:function(e){var n,t,a,r=e.field,i=m.wp.filter((function(e){var n,t,a;return null===(a=r)||void 0===a||null===(t=a.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,{readOnly:null===(n=ee)||void 0===n?void 0:n.view,id:"whoWhy",titleText:l().createElement("span",{className:o.A.label},de("whoWhy","Reasons for WHO Staging")),initialSelectedItems:i,items:m.wp,sortItems:function(e){return e},invalid:!!be.whoWhy,invalidText:null===(t=be.whoWhy)||void 0===t?void 0:t.message,onChange:function(e){var n=e.selectedItems;r.onChange({selectedItems:n}),r.onBlur()},onBlur:function(){return r.onBlur()},value:(null===(a=r.value)||void 0===a?void 0:a.selectedItems)||[]})}})),null===(V=ye)||void 0===V||null===(H=V.whoWhy)||void 0===H||null===(M=H.selectedItems)||void 0===M?void 0:M.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"INTAKE NOTES",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"intakeNotes",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.fs1,g(x({id:"intakeNotes",labelText:l().createElement("span",{className:o.A.label},"Intake Notes")},a),{rows:1,readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.intakeNotes,invalidText:null===(t=be.intakeNotes)||void 0===t?void 0:t.message}))}})))),l().createElement("h2",{className:o.A.heading},"ART ELIGIBILITY"),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"ART ELIGIBILITY ASSESSMENT AND PLAN",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"eligibileForART",control:ve,render:function(e){var n,t=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Eligible for ART")},t),{disabled:!0,invalid:!!be.eligibileForART,invalidText:null===(n=be.eligibileForART)||void 0===n?void 0:n.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:t.value===e.concept})})))}})," "),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"whyEligibleForART",control:ve,render:function(e){var n,t,a=e.field,r=m.J4.filter((function(e){var n,t,l;return null===(l=a)||void 0===l||null===(t=l.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,{readOnly:!0,id:"whyEligibleForART",titleText:l().createElement("span",{className:o.A.label},de("whyEligibleForART","Why eligible for ART")),initialSelectedItems:r,items:m.J4,invalid:!!be.whyEligibleForART,sortItems:function(e){return e},invalidText:null===(n=be.whyEligibleForART)||void 0===n?void 0:n.message,onChange:function(e){var n=e.selectedItems;a.onChange({selectedItems:n}),a.onBlur()},onBlur:function(){return a.onBlur()},value:(null===(t=a.value)||void 0===t?void 0:t.selectedItems)||[]})}}),l().createElement(A.vwO,{type:"yellow"},"Removed from the Recent Intake A")),null===(j=ye)||void 0===j||null===(Q=j.whyEligibleForART)||void 0===Q||null===(K=Q.selectedItems)||void 0===K?void 0:K.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)})),(null===(Y=ye)||void 0===Y||null===(U=Y.whyEligibleForART)||void 0===U||null===(G=U.selectedItems)||void 0===G?void 0:G.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherReasonWhyEligible",control:ve,rules:{maxLength:{value:50,message:"Please use a maximum of 50 characters"}},render:function(e){var n,t=e.field;return l().createElement(A.ksK,g(x({id:"otherReasonWhyEligible",labelText:l().createElement("span",{className:o.A.label},"Other reasons for ART eligibility")},t),{readOnly:!0,invalid:!!be.otherReasonWhyEligible,invalidText:null===(n=be.otherReasonWhyEligible)||void 0===n?void 0:n.message}))}})," ",l().createElement(A.vwO,{type:"yellow"},"Removed from the Recent Intake A")))))),l().createElement("div",{className:o.A.stickyButtonSet},l().createElement(A.$nd,{kind:"secondary",onClick:function(){return(0,i.closeWorkspace)("intake-b-form-workspace")},className:o.A.button},"Cancel"),!(null===(_=ee)||void 0===_?void 0:_.view)&&l().createElement(A.$nd,{className:o.A.button,kind:"primary",type:"submit",disabled:le},le?l().createElement(A.OuH,null):(null===($=ee)||void 0===$?void 0:$.edit)?"Update":"Save")))}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_icap_ethiopia_esm_ethiohri_intake=globalThis.webpackChunk_icap_ethiopia_esm_ethiohri_intake||[]).push([[475],{8350:(e,n,t)=>{t.d(n,{OY:()=>c,jo:()=>d});var a=t(5987),l=t(9324),A=t(4200),r=t(6072);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function o(e,n){if(e){if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}function c(e,n,t,c){var d,m,s,u,v=(s=(0,r.useState)([]),u=2,function(e){if(Array.isArray(e))return e}(s)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,l,A=[],r=!0,i=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(A.push(a.value),!n||A.length!==n);r=!0);}catch(e){i=!0,l=e}finally{try{r||null==t.return||t.return()}finally{if(i)throw l}}return A}}(s,u)||o(s,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=v[0],f=v[1],E=(c-1)*t,b="/ws/rest/v1/encounter?encounterType=".concat(n,"&patient=").concat(e,"&v=").concat(A.RZ,"&totalCount=true&limit=").concat(t,"&startIndex=").concat(E),h=(0,l.Ay)(b,a.openmrsFetch),y=h.data,x=h.error,g=h.isLoading,T=h.mutate;return(0,r.useEffect)((function(){y&&(y.data.results.sort((function(e,n){return new Date(n.encounterDatetime).getTime()-new Date(e.encounterDatetime).getTime()})),f(function(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(y.data.results)))}),[y]),{encounters:p,total:null===(m=y)||void 0===m||null===(d=m.data)||void 0===d?void 0:d.totalCount,isLoading:g,isError:x,mutate:T}}function d(e,n,t){var A,r,i,o,c,d,m=new URLSearchParams({patient:e,code:n,_sort:"-_lastUpdated",_count:"1"});t&&m.append("encounter.type",t);var s="".concat(a.fhirBaseUrl,"/Observation?").concat(m.toString()),u=(0,l.Ay)(s,a.openmrsFetch),v=u.data,p=u.error,f=u.isLoading;return{latestMatched:(null===(i=v)||void 0===i||null===(r=i.data)||void 0===r||null===(A=r.entry)||void 0===A?void 0:A.length)?null===(d=v)||void 0===d||null===(c=d.data)||void 0===c||null===(o=c.entry[0])||void 0===o?void 0:o.resource:null,latestLoading:f,latestError:p}}},8475:(e,n,t)=>{t.r(n),t.d(n,{default:()=>T});var a=t(6072),l=t.n(a),A=t(2480),r=t(9785),i=t(5987),o=t(9503),c=t(231),d=t.n(c),m=t(3670),s=t(6818),u=t(9208),v=t(4200),p=t(3941),f=t(3371),E=t(8350);function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function h(e,n,t,a,l,A,r){try{var i=e[A](r),o=i.value}catch(e){return void t(e)}i.done?n(o):Promise.resolve(o).then(a,l)}function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){y(e,n,t[n])}))}return e}function g(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}const T=function(e){var n,t,c,y,T,N,I,S,w,C,k,P,O,W,D,R,B,F,z,L,M,H,V,K,Q,j,G,U,Y,_,$,J,X,q,Z=e.encounter,ee=e.type,ne=e.mutateEncounters,te=(new Date).toISOString(),ae=(X=(0,a.useState)(!1),q=2,function(e){if(Array.isArray(e))return e}(X)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,l,A=[],r=!0,i=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(A.push(a.value),!n||A.length!==n);r=!0);}catch(e){i=!0,l=e}finally{try{r||null==t.return||t.return()}finally{if(i)throw l}}return A}}(X,q)||function(e,n){if(e){if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}(X,q)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),le=ae[0],Ae=ae[1],re=(0,i.usePatient)(),ie=(0,i.useSession)(),oe=d()().diff(d()(null===(t=re)||void 0===t||null===(n=t.patient)||void 0===n?void 0:n.birthDate),"year"),ce=null===(y=re)||void 0===y||null===(c=y.patient)||void 0===c?void 0:c.gender,de=(0,p.useTranslation)().t,me=(0,s.V)().facilityInfo,se=null!==(J=null===(T=(0,E.jo)(re.patientUuid,"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",v.gT).latestMatched)||void 0===T?void 0:T.valueDateTime)&&void 0!==J?J:null,ue=(0,r.mN)({defaultValues:Z?(0,u.j)(Z,m.oT,m.Jz,["339d3209-c797-457f-afb8-8d19d99c63b7","14718b2b-d38a-4f68-8e22-8bc739ae43f7","3bb2b035-fa5d-4abf-8d47-5f28fb9cf333","0675742c-ea84-4cab-a85f-54b46eadd1ee"]):m.oT,mode:"all"}),ve=ue.control,pe=ue.handleSubmit,fe=(ue.watch,ue.setValue),Ee=(ue.resetField,ue.formState),be=Ee.errors,he=Ee.touchedFields,ye=(0,r.FH)({control:ve});(0,a.useEffect)((function(){"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal&&(fe("heentExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("lymphNodesExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("chestExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("heartExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("abdomenExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("genitourinarySystemExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("musculoskeletalSystemExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("skinExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),fe("nervousSystemExamination","1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"))}),[fe,ye.areAllSystemsNormal]),(0,a.useEffect)((function(){!function(){var e=ye.height,n=ye.weight;if(!e||!n)return!0;var t=e/100,a=parseFloat((n/(t*t)).toFixed(1));fe("bmi",a)}()}),[ye.height,ye.weight,fe]);var xe,ge,Te=(0,a.useMemo)((function(){return{HIVRelatedOIs:function(e){return"131768AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.opportunisticInfectionPresent},otherOpportunisticIllnesses:function(e){var n,t;return"131768AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.opportunisticInfectionPresent&&(null===(t=e.HIVRelatedOIs)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))},healthFacility:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.ARVForPMTCT},regimenForMother:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.ARVForPMTCT},regimenForBaby:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.ARVForPMTCT},Regimen:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},artStartDate:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},monthsOnART:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},stillonTreatment:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lifelongARTTI},headCircumference:function(e){return oe<=5},anthropometryInterpretation:function(e){return oe<=5},developmentalStatus:function(e){return oe<=5},pregnancyAtEnrollment:function(e){return"female"===ce},lmpDate:function(e){return"female"===ce&&"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.pregnancyAtEnrollment},eddDate:function(e){return"female"===ce&&"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.pregnancyAtEnrollment},otherPresentingComplaints:function(e){var n,t;return null===(t=e.presentingComplaints)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept}))},percentOfLostBodyWeight:function(e){var n,t;return null===(t=e.presentingComplaints)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(e){return"832AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept}))},heentExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.heentExamination},lymphNodesExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.lymphNodesExamination},chestExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.chestExamination},heartExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.heartExamination},abdomenExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.abdomenExamination},genitourinarySystemExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.genitourinarySystemExamination},musculoskeletalSystemExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.musculoskeletalSystemExamination},skinExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.skinExamination},nervousSystemExaminationComment:function(e){return"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.nervousSystemExamination}}}),[ce,oe]),Ne=(xe=function(e){var n,t,a;return function(e,n){var t,a,l,A,r={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return A={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function i(A){return function(i){return function(A){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(l=2&A[0]?a.return:A[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,A[1])).done)return l;switch(a=0,l&&(A=[2&A[0],l.value]),A[0]){case 0:case 1:l=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,a=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(!((l=(l=r.trys).length>0&&l[l.length-1])||6!==A[0]&&2!==A[0])){r=0;continue}if(3===A[0]&&(!l||A[1]>l[0]&&A[1]<l[3])){r.label=A[1];break}if(6===A[0]&&r.label<l[1]){r.label=l[1],l=A;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(A);break}l[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(e,r)}catch(e){A=[6,e],a=0}finally{t=l=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,i])}}}(this,(function(l){switch(l.label){case 0:Ae(!0),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,(0,f.g)(e,{namespace:"rfe-forms",touchedFields:he,encounter:Z,conceptsUuid:m.Jz,encounterType:v.$w,formUuid:v.Go,encounterDate:te,patientUuid:re.patientUuid,providerUuid:ie.currentProvider.uuid,locationUuid:me.uuid,visibilityRules:Te,encounterUuid:null===(n=Z)||void 0===n?void 0:n.uuid,mutateEncounters:ne,workspaceName:"intake-b-form-workspace",editMode:null===(t=ee)||void 0===t?void 0:t.edit})];case 2:return l.sent(),[3,5];case 3:return a=l.sent(),console.error("Error submitting form:",a),[3,5];case 4:return Ae(!1),[7];case 5:return[2]}}))},ge=function(){var e=this,n=arguments;return new Promise((function(t,a){var l=xe.apply(e,n);function A(e){h(l,t,a,A,r,"next",e)}function r(e){h(l,t,a,A,r,"throw",e)}A(void 0)}))},function(e){return ge.apply(this,arguments)});return l().createElement(A.lVW,{onSubmit:pe(Ne),className:o.A.formNEw},l().createElement("h2",{className:o.A.heading},"HIV CARE/ART CLINIC INTAKE FORM-B"),l().createElement("div",{className:o.A.scrollableContent},l().createElement(A.BJc,{gap:1,className:o.A.container},l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PAST OPPORTUNISTIC ILLNESS(OI), PROPHYLAXIS AND TREATMENT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"opportunisticInfectionPresent",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Past Opportunistic Illnesses(OIs) present")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.opportunisticInfectionPresent,invalidText:null===(t=be.opportunisticInfectionPresent)||void 0===t?void 0:t.message}),m.SD.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"131768AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.opportunisticInfectionPresent&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"HIVRelatedOIs",control:ve,render:function(e){var n,t,a,r=e.field,i=m.bB.filter((function(e){var n,t,a;return null===(a=r)||void 0===a||null===(t=a.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,{readOnly:null===(n=ee)||void 0===n?void 0:n.view,id:"HIVRelatedOIs",titleText:l().createElement("span",{className:o.A.label},de("HIVRelatedOIs","Past Opportunistic Illnesses(OIs)")),initialSelectedItems:i,items:m.bB,sortItems:function(e){return e},invalid:!!be.HIVRelatedOIs,invalidText:null===(t=be.HIVRelatedOIs)||void 0===t?void 0:t.message,onChange:function(e){var n=e.selectedItems;r.onChange({selectedItems:n}),r.onBlur()},onBlur:function(){return r.onBlur()},value:(null===(a=r.value)||void 0===a?void 0:a.selectedItems)||[]})}}),null===(S=ye)||void 0===S||null===(I=S.HIVRelatedOIs)||void 0===I||null===(N=I.selectedItems)||void 0===N?void 0:N.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)}))),(null===(k=ye)||void 0===k||null===(C=k.HIVRelatedOIs)||void 0===C||null===(w=C.selectedItems)||void 0===w?void 0:w.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherOpportunisticIllnesses",control:ve,rules:{maxLength:{value:50,message:"Please use a maximum of 50 characters"}},render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"otherOpportunisticIllnesses",labelText:l().createElement("span",{className:o.A.label},"Other opportunistic illnesses")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.otherOpportunisticIllnesses,invalidText:null===(t=be.otherOpportunisticIllnesses)||void 0===t?void 0:t.message}))}}))))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PAST PROPHYLAXIS/TREATMENT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"cotrimoxazoleDateStarted",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"cotrimoxazoleDateStarted",labelText:l().createElement("span",{className:o.A.label},"Cotrimoxazole started date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.cotrimoxazoleDateStarted,invalidText:null===(n=be.cotrimoxazoleDateStarted)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"cotrimoxazoleDateStopped",control:ve,rules:{validate:function(e){return!e||!ye.cotrimoxazoleDateStarted||new Date(e)>new Date(ye.cotrimoxazoleDateStarted)||"Cotrimoxazole stopped date should not be earlier than started date"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"cotrimoxazoleDateStopped",labelText:l().createElement("span",{className:o.A.label},"Cotrimoxazole stopped date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.cotrimoxazoleDateStopped,invalidText:null===(n=be.cotrimoxazoleDateStopped)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"TBProphylaxisType",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"TB prophylaxis type")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.TBProphylaxisType,invalidText:null===(t=be.TBProphylaxisType)||void 0===t?void 0:t.message}),m.nc.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"inhStartedDate",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"inhStartedDate",labelText:l().createElement("span",{className:o.A.label},"TPT started date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.inhStartedDate,invalidText:null===(n=be.inhStartedDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"inhCompletedDate",control:ve,rules:{validate:function(e){return!e||!ye.inhStartedDate||new Date(e)>new Date(ye.inhStartedDate)||"TPT completed date should not be earlier than started date"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"inhCompletedDate",labelText:l().createElement("span",{className:o.A.label},"TPT completed date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.inhCompletedDate,invalidText:null===(n=be.inhCompletedDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"fluconazolePreventiveTherapyDateStarted",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"fluconazolePreventiveTherapyDateStarted",labelText:l().createElement("span",{className:o.A.label},"Fluconazole Preventive Therapy (FPT) started date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.fluconazolePreventiveTherapyDateStarted,invalidText:null===(n=be.fluconazolePreventiveTherapyDateStarted)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"fluconazolePreventiveTherapyDateCompleted",control:ve,rules:{validate:function(e){return!e||!ye.fluconazolePreventiveTherapyDateStarted||new Date(e)>new Date(ye.fluconazolePreventiveTherapyDateStarted)||"Fluconazole completed date should not be earlier than started date"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"fluconazolePreventiveTherapyDateCompleted",labelText:l().createElement("span",{className:o.A.label},"Fluconazole Preventive Therapy (FPT) completed date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.fluconazolePreventiveTherapyDateCompleted,invalidText:null===(n=be.fluconazolePreventiveTherapyDateCompleted)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lifelongARTTI",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Lifelong ART/TI")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.lifelongARTTI,invalidText:null===(t=be.lifelongARTTI)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.lifelongARTTI&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"Regimen",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.l6P,g(x({id:"Regimen",labelText:l().createElement("span",{className:o.A.label},"Regimens")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.Regimen,invalidText:null===(t=be.Regimen)||void 0===t?void 0:t.message,helperText:l().createElement("span",{className:o.A.helperText},"2798d3bc-2e0a-459c-b249-9516b380a69e"===a.value||"3495d89f-4d46-44d8-b1c9-d101bc9f15d4"===a.value||"ae0dc59c-eb3d-421b-913b-ee5a06ec6182"===a.value||"c5995b5c-19bb-42f6-895b-0b4627bc9dd1"===a.value||"a9da3e97-3916-4834-854c-6bcbc5142aca"===a.value||"8b727274-4a3c-4a81-ae50-9f759a87358d"===a.value||"71ecf102-8d3d-4a2a-b799-30773ad5d447"===a.value||"a87d9674-11af-4440-afd0-d097d84d0393"===a.value||"82e23d8c-4c9d-4b18-a960-9f8890b86f2f"===a.value||"cf29c24b-b796-4536-aaa5-8303f45bb5f8"===a.value||"2e84a82a-8b93-40fc-a556-2028d39f5710"===a.value||"c33efc4a-734f-4e89-92a4-71b259a5e547"===a.value||"7bbee32a-31a8-4199-a8a2-2d15c748d80a"===a.value||"756b4487-f358-4817-b248-9c05080bad67"===a.value||"fcafc964-f018-41c8-9dc9-343a2f4a94b5"===a.value||"7c30ed1a-a770-4b74-8704-82077427128d"===a.value||"18c78c5f-082c-4acc-a121-62fa334f34d3"===a.value||"5c9424e6-4f18-44e1-a074-e561643a7d91"===a.value||"2e58ef33-d019-4bd9-97b8-553e39e12646"===a.value||"8feb33db-71db-4fd0-a0e7-c02f81fcc76f"===a.value||"5415f1b1-a680-4870-89c5-3324d42da408"===a.value||"3e7d018b-9669-4f48-9298-d7c633f86b0f"===a.value?"Warning: This Regimen is retired.":"")}),l().createElement(A.ebT,{text:"Select",value:""}),m.Vm.map((function(e){return l().createElement(A.ebT,{key:e.concept,text:e.label,value:e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"artStartDate",control:ve,rules:{validate:function(e){return!e||!se||new Date(e)>=new Date(se)||"ART start date should not be before HIV confirmed date in Intake A"}},render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"artStartDate",labelText:l().createElement("span",{className:o.A.label},"ART Start date"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.artStartDate,invalidText:null===(n=be.artStartDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"monthsOnART",control:ve,rules:{pattern:{value:/^\d{1,3}$/,message:"Months on ART should not be more than three digits long"}},render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"monthsOnART",labelText:l().createElement("span",{className:o.A.label},"Months on ART")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.monthsOnART,invalidText:null===(t=be.monthsOnART)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"stillonTreatment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Still on Treatment")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.stillonTreatment,invalidText:null===(t=be.stillonTreatment)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}}))),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"ARVForPMTCT",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"ARV For PMTCT")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.ARVForPMTCT,invalidText:null===(t=be.ARVForPMTCT)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.ARVForPMTCT&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"healthFacility",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"healthFacility",labelText:l().createElement("span",{className:o.A.label},"Health Facility")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.healthFacility,invalidText:null===(t=be.healthFacility)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"regimenForMother",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.l6P,g(x({id:"regimenForMother",labelText:l().createElement("span",{className:o.A.label},"Regimen for Mother")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.regimenForMother,invalidText:null===(t=be.regimenForMother)||void 0===t?void 0:t.message,helperText:l().createElement("span",{className:o.A.helperText},"2798d3bc-2e0a-459c-b249-9516b380a69e"===a.value||"3495d89f-4d46-44d8-b1c9-d101bc9f15d4"===a.value||"ae0dc59c-eb3d-421b-913b-ee5a06ec6182"===a.value||"c5995b5c-19bb-42f6-895b-0b4627bc9dd1"===a.value||"a9da3e97-3916-4834-854c-6bcbc5142aca"===a.value||"8b727274-4a3c-4a81-ae50-9f759a87358d"===a.value||"a664a63f-57f5-4cfc-80c0-4a8456725c2a"===a.value||"71ecf102-8d3d-4a2a-b799-30773ad5d447"===a.value||"a87d9674-11af-4440-afd0-d097d84d0393"===a.value||"82e23d8c-4c9d-4b18-a960-9f8890b86f2f"===a.value||"cf29c24b-b796-4536-aaa5-8303f45bb5f8"===a.value||"2e84a82a-8b93-40fc-a556-2028d39f5710"===a.value?"Warning: This Regimen is retired.":"")}),l().createElement(A.ebT,{text:"Select",value:""}),m.z$.map((function(e){return l().createElement(A.ebT,{key:e.concept,text:e.label,value:e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"regimenForBaby",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.l6P,g(x({id:"regimenForBaby",labelText:l().createElement("span",{className:o.A.label},"Regimen for Baby")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.regimenForBaby,invalidText:null===(t=be.regimenForBaby)||void 0===t?void 0:t.message,helperText:l().createElement("span",{className:o.A.helperText},"c33efc4a-734f-4e89-92a4-71b259a5e547"===a.value||"7bbee32a-31a8-4199-a8a2-2d15c748d80a"===a.value||"756b4487-f358-4817-b248-9c05080bad67"===a.value||"fcafc964-f018-41c8-9dc9-343a2f4a94b5"===a.value||"7c30ed1a-a770-4b74-8704-82077427128d"===a.value||"18c78c5f-082c-4acc-a121-62fa334f34d3"===a.value||"5c9424e6-4f18-44e1-a074-e561643a7d91"===a.value||"2e58ef33-d019-4bd9-97b8-553e39e12646"===a.value||"8feb33db-71db-4fd0-a0e7-c02f81fcc76f"===a.value||"5415f1b1-a680-4870-89c5-3324d42da408"===a.value||"3e7d018b-9669-4f48-9298-d7c633f86b0f"===a.value?"Warning: This Regimen is retired.":"")}),l().createElement(A.ebT,{text:"Select",value:""}),m.CK.map((function(e){return l().createElement(A.ebT,{key:e.concept,text:e.label,value:e.concept})})))}})))))),l().createElement("h2",{className:o.A.heading},"CLIENT STATUS AT ENROLLMENT"),l().createElement(A.BJc,{gap:1,className:o.A.container},l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"VITAL SIGNS",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"temperature",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Temperature should be a valid number":!(n<25||n>50)||"Temperature should be between 25 and 50"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"temperature",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Temperature (in degree Celsius)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){["e","E","+","-"].includes(e.key)&&e.preventDefault()},invalid:!!be.temperature,invalidText:null===(n=be.temperature)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heartRate",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Heart Rate should be a valid number":!(n<25||n>300)||"Heart Rate should be between 25 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"heartRate",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"PULSE/Heart Rate (per minute)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.heartRate,invalidText:null===(n=be.heartRate)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"systolicBloodPressure",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Blood Pressure should be a valid number":!(n<50||n>300)||"Blood Pressure should be between 50 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,allowEmpty:!0,id:"systolicBloodPressure",label:l().createElement("span",{className:o.A.label},"Systolic Blood Pressure (in mmHg)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.systolicBloodPressure,invalidText:null===(n=be.systolicBloodPressure)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"diastolicBloodPressure",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Diastolic Blood Pressure should be a valid number":!(n<40||n>300)||"Diastolic Blood Pressure should be between 40 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,allowEmpty:!0,id:"diastolicBloodPressure",label:l().createElement("span",{className:o.A.label},"Diastolic Blood Pressure (in mmHg)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.diastolicBloodPressure,invalidText:null===(n=be.diastolicBloodPressure)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"rr",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"Respiratory Rate should be a valid number":!(n<4||n>45)||"Respiratory Rate should be between 4 and 45"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"rr",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Respiratory Rate/RR (R/min)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.rr,invalidText:null===(n=be.rr)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"ANTHROPOMETRY",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"height",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"height should be a valid number":!(n<0||n>300)||"height should be between 40 and 300"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,allowEmpty:!0,id:"height",label:l().createElement("span",{className:o.A.label},"Height (in cm)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.height,invalidText:null===(n=be.height)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"weight",control:ve,rules:{validate:function(e){if(null==e)return!0;var n=Number(e);return isNaN(n)?"weight should be a valid number":!(n<0||n>500)||"weight should be between 0 and 500"}},render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"weight",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Weight (in kg)"),value:a.value,onChange:function(e,n){var t=n.value;a.onChange(""!==t?Number(t):null),a.onBlur()},onKeyDown:function(e){["e","E","+","-"].includes(e.key)&&e.preventDefault()},invalid:!!be.weight,invalidText:null===(n=be.weight)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"bmi",control:ve,render:function(e){var n,t=e.field;return l().createElement(A.ksK,g(x({id:"bmi",labelText:l().createElement("span",{className:o.A.label},"BMI (kg/m²)")},t),{readOnly:!0,invalid:!!be.bmi,invalidText:null===(n=be.bmi)||void 0===n?void 0:n.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"patientFunctionalStatus",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Functional Status")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.patientFunctionalStatus,invalidText:null===(t=be.patientFunctionalStatus)||void 0===t?void 0:t.message}),m.oM.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})))),oe<=5&&l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"FOR CHILD ONLY",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"headCircumference",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.Q7x,{disableWheel:!0,id:"headCircumference",allowEmpty:!0,label:l().createElement("span",{className:o.A.label},"Head Circumference (in cm)"),min:0,max:99999999,value:a.value,onChange:function(e,n){var t=n.value;a.onChange(Number(t)),a.onBlur()},onKeyDown:function(e){(["e","E","+","-"].includes(e.key)||1===e.key.length&&!/\d/.test(e.key))&&e.preventDefault()},invalid:!!be.headCircumference,invalidText:null===(n=be.headCircumference)||void 0===n?void 0:n.message,readOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"anthropometryInterpretation",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Anthropometry interpretation")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.anthropometryInterpretation,invalidText:null===(t=be.anthropometryInterpretation)||void 0===t?void 0:t.message}),m.Cj.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"developmentalStatus",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Developmental Status (for a child < 5)")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.developmentalStatus,invalidText:null===(t=be.developmentalStatus)||void 0===t?void 0:t.message}),m.qh.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})))),"female"===ce&&l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PREGNANCY STATUS",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"pregnancyAtEnrollment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Client's Pregnancy at Enrollment")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.pregnancyAtEnrollment,invalidText:null===(t=be.pregnancyAtEnrollment)||void 0===t?void 0:t.message}),m.gm.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.pregnancyAtEnrollment&&l().createElement(l().Fragment,null,l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lmpDate",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"lmpDate",labelText:l().createElement("span",{className:o.A.label},"LMP"),value:a.value,maxDate:te,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.lmpDate,invalidText:null===(n=be.lmpDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"eddDate",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(i.OpenmrsDatePicker,{id:"eddDate",labelText:l().createElement("span",{className:o.A.label},"EDD"),value:a.value,onChange:function(e){a.onChange(e),a.onBlur()},onBlur:function(){return a.onBlur()},invalid:!!be.eddDate,invalidText:null===(n=be.eddDate)||void 0===n?void 0:n.message,isReadOnly:null===(t=ee)||void 0===t?void 0:t.view})}})," ")))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PRESENTING SYMPTOMT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"presentingComplaints",control:ve,render:function(e){var n,t,a,r=e.field,i=m.lP.filter((function(e){var n,t,a;return null===(a=r)||void 0===a||null===(t=a.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,g(x({readOnly:null===(n=ee)||void 0===n?void 0:n.view,id:"presentingComplaints",titleText:l().createElement("span",{className:o.A.label},de("presentingComplaints","Presenting Complaints"))},r),{initialSelectedItems:i,items:m.lP,invalid:!!be.presentingComplaints,sortItems:function(e){return e},invalidText:null===(t=be.presentingComplaints)||void 0===t?void 0:t.message,onChange:function(e){var n=e.selectedItems;r.onChange({selectedItems:n}),r.onBlur()},value:(null===(a=r.value)||void 0===a?void 0:a.selectedItems)||[]}))}}),null===(W=ye)||void 0===W||null===(O=W.presentingComplaints)||void 0===O||null===(P=O.selectedItems)||void 0===P?void 0:P.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)}))),(null===(B=ye)||void 0===B||null===(R=B.presentingComplaints)||void 0===R||null===(D=R.selectedItems)||void 0===D?void 0:D.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherPresentingComplaints",control:ve,rules:{maxLength:{value:50,message:"Please use a maximum of 50 characters"}},render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"otherPresentingComplaints",labelText:l().createElement("span",{className:o.A.label},"Other presenting complaints")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.otherPresentingComplaints,invalidText:null===(t=be.otherPresentingComplaints)||void 0===t?void 0:t.message}))}})),(null===(L=ye)||void 0===L||null===(z=L.presentingComplaints)||void 0===z||null===(F=z.selectedItems)||void 0===F?void 0:F.some((function(e){return"832AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"percentOfLostBodyWeight",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"percentOfLostBodyWeight",labelText:l().createElement("span",{className:o.A.label},"Percent (%) of lost body weight")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.percentOfLostBodyWeight,invalidText:null===(t=be.percentOfLostBodyWeight)||void 0===t?void 0:t.message}))}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"GENERAL APPEARANCE AT ENROLLMENT",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"generalAppearance",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"generalAppearance",labelText:l().createElement("span",{className:o.A.label},"General Appearance")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.generalAppearance,invalidText:null===(t=be.generalAppearance)||void 0===t?void 0:t.message}))}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"PHYSICAL EXAMINATION BY SYSTEM",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"areAllSystemsNormal",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Are all systems normal")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.areAllSystemsNormal,invalidText:null===(t=be.areAllSystemsNormal)||void 0===t?void 0:t.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heentExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"HEENT examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.heentExamination,invalidText:null===(t=be.heentExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.heentExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heentExaminationComment",control:ve,render:function(e){var n,t,a,r=e.field;return l().createElement(A.ksK,g(x({id:"heentExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of HEENT")},r),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,readOnly:null===(t=ee)||void 0===t?void 0:t.view,invalid:!!be.heentExaminationComment,invalidText:null===(a=be.heentExaminationComment)||void 0===a?void 0:a.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lymphNodesExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Lymph nodes examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.lymphNodesExamination,invalidText:null===(t=be.lymphNodesExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.lymphNodesExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"lymphNodesExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"lymphNodesExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Lymph nodes")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.lymphNodesExaminationComment,invalidText:null===(t=be.lymphNodesExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"chestExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Chest examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.chestExamination,invalidText:null===(t=be.chestExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.chestExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"chestExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"chestExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Chest")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.chestExaminationComment,invalidText:null===(t=be.chestExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heartExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Heart examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.heartExamination,invalidText:null===(t=be.heartExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.heartExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"heartExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"heartExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Heart")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.heartExaminationComment,invalidText:null===(t=be.heartExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"abdomenExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Abdomen examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.abdomenExamination,invalidText:null===(t=be.abdomenExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.abdomenExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"abdomenExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"abdomenExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Abdomen")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.abdomenExaminationComment,invalidText:null===(t=be.abdomenExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"genitourinarySystemExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Genitourinary system examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.genitourinarySystemExamination,invalidText:null===(t=be.genitourinarySystemExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.genitourinarySystemExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"genitourinarySystemExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"genitourinarySystemExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Genitourinary System")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.genitourinarySystemExaminationComment,invalidText:null===(t=be.genitourinarySystemExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"musculoskeletalSystemExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Musculoskeletal system examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.musculoskeletalSystemExamination,invalidText:null===(t=be.musculoskeletalSystemExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.musculoskeletalSystemExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"musculoskeletalSystemExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"musculoskeletalSystemExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Musculoskeletal System")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.musculoskeletalSystemExaminationComment,invalidText:null===(t=be.musculoskeletalSystemExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"skinExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Skin examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.skinExamination,invalidText:null===(t=be.skinExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.skinExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"skinExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"skinExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Skin")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.skinExaminationComment,invalidText:null===(t=be.skinExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"nervousSystemExamination",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Nervous system examination")},a),{disabled:(null===(n=ee)||void 0===n?void 0:n.view)||"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.areAllSystemsNormal,invalid:!!be.nervousSystemExamination,invalidText:null===(t=be.nervousSystemExamination)||void 0===t?void 0:t.message}),m.VG.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===ye.nervousSystemExamination&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"nervousSystemExaminationComment",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"nervousSystemExaminationComment",labelText:l().createElement("span",{className:o.A.label},"Specify Abnormal Finding of Nervous System")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.nervousSystemExaminationComment,invalidText:null===(t=be.nervousSystemExaminationComment)||void 0===t?void 0:t.message}))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherPhysicalExaminationFindings",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.ksK,g(x({id:"otherPhysicalExaminationFindings",labelText:l().createElement("span",{className:o.A.label},"Other Physical Examination Findings")},a),{readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.otherPhysicalExaminationFindings,invalidText:null===(t=be.otherPhysicalExaminationFindings)||void 0===t?void 0:t.message}))}})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"WHO STAGING",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"WHOStaging",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"WHO Staging")},a),{disabled:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.WHOStaging,invalidText:null===(t=be.WHOStaging)||void 0===t?void 0:t.message}),m.RY.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:a.value===e.concept})})))}})),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"whoWhy",control:ve,render:function(e){var n,t,a,r=e.field,i=m.wp.filter((function(e){var n,t,a;return null===(a=r)||void 0===a||null===(t=a.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,{readOnly:null===(n=ee)||void 0===n?void 0:n.view,id:"whoWhy",titleText:l().createElement("span",{className:o.A.label},de("whoWhy","Reasons for WHO Staging")),initialSelectedItems:i,items:m.wp,sortItems:function(e){return e},invalid:!!be.whoWhy,invalidText:null===(t=be.whoWhy)||void 0===t?void 0:t.message,onChange:function(e){var n=e.selectedItems;r.onChange({selectedItems:n}),r.onBlur()},onBlur:function(){return r.onBlur()},value:(null===(a=r.value)||void 0===a?void 0:a.selectedItems)||[]})}})),null===(V=ye)||void 0===V||null===(H=V.whoWhy)||void 0===H||null===(M=H.selectedItems)||void 0===M?void 0:M.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)})))),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"INTAKE NOTES",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"intakeNotes",control:ve,render:function(e){var n,t,a=e.field;return l().createElement(A.fs1,g(x({id:"intakeNotes",labelText:l().createElement("span",{className:o.A.label},"Intake Notes")},a),{rows:1,readOnly:null===(n=ee)||void 0===n?void 0:n.view,invalid:!!be.intakeNotes,invalidText:null===(t=be.intakeNotes)||void 0===t?void 0:t.message}))}})))),l().createElement("h2",{className:o.A.heading},"ART ELIGIBILITY"),l().createElement(A.nD3,null,l().createElement(A.AsP,{open:!0,title:"ART ELIGIBILITY ASSESSMENT AND PLAN",className:o.A.formContainer},l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"eligibileForART",control:ve,render:function(e){var n,t=e.field;return l().createElement(A.zWQ,g(x({orientation:"vertical",legendText:l().createElement("span",{className:o.A.label},"Eligible for ART")},t),{disabled:!0,invalid:!!be.eligibileForART,invalidText:null===(n=be.eligibileForART)||void 0===n?void 0:n.message}),m.r4.map((function(e){return l().createElement(A.aaP,{key:e.concept,value:e.concept,labelText:e.label,checked:t.value===e.concept})})))}})," "),l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"whyEligibleForART",control:ve,render:function(e){var n,t,a=e.field,r=m.J4.filter((function(e){var n,t,l;return null===(l=a)||void 0===l||null===(t=l.value)||void 0===t||null===(n=t.selectedItems)||void 0===n?void 0:n.some((function(n){return n.concept===e.concept}))}));return l().createElement(A.KFt,{readOnly:!0,id:"whyEligibleForART",titleText:l().createElement("span",{className:o.A.label},de("whyEligibleForART","Why eligible for ART")),initialSelectedItems:r,items:m.J4,invalid:!!be.whyEligibleForART,sortItems:function(e){return e},invalidText:null===(n=be.whyEligibleForART)||void 0===n?void 0:n.message,onChange:function(e){var n=e.selectedItems;a.onChange({selectedItems:n}),a.onBlur()},onBlur:function(){return a.onBlur()},value:(null===(t=a.value)||void 0===t?void 0:t.selectedItems)||[]})}}),l().createElement(A.vwO,{type:"yellow"},"Removed from the Recent Intake B")),null===(j=ye)||void 0===j||null===(Q=j.whyEligibleForART)||void 0===Q||null===(K=Q.selectedItems)||void 0===K?void 0:K.map((function(e){return l().createElement(A.vwO,{key:e.concept,type:"gray"},e.label)})),(null===(Y=ye)||void 0===Y||null===(U=Y.whyEligibleForART)||void 0===U||null===(G=U.selectedItems)||void 0===G?void 0:G.some((function(e){return"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e.concept})))&&l().createElement("div",{className:o.A.fieldWrapper},l().createElement(r.xI,{name:"otherReasonWhyEligible",control:ve,rules:{maxLength:{value:50,message:"Please use a maximum of 50 characters"}},render:function(e){var n,t=e.field;return l().createElement(A.ksK,g(x({id:"otherReasonWhyEligible",labelText:l().createElement("span",{className:o.A.label},"Other reasons for ART eligibility")},t),{readOnly:!0,invalid:!!be.otherReasonWhyEligible,invalidText:null===(n=be.otherReasonWhyEligible)||void 0===n?void 0:n.message}))}})," ",l().createElement(A.vwO,{type:"yellow"},"Removed from the Recent Intake B")))))),l().createElement("div",{className:o.A.stickyButtonSet},l().createElement(A.$nd,{kind:"secondary",onClick:function(){return(0,i.closeWorkspace)("intake-b-form-workspace")},className:o.A.button},"Cancel"),!(null===(_=ee)||void 0===_?void 0:_.view)&&l().createElement(A.$nd,{className:o.A.button,kind:"primary",type:"submit",disabled:le},le?l().createElement(A.OuH,null):(null===($=ee)||void 0===$?void 0:$.edit)?"Update":"Save")))}}}]);
|
package/package.json
CHANGED