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

A duplicate of #1280 (closed) but for the SampledData data type #1352

Closed
brianreinhold opened this issue Jun 20, 2019 · 3 comments

Comments

@brianreinhold
Copy link

commented Jun 20, 2019

Uploading a transaction Bundle with Observation resources in it. The Observation contains a valueSampledData element. The Observation is as follows (this is easy to read in Notepad++ but it does not format well here):

                "resourceType": "Observation",
                "meta": {
                    "profile": [
                        "http://hl7.org/fhir/uv/phd/StructureDefinition/PhdRtsaObservation"
                    ]
                },
                "extension": [
                    {
                        "url": "http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice",
                        "valueReference": {
                            "reference": "urn:oid:1.2.3.1"
                        }
                    }
                ],
                "identifier": [
                    {
                        "value": "0000000000000000-sisansarahId-urn:oid:1.2.3.4.5.6.7.8.11-147842-1000.000-1-0-2720-20190609111653.566"
                    }
                ],
                "status": "final",
                "category": [
                    {
                        "coding": [
                            {
                                "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                                "code": "vital-signs",
                                "display": "Vital Signs"
                            }
                        ]
                    }
                ],
                "code": {
                    "coding": [
                        {
                            "system": "urn:iso:std:iso:11073:10101",
                            "code": "147842"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "8867-4"
                        }
                    ],
                    "text": "MDC_ECG_HEART_RATE: ECG pulse rate"
                },
                "subject": {
                    "reference": "urn:oid:1.2.3.0"
                },
                "effectiveDateTime": "2019-06-09T10:11:45.060-04:00",
                "valueSampledData": {
                    "origin": {
                        "value": 0,
                        "system": "http://unitsofmeasure.org",
                        "code": "{beat}/min"
                    },
                    "period": 1000.0,
                    "factor": 1,
                    "dimensions": 1,
                    "data": "0 0 0 0 0 0 0 0 0 0 51 51 41 41 41 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40"
                },
                "device": {
                    "reference": "urn:oid:1.2.3.2"
                },
                "derivedFrom": [
                    {
                        "reference": "urn:oid:3.1561028163466"
                    }
                ]
            },

This generates the following error:

Failed to call access method: ca.uhn.fhir.context.ConfigurationException: Search param value-quantity is of unexpected datatype: class org.hl7.fhir.r4.model.SampledData

You fixed it for bug #1280 so I assume it is the same thing happening here.
Here is the full bundle:
RTSABundleBug.zip

@jamesagnew

This comment has been minimized.

Copy link
Owner

commented Jun 20, 2019

Note, FWIW you can improve the formatting by using ``` instead of just ` around the contents.

@brianreinhold

This comment has been minimized.

Copy link
Author

commented Jun 20, 2019

YEAH!!! It sure helped!!

@jamesagnew

This comment has been minimized.

Copy link
Owner

commented Jun 22, 2019

@brianreinhold - Thanks for the report! Just checked in a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.