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

Single Patient API test 10.21.07-Could not find component:industry.value[x] in the 1 provided Observation resource(s) #594

Open
VighneshAlevoorP opened this issue Dec 5, 2024 · 3 comments

Comments

@VighneshAlevoorP
Copy link

We see in US core profile Observation.component:industry.value[x] field is mandatory, but we do NOT see any example given in US core or HL7 or in Inferno reference server regarding it. Can you please give us an example showing this field details in reference server.

image
@dehall
Copy link
Contributor

dehall commented Dec 5, 2024

Hi, the Observation.component:industry field is a slice on the component field, where the name of the slice is "industry". Slices have names to identify and explain the intent of the slice, but the name isn't used in the actual FHIR structure or data. (Ref: https://hl7.org/fhir/profiling.html#slicing ) So if you're searching for the word "industry", unless it happens to be in a code display or something, you won't find it. The discriminator for this slice is the LOINC code 86188-0 under component.code.

The component on the US Core 6.1 IG Observation Occupation profile example shows an example of this component with a valueCodeableConcept at http://hl7.org/fhir/us/core/STU6.1/Observation-observation-occupation.json.html
The reference server has essentially a copy of this resource, you can find it with the search https://inferno.healthit.gov/reference-server/r4/Observation?code=11341-5 (note you'll need an access token or use SAMPLE_TOKEN)

@SumitJena27
Copy link

SumitJena27 commented Dec 6, 2024

Our implementation as per the US Core 6 sample example, It seems like the test is expecting Observation.component.industry in the response. Can you check the same and confirm. I have attached a observation response generated from our system for your reference.
Occupation_Example.json

@dehall
Copy link
Contributor

dehall commented Dec 6, 2024

Your sample has two objects in the component field, one with a valueCodeableConcept and one with a code:

"component": [
          {
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/occupationIndustry",
                  "code": "339114.000004",
                  "display": "Abrasive points, wheels, and disks, dental, manufacturing [Dental Equipment and Supplies Manufacturing ]"
                }
              ]
            }
          },
          {
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "86188-0",
                  "display": "History of Occupation Industry"
                }
              ]
            }
          }
        ]

This needs to be one object with both fields:

"component": [
          {
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://docs.mydata.athenahealth.com/fhir-r4/athenaFlex/occupationIndustry",
                  "code": "339114.000004",
                  "display": "Abrasive points, wheels, and disks, dental, manufacturing [Dental Equipment and Supplies Manufacturing ]"
                }
              ]
            },
            "code": {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "86188-0",
                  "display": "History of Occupation Industry"
                }
              ]
            }
          }
        ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants