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

Cerner Immunization missing the vaccine #35

Closed
dhf0820 opened this issue Aug 1, 2016 · 4 comments
Closed

Cerner Immunization missing the vaccine #35

dhf0820 opened this issue Aug 1, 2016 · 4 comments

Comments

@dhf0820
Copy link
Contributor

dhf0820 commented Aug 1, 2016

this is returned from the cerner sandbox:

{
"resourceType": "Bundle",
"id": "04eeda50-049a-459e-8818-0c57df0eff24",
"type": "searchset",
"base": "https://fhir-open.sandboxcernerpowerchart.com/may2015/d075cf8b-3261-481d-97e5-ba6c48d3b41f",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://fhir-open.sandboxcernerpowerchart.com/may2015/d075cf8b-3261-481d-97e5-ba6c48d3b41f/Immunization?patient=2744010"
}
],
"entry": [
{
"resource": {
"resourceType": "Immunization",
"id": "M3869433",
"text": {
"status": "generated",
"div": "

Immunization

Date: 2014-09-25T21:00:00.000Z

Given: Yes

Administered by: Kolm, Margaret

Site: left arm

Route: IM

"
},
"date": "2014-09-25T21:00:00.000Z",
"vaccineType": {
"coding": [
{
"system": "http:https://www2a.cdc.gov/vaccines/iis/iisstandards/vaccines.asp?rpt=cvx",
"code": "88"
}
],
"text": "Fluzone"
},
"patient": {
"reference": "Patient/2744010"
},
"wasNotGiven": false,
"reported": false,
"performer": {
"reference": "Practitioner/2770007",
"display": "Kolm, Margaret"
},
"encounter": {
"reference": "Encounter/2457918"
},
"manufacturer": {
"reference": "Organization/661540",
"display": "SANOFI WINTHROP PHARMACEUTICALS"
},
"lotNumber": "4264a",
"expirationDate": "2015-09-25",
"site": {
"coding": [
{
"system": "http:https://hl7.org/fhir/v3/ActSite",
"code": "LA",
"display": "left arm"
}
],
"text": "left arm"
},
"route": {
"text": "IM"
},
"doseQuantity": {
"value": 0.1,
"units": "mL"
}
}
}
]
}

this is what is parsed in to immunization:

<FHIR::Immunization:0x007fa8ac9eea38

@contained=[],
@Date="2014-09-25T21:00:00.000Z",
@doseQuantity=
#<FHIR::Quantity:0x007fa8ac9ff108
@code=nil,
@comparator=nil,
@extension=[],
@id=nil,
@System=nil,
@Unit=nil,
@value=0.1>,
@encounter=
#<FHIR::Reference:0x007fa8ac98cdb0
@display=nil,
@extension=[],
@id=nil,
@reference="Encounter/2457918">,
@expirationDate="2015-09-25",
@explanation=nil,
@extension=[],
@id="M3869433",
@Identifier=[],
@implicitRules=nil,
@language=nil,
@location=nil,
@lotNumber="4264a",
@Manufacturer=
#<FHIR::Reference:0x007fa8ac98ca18
@display="SANOFI WINTHROP PHARMACEUTICALS",
@extension=[],
@id=nil,
@reference="Organization/661540">,
@meta=nil,
@modifierExtension=[],
@note=[],
@patient=
#<FHIR::Reference:0x007fa8ac98e728
@display=nil,
@extension=[],
@id=nil,
@reference="Patient/2744010">,
@Performer=
#<FHIR::Reference:0x007fa8ac98d7b0
@display="Kolm, Margaret",
@extension=[],
@id=nil,
@reference="Practitioner/2770007">,
@reaction=[],
@Reported=false,
@requester=nil,
@route=
#<FHIR::CodeableConcept:0x007fa8ac9ff590
@coding=[],
@extension=[],
@id=nil,
@text="IM">,
@site=
#<FHIR::CodeableConcept:0x007fa8ac98c270
@coding=
[#<FHIR::Coding:0x007fa8ac98c220
@code="LA",
@display="left arm",
@extension=[],
@id=nil,
@System="http:https://hl7.org/fhir/v3/ActSite",
@userSelected=nil,
@Version=nil>],
@extension=[],
@id=nil,
@text="left arm">,
@status=nil,
@text=
#<FHIR::Narrative:0x007fa8ac98f920
@div=
"

Immunization

Date: 2014-09-25T21:00:00.000Z

Given: Yes

Administered by: Kolm, Margaret

Site: left arm

Route: IM

",
@extension=[],
@id=nil,
@status="generated">,
@vaccinationProtocol=[],
@vaccineCode=nil,
@wasNotGiven=false>

The vaccineCode is nil because they use vaccineType. THey use the final ballot 1.02. Is there an easy way to get access to the vaccineType they use?

@jawalonoski
Copy link
Member

Final ballot of 1.0.2 (DSTU2) is also supposed to be vaccineCode (see http:https://hl7.org/fhir/DSTU2/immunization.html), so if that is the correct version number then they have a bug.

Against DSTU2 servers, you should use the DSTU2 branch of fhir_client here: https://github.com/fhir-crucible/fhir_client/tree/dstu2

But to answer your question -- no, there is no way easy way to access the vaccineType they include.

@dhf0820
Copy link
Contributor Author

dhf0820 commented Aug 1, 2016

Their sandbox is 1.0.2 their production is 0.5

@jawalonoski
Copy link
Member

Regarding the version numbers, that makes sense.

The only way to access vaccineType will be from parsing the response and accessing it manually... something like:

reply = client.read(FHIR::Immunization, id, FHIR::Formats::ResourceFormat::RESOURCE_JSON)
json = JSON.parse(reply.response)
raw_vaccineType = json['vaccineType']
vaccineType = FHIR::CodeableConcept.new(raw_vaccineType)

@dhf0820
Copy link
Contributor Author

dhf0820 commented Aug 1, 2016

Thank you for the reply. This can be closed

From: jawalonoski [email protected]
Reply-To: fhir-crucible/fhir_client [email protected]
Date: Monday, August 1, 2016 at 9:19 AM
To: fhir-crucible/fhir_client [email protected]
Cc: Donald French [email protected], Author [email protected]
Subject: Re: [fhir-crucible/fhir_client] Cerner Immunization missing the vaccine (#35)

Regarding the version numbers, that makes sense.

The only way to access vaccineType will be from parsing the response and accessing it manually... something like:

reply = client.read(FHIR::Immunization, id, FHIR::Formats::ResourceFormat::RESOURCE_JSON)
json = JSON.parse(reply.response)
raw_vaccineType = json['vaccineType']
vaccineType = FHIR::CodeableConcept.new(raw_vaccineType)

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

cjjuice pushed a commit to careport/fhir_client that referenced this issue May 20, 2019
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

2 participants