Skip to content

Commit

Permalink
feat(abp 10): create abp 10 general assurances webform (#333)
Browse files Browse the repository at this point in the history
* testing out 3.1 logic

* adjust

* Update v1.ts

* Update v1.ts

* add section 1937

* finished 1937 coverage

* assurances

* continue logic

* add conditional logic

* adjust logic

* add adjusted feedback logic

* Update v1.ts

* cleanup and feedback logic

* Update checkbox.tsx

* add dependency wrapper to checkbox

* clean up styling logic

* add logic to clear checkbox if hidden

* cleanup

* Update validator.ts

* add comments

* Update validator.ts

* add logic abp10

* add no logic

* add input styling
  • Loading branch information
jdinh8124 authored Jan 19, 2024
1 parent 96337e8 commit 8987056
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
102 changes: 102 additions & 0 deletions src/services/api/layers/ABP10/v1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
import { FormSchema } from "shared-types";

const ABP10: FormSchema = {
header: "ABP 10: General assurances",
sections: [
{
title: "Economy and efficiency of plans",
form: [
{
slots: [
{
rhf: "Checkbox",
name: "economy_and_efficiency_of_plans",
rules: { required: "* Required" },
props: {
options: [
{
label:
"The state or territory assures that Alternative Benefit Plan coverage is provided in accordance with federal upper payment limit requirements and other economy and efficiency principles that would otherwise be applicable to the services or delivery system through which the coverage and benefits are obtained.",
value: "assures_alternative_benefit_plan_in_accordance",
},
],
},
},
{
rhf: "Select",
name: "economy_and_efficeiency_same_approach_as_medicaid_state_plan",
label:
"Will economy and efficiency be achieved using the same approach as used for Medicaid state plan services?",
labelStyling: "font-bold",
rules: { required: "* Required" },
props: {
className: "w-[150px]",
options: [
{ label: "Yes", value: "yes" },
{
label: "No",
value: "no",
},
],
},
},
{
rhf: "Textarea",
label: "Describe the approach",
labelStyling: "font-bold",
name: "describe_approach",
formItemStyling: "ml-[0.6rem] px-4 border-l-4 border-l-primary",
rules: { required: "* Required" },
dependency: {
conditions: [
{
name: "economy_and_efficeiency_same_approach_as_medicaid_state_plan",
type: "expectedValue",
expectedValue: "no",
},
],
effect: { type: "show" },
},
},
],
},
],
},
{
title: "Compliance with the law",
form: [
{
slots: [
{
rhf: "Checkbox",
name: "compliance_with_the_law",
rules: { required: "* Required" },
props: {
options: [
{
label:
"The state or territory will continue to comply with all other provisions of the Social Security Act in the administration of the state or territory plan under this title.",
value: "comply_with_social_security_act",
},
{
label:
"The state or territory assures that Alternative Benefit Plan benefits designs shall conform to the non-discrimination requirements at 42 CFR 430.2 and 42 CFR 440.347(e).",
value: "assures_alternative_benefit_plan_shall_conform",
},
{
label:
"The state or territory assures that all providers of Alternative Benefit Plan benefits shall meet the provider qualification requirements of the base benchmark plan and/or the Medicaid state plan.",
value:
"providers_of_alternative_benefit_plan_meets_provider_qualifications",
},
],
},
},
],
},
],
},
],
};

export const form = ABP10;
6 changes: 6 additions & 0 deletions src/services/ui/src/components/Webform/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export const Webforms = () => {
>
ABP 3.1
</Link>
<Link
path="/webform/:id/:version"
params={{ id: "abp10", version: 1 }}
>
ABP 10
</Link>
<Link path="/guides/abp">Implementation Guide</Link>
</div>
</section>
Expand Down

0 comments on commit 8987056

Please sign in to comment.