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

Error: The extension is not allowed to be used at this point #11

Open
jinlou98 opened this issue Jul 24, 2024 · 5 comments
Open

Error: The extension is not allowed to be used at this point #11

jinlou98 opened this issue Jul 24, 2024 · 5 comments
Labels
source ig issue Relates to a known issue in the DTR IG

Comments

@jinlou98
Copy link

jinlou98 commented Jul 24, 2024

The validation errors indicate that the given extensions can only be a part of Claim.Item or ClaimResponse directly, but the same implementation guide also lists them as part of ClaimResponse.item and ClaimResponse.item.extension in the resource profiles.
image (8)
Screenshot 2024-07-24 at 10-16-44 Da Vinci PAS Server Suite v2 0 1 Test Session

Below is our sample ClaimResponse.item extension:

ClaimResponse.item[0].extension:
[
   {
         "url": "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber",
         "valueString": "EXAMPLE_NUMBER"
    },
    {
        "url": "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-epsdtIndicator",
        "valueBoolean": false
    },
    {
        "url": "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeLevelOfCare",
        "valueCodeableConcept": {
             "coding": [
                 {
                     "code": "EXAMPLE_CODE",
                     "system": "https://codesystem.x12.org/005010/1337"
                 }
              ]
         }
     }
]

Below are the structure definitions showing them as part of ClaimResponse.item.extension:
http://hl7.org/fhir/us/davinci-pas/STU2/StructureDefinition-profile-claimresponse-base-definitions.html#diff_ClaimResponse.item.extension:administrationReferenceNumber
http://hl7.org/fhir/us/davinci-pas/STU2/StructureDefinition-profile-claim-definitions.html#diff_Claim.item.extension:epsdtIndicator
http://hl7.org/fhir/us/davinci-pas/STU2/StructureDefinition-profile-claim-definitions.html#diff_Claim.item.extension:nursingHomeLevelOfCare

I am wondering if you know this is a PAS Test Suite issue or IG issue, thank you!

@karlnaden
Copy link
Collaborator

I think this is an IG issue:

Compare this to the Claim resource where

I think that each of the extensions you reference should look more like the RequestedService extension which indicates usage in context Element ID ClaimResponse.item.

It looks like the current build version is the same, so it doesn't appear to have been addressed yet. If you raise it with the PAS IG authors and get confirmation that these are spurious errors, we may be able to filter them out of the Inferno output even before the new version is published.

@jinlou98
Copy link
Author

Hi Karl, thank you for taking a look! Your theory makes sense to me. I posted in the Zulips FHIR PAS group, and I will update here once I hear back from the IG authors.

@jinlou98
Copy link
Author

Hi Karl, I heard back from Jean Duteau that anywhere the extensions are used will be the proper context. Based on the ClaimReponse spec, the extensions appear to be under ClaimResponse.item. Some of the extensions have incorrect contexts and will be updated in the next STU update.

Link to PAS Zulips post: https://chat.fhir.org/#narrow/stream/208874-Da-Vinci-PAS/topic/Extension.20under.20ClaimResponse.20or.20ClaimResponse.2Eitem

@karlnaden karlnaden added the source ig issue Relates to a known issue in the DTR IG label Jul 30, 2024
@karlnaden
Copy link
Collaborator

Thanks for chasing down that answer Jin.

In terms of updating the PAS test kit, our current thinking is that we’re not ready at this stage to start adding exceptions to issues in the IG like we do in some of our other more mature test kits. Our proposal would be to add a list of known issues in the test kit and link to tickets like this one and include a note on specific tests that are impacted. So the errors would still be there, but users would be alerted to their spurious nature. As the test kit matures and clear fixes are published in subsequent versions of the IG, we can promote those to actual exceptions.

It would look something like this:
Pasted Graphic
Linking to: #11

Pasted Graphic 1 Linking to: https://github.com/inferno-framework/davinci-pas-test-kit/labels/source%20ig%20issue

Let us know what you think of that plan and thanks again for the feedback and for tracking down an answer from the IG authors.

@jinlou98
Copy link
Author

jinlou98 commented Aug 1, 2024

Karl, this plan sounds good to me! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source ig issue Relates to a known issue in the DTR IG
Projects
None yet
Development

No branches or pull requests

2 participants