CodeGroup AgeLimit Issue

For requests or help with our API
Post Reply
omar22
Posts: 67
Joined: Mon Dec 05, 2022 2:38 pm

CodeGroup AgeLimit Issue

Post by omar22 » Wed Nov 06, 2024 9:16 am

Hello,

I hope all is well with you. We have been getting an error when trying to add limitations on a custom created CodeGroup, which has AgeLimit enabled.
image_720.png
image_720.png (63 KiB) Viewed 5419 times
**Payload for age limit (not working)
{
"PlanNum": 101,
"CodeGroupNum":14,
"BenefitType": "Limitations",
"TimePeriod": "None",
"Quantity": "2",
"QuantityQualifier": "AgeLimit",
"CoverageLevel": "None"
}
Response: "QuantityQualifier not allowed to be AgeLimit."

Frequency works for this custom created CodeGroup, just AgeLimit is not, even tho it is enabled for this custom CodeGroup

AgeLimit works when I switch to fluoride or sealants, which are the standard codegroups already in OD.

Can you please help me with this?

Thank you in advance!
Omar

justine
Posts: 286
Joined: Tue Dec 28, 2021 7:59 am

Re: CodeGroup AgeLimit Issue

Post by justine » Wed Nov 06, 2024 2:39 pm

omar22 wrote:
Wed Nov 06, 2024 9:16 am
Hello,

I hope all is well with you. We have been getting an error when trying to add limitations on a custom created CodeGroup, which has AgeLimit enabled.
image_720.png
**Payload for age limit (not working)
{
"PlanNum": 101,
"CodeGroupNum":14,
"BenefitType": "Limitations",
"TimePeriod": "None",
"Quantity": "2",
"QuantityQualifier": "AgeLimit",
"CoverageLevel": "None"
}
Response: "QuantityQualifier not allowed to be AgeLimit."

Frequency works for this custom created CodeGroup, just AgeLimit is not, even tho it is enabled for this custom CodeGroup

AgeLimit works when I switch to fluoride or sealants, which are the standard codegroups already in OD.

Can you please help me with this?

Thank you in advance!
Omar
Hello Omar22,

CodeGroups and Benefits can be very nuanced. Frequency Limitations and how they display in the UI differs between v23.2, v23.3, and v24.1+.

You mention that Frequency works with this code group, but AgeLimit does not. The codegroup object itself has two fields: codegroup.IsHidden and codegroup.ShowInAgeLimit. The value of these two fields, indicates what grid the codegroup displays in.

Here's a quick breakdown:

codegroup.IsHidden |codegroup.ShowInAgeLimit
1 0 = Doesn't show anywhere
0 1 = Show in both grids
1 1 = Show in Age Limits grid
0 0 = Show in Frequency Limits grid

I'm guessing that your custom codegroup is setup where codegroup.IsHidden = 0 and codegroup.ShowInAgeLimit = 1. However, the API cannot differentiate between the two because there is no UI layer. If you want a custom codegroup that is only for AgeLimit and only shows in the AgeLimit grid, then you have to make a codegroup where codegroup.IsHidden and codegroup.ShowInAgeLimit are both true.

Thanks!

omar22
Posts: 67
Joined: Mon Dec 05, 2022 2:38 pm

Re: CodeGroup AgeLimit Issue

Post by omar22 » Wed Nov 06, 2024 6:58 pm

Yes I am trying to make it appear in both. I tried to make it hidden as you mentioned but it now says the CodeGroupNum is unavailable. Not sure how to fix this.

Thanks

Post Reply