Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCMOHAD-27312 Required Field Missing Issue Fixed #1051

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const columns = [

export default class operationAssessmentRecords extends OmniscriptBaseMixin(NavigationMixin(LightningElement)) {
@api recordId;
@api CATAssessmentJSON;
@api catassessmentjson;
@track error;
showSpinner = false;
columns = columns;
Expand Down Expand Up @@ -61,8 +61,8 @@ export default class operationAssessmentRecords extends OmniscriptBaseMixin(Navi
sMethodName: "inspection_AssessmentQuestions",
options: JSON.stringify(options)
};
if(this.CATAssessmentJSON) {
const data = this.CATAssessmentJSON;
if(this.catassessmentjson) {
const data = this.catassessmentjson;
let rcvParsedData = JSON.parse(JSON.stringify(data));
this._actionUtil
.executeAction(params, null, this, null, null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,29 +110,31 @@
<upsertKey>false</upsertKey>
</omniDataTransformItem>
<omniDataTransformItem>
<disabled>true</disabled>
<disabled>false</disabled>
<filterGroup>0.0</filterGroup>
<globalKey>DRUpdateScorewhenBlankCustom0jIAq0000002iL7MAIItem3</globalKey>
<inputFieldName>SingleListJSON:RiskScore</inputFieldName>
<globalKey>DRUpdateScorewhenBlankCustom8263</globalKey>
<inputFieldName>SingleListJSON:DateCreated</inputFieldName>
<inputObjectQuerySequence>0.0</inputObjectQuerySequence>
<linkedObjectSequence>0.0</linkedObjectSequence>
<name>DRUpdateScorewhenBlank</name>
<outputCreationSequence>1.0</outputCreationSequence>
<outputFieldName>UserScore__c</outputFieldName>
<outputFieldFormat>Date(MM/dd/yyyy)</outputFieldFormat>
<outputFieldName>DateCreated</outputFieldName>
<outputObjectName>RegulatoryCodeViolation</outputObjectName>
<requiredForUpsert>false</requiredForUpsert>
<requiredForUpsert>true</requiredForUpsert>
<upsertKey>false</upsertKey>
</omniDataTransformItem>
<omniDataTransformItem>
<disabled>false</disabled>
<disabled>true</disabled>
<filterGroup>0.0</filterGroup>
<globalKey>DRUpdateScorewhenBlankCustom0jIAq0000002iL7MAIItem4</globalKey>
<inputFieldName>SingleListJSON:Description</inputFieldName>
<filterOperator>=</filterOperator>
<globalKey>DRUpdateScorewhenBlankCustom0jIAq0000002iL7MAIItem0</globalKey>
<inputObjectQuerySequence>0.0</inputObjectQuerySequence>
<linkedObjectSequence>0.0</linkedObjectSequence>
<migrationValue>FAKEMAPPING</migrationValue>
<name>DRUpdateScorewhenBlank</name>
<outputCreationSequence>1.0</outputCreationSequence>
<outputFieldName>Description</outputFieldName>
<outputFieldName>Id</outputFieldName>
<outputObjectName>RegulatoryCodeViolation</outputObjectName>
<requiredForUpsert>false</requiredForUpsert>
<upsertKey>false</upsertKey>
Expand Down Expand Up @@ -168,28 +170,116 @@
<omniDataTransformItem>
<disabled>true</disabled>
<filterGroup>0.0</filterGroup>
<filterOperator>=</filterOperator>
<globalKey>DRUpdateScorewhenBlankCustom0jIAq0000002iL7MAIItem0</globalKey>
<globalKey>DRUpdateScorewhenBlankCustom0jIAq0000002iL7MAIItem3</globalKey>
<inputFieldName>SingleListJSON:RiskScore</inputFieldName>
<inputObjectQuerySequence>0.0</inputObjectQuerySequence>
<linkedObjectSequence>0.0</linkedObjectSequence>
<migrationValue>FAKEMAPPING</migrationValue>
<name>DRUpdateScorewhenBlank</name>
<outputCreationSequence>1.0</outputCreationSequence>
<outputFieldName>Id</outputFieldName>
<outputFieldName>UserScore__c</outputFieldName>
<outputObjectName>RegulatoryCodeViolation</outputObjectName>
<requiredForUpsert>false</requiredForUpsert>
<upsertKey>false</upsertKey>
</omniDataTransformItem>
<omniDataTransformItem>
<disabled>false</disabled>
<filterGroup>0.0</filterGroup>
<globalKey>DRUpdateScorewhenBlankCustom0jIAq0000002iL7MAIItem4</globalKey>
<inputFieldName>SingleListJSON:Description</inputFieldName>
<inputObjectQuerySequence>0.0</inputObjectQuerySequence>
<linkedObjectSequence>0.0</linkedObjectSequence>
<name>DRUpdateScorewhenBlank</name>
<outputCreationSequence>1.0</outputCreationSequence>
<outputFieldName>Description</outputFieldName>
<outputObjectName>RegulatoryCodeViolation</outputObjectName>
<requiredForUpsert>false</requiredForUpsert>
<upsertKey>false</upsertKey>
</omniDataTransformItem>
<outputType>SObject</outputType>
<previewJsonData>{
&quot;ParentList&quot; : [ {
&quot;LoopBlockIterationIndex&quot; : 1,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001VpMAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000IjI1IAK&quot;,
&quot;RiskScore&quot; : 10
&quot;Severity&quot; : &quot;Significant Harm&quot;,
&quot;UserScore&quot; : 15,
&quot;RiskScore&quot; : 10,
&quot;RegulatoryCode&quot; : &quot;S 55.3.b.i - Providing Hospitality Services - Menu plan&quot;,
&quot;Scope&quot; : &quot;Isolated&quot;,
&quot;Description&quot; : &quot;Hello&quot;,
&quot;Category&quot; : &quot;Hospitality Service&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must consult with a dietitianto review and, if appropriate, revise the menu plan ifthe daily menu changes significantly.&quot;
}, {
&quot;LoopBlockIterationIndex&quot; : 2,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001VnMAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000IjJdIAK&quot;,
&quot;RiskScore&quot; : 16
&quot;Severity&quot; : &quot;Significant Harm&quot;,
&quot;RiskScore&quot; : 10,
&quot;RegulatoryCode&quot; : &quot;S 55.2.c - Providing Hospitality Services - Menu plan&quot;,
&quot;Scope&quot; : &quot;Isolated&quot;,
&quot;Description&quot; : &quot;Hello&quot;,
&quot;Category&quot; : &quot;Hospitality Service&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must ensure that a menu plan is developed thatprovides for a variety of foods and fluids, taking into consideration the nutritional needs and cultural, spiritual and personal preferences of residents.&quot;
}, {
&quot;LoopBlockIterationIndex&quot; : 3,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001VaMAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000IjLFIA0&quot;,
&quot;Severity&quot; : &quot;Significant Harm&quot;,
&quot;RiskScore&quot; : 14,
&quot;RegulatoryCode&quot; : &quot;S 51.2.b.i - Resident Health and Safety - Reportable incidents&quot;,
&quot;Scope&quot; : &quot;Widespread&quot;,
&quot;Category&quot; : &quot;Health and Safety&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must do all of the following if this section applies:within 24 hours of the incident, report the incident to all of the following:the registrar, in the form and manner required by the registrar.&quot;
}, {
&quot;Id&quot; : &quot;0fvAq000000JrgXIAS&quot;
&quot;LoopBlockIterationIndex&quot; : 4,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001VbMAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000IjMrIAK&quot;,
&quot;Severity&quot; : &quot;Actual Harm/Immediate Jeopardy&quot;,
&quot;RiskScore&quot; : 19,
&quot;RegulatoryCode&quot; : &quot;S 51.2.b.ii - Resident Health and Safety - Reportable incidents&quot;,
&quot;Scope&quot; : &quot;Widespread&quot;,
&quot;Category&quot; : &quot;Health and Safety&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must do all of the following if this section applies:within 24 hours of the incident, report the incident to all of the following:the resident&apos;s contact person, if appropriate, and any other person the resident requests.&quot;
}, {
&quot;LoopBlockIterationIndex&quot; : 5,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001U7MAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000JrdJIAS&quot;,
&quot;Severity&quot; : &quot;Actual Harm/Immediate Jeopardy&quot;,
&quot;RiskScore&quot; : 18,
&quot;RegulatoryCode&quot; : &quot;S 33.3.b - Start of Residency - Personal service plan&quot;,
&quot;Scope&quot; : &quot;Pattern&quot;,
&quot;Category&quot; : &quot;Planning and Support Agreements&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must ensure that a personal service plan is approved by the resident.&quot;
}, {
&quot;LoopBlockIterationIndex&quot; : 6,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001U6MAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000JrevIAC&quot;,
&quot;Severity&quot; : &quot;Significant Harm&quot;,
&quot;RiskScore&quot; : 13,
&quot;RegulatoryCode&quot; : &quot;S 33.3.a.ii - Start of Residency - Personal service plan&quot;,
&quot;Scope&quot; : &quot;Pattern&quot;,
&quot;Category&quot; : &quot;Planning and Support Agreements&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must ensure that a personal service plan is developed with the participation of to the extent it is reasonably practicable to do so, the persons whom the resident requests to participate.&quot;
}, {
&quot;LoopBlockIterationIndex&quot; : 7,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001VoMAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000JrgXIAS&quot;,
&quot;Severity&quot; : &quot;Actual Harm/Immediate Jeopardy&quot;,
&quot;RiskScore&quot; : 18,
&quot;RegulatoryCode&quot; : &quot;S 55.3.a - Providing Hospitality Services - Menu plan&quot;,
&quot;Scope&quot; : &quot;Pattern&quot;,
&quot;Category&quot; : &quot;Hospitality Service&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must consult with a dietitianto make an initial menu plan.&quot;
}, {
&quot;LoopBlockIterationIndex&quot; : 8,
&quot;RegulatoryCodeId&quot; : &quot;0fCAq00000001VqMAI&quot;,
&quot;Id&quot; : &quot;0fvAq000000Jri9IAC&quot;,
&quot;Severity&quot; : &quot;Actual Harm/Immediate Jeopardy&quot;,
&quot;RiskScore&quot; : 15,
&quot;RegulatoryCode&quot; : &quot;S 55.3.b.ii - Providing Hospitality Services - Menu plan&quot;,
&quot;Scope&quot; : &quot;Isolated&quot;,
&quot;Category&quot; : &quot;Hospitality Service&quot;,
&quot;AssessmentQuestion&quot; : &quot;A registrant must consult with a dietitianto review and, if appropriate, revise the menu plan if5 years have passed since the menu plan was last reviewed.&quot;
} ]
}</previewJsonData>
<processSuperBulk>false</processSuperBulk>
Expand Down
Loading