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.
**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
CodeGroup AgeLimit Issue
Re: CodeGroup AgeLimit Issue
Hello Omar22,omar22 wrote: ↑Wed Nov 06, 2024 9:16 amHello,
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
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!
Re: CodeGroup AgeLimit Issue
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
Thanks