Closed jeffeastman closed 5 years ago
Hi Jeff, this is working fine for me. See the following resource I just created:
http://hapi.fhir.org/baseR4/Encounter/94552
Does the payload you are uploading validate correctly?
It uploaded without errors, but I will check the validation and let you know. Probably my code as usual, but thanks for the quick response.
Jeff
On Jul 18, 2019, at 3:14 PM, James Agnew notifications@github.com wrote:
Hi Jeff, this is working fine for me. See the following resource I just created:
http://hapi.fhir.org/baseR4/Encounter/94552 http://hapi.fhir.org/baseR4/Encounter/94552 Does the payload you are uploading validate correctly?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/39?email_source=notifications&email_token=ACB3NFC4A753EBCOTJ3PEITQAC6IHA5CNFSM4IE6SOD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JP2LQ#issuecomment-512949550, or mute the thread https://github.com/notifications/unsubscribe-auth/ACB3NFA4P3HDGK6VVHEB3ZLQAC6IHANCNFSM4IE6SODQ.
I’m uploading it in a transaction bundle if that makes any difference?
On Jul 18, 2019, at 3:21 PM, Jeastman jeastman@windwardsolutions.com wrote:
It uploaded without errors, but I will check the validation and let you know. Probably my code as usual, but thanks for the quick response.
Jeff
On Jul 18, 2019, at 3:14 PM, James Agnew <notifications@github.com mailto:notifications@github.com> wrote:
Hi Jeff, this is working fine for me. See the following resource I just created:
http://hapi.fhir.org/baseR4/Encounter/94552 http://hapi.fhir.org/baseR4/Encounter/94552 Does the payload you are uploading validate correctly?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/39?email_source=notifications&email_token=ACB3NFC4A753EBCOTJ3PEITQAC6IHA5CNFSM4IE6SOD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JP2LQ#issuecomment-512949550, or mute the thread https://github.com/notifications/unsubscribe-auth/ACB3NFA4P3HDGK6VVHEB3ZLQAC6IHANCNFSM4IE6SODQ.
Here's the bundle I posted successfully:
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "http://localhost:8180/hapi-fhir-jpaserver/fhir/Encounter/Encounter-55",
"resource": {
"resourceType": "Encounter",
"id": "Encounter-55",
"meta": {
"profile": [
"http://hl7.org/fhir/us/hedis/StructureDefinition/hedis-encounter"
]
},
"extension": [
{
"url": "http://mihin.org/extension/copyright",
"valueString": "Copyright 2014-2019 Michigan Health Information Network Shared Services. Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
}
],
"status": "finished",
"class": {
"system": "http://hl7.org/fhir/encounter-class",
"code": "ambulatory",
"display": "ambulatory"
},
"type": [
{
"coding": [
{
"system": "SNOMED-CT",
"code": "185347001",
"display": "Encounter for problem"
}
]
}
],
"subject": {
"reference": "Patient/6",
"display": "Alfred Oneill Wagner"
},
"participant": [
{
"period": {
"start": "2016-01-05T09:30:00-05:00",
"end": "2016-01-05T10:00:00-05:00"
},
"individual": {
"reference": "Practitioner/1",
"display": "Nicole Mathews Reese MD"
}
}
],
"period": {
"start": "2016-01-05T09:30:00-05:00",
"end": "2016-01-05T10:00:00-05:00"
},
"reason": [
{
"coding": [
{
"system": "SNOMED-CT",
"code": "239872002",
"display": "Osteoarthritis of hip"
}
]
}
],
"location": [
{
"location": {
"reference": "Location/8",
"display": "Five Lakes Ambulatory Services"
}
}
],
"serviceProvider": {
"reference": "Organization/7",
"display": "Five Lakes Ambulatory Services"
}
},
"request": {
"method": "POST",
"url": "http://localhost:8180/hapi-fhir-jpaserver/fhir/Encounter/Encounter-55"
}
},
{
"fullUrl": "http://localhost:8180/hapi-fhir-jpaserver/fhir/Condition/Condition-1009",
"resource": {
"resourceType": "Condition",
"id": "Condition-1009",
"meta": {
"profile": [
"http://hl7.org/fhir/us/hedis/StructureDefinition/hedis-condition"
]
},
"extension": [
{
"url": "http://mihin.org/extension/copyright",
"valueString": "Copyright 2014-2019 Michigan Health Information Network Shared Services. Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
}
],
"identifier": [
{
"use": "official",
"system": "mihin.org/fhir/sid/elementId",
"value": "e4ad11d4-3fb8-4946-b8fa-e0bd8369572b"
}
],
"clinicalStatus": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/condition-clinical",
"code": "active",
"display": "Active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://hl7.org/fhir/ValueSet/condition-ver-status",
"code": "confirmed",
"display": "Confirmed"
}
]
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "239872002",
"display": "Osteoarthritis of hip"
}
]
},
"subject": {
"reference": "Patient/6",
"display": "Alfred Oneill Wagner"
},
"context": {
"reference": "Encounter/Encounter-55",
"display": "OA_Diagnosis"
},
"onsetDateTime": "2016-01-05T09:30:00-05:00",
"abatementDateTime": "2016-01-05T09:30:00-05:00",
"recordedDate": "2016-01-05T09:30:00-05:00",
"asserter": {
"reference": "Practitioner/1",
"display": "Nicole Mathews Reese MD"
}
},
"request": {
"method": "POST",
"url": "http://localhost:8180/hapi-fhir-jpaserver/fhir/Condition/Condition-1009"
}
},
{
"fullUrl": "http://localhost:8180/hapi-fhir-jpaserver/fhir/CarePlan/CarePlan-1011",
"resource": {
"resourceType": "CarePlan",
"id": "CarePlan-1011",
"extension": [
{
"url": "http://mihin.org/extension/copyright",
"valueString": "Copyright 2014-2019 Michigan Health Information Network Shared Services. Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
}
],
"identifier": [
{
"use": "official",
"system": "mihin.org/fhir/sid/elementId",
"value": "f4dd63ec-6cf6-4269-a8d9-a96ec2997417"
}
],
"status": "active",
"category": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "872781000000100",
"display": "Musculoskeletal care"
}
]
}
],
"subject": {
"reference": "Patient/6",
"display": "Alfred Oneill Wagner"
},
"context": {
"reference": "Encounter/Encounter-55",
"display": "OA_Diagnosis"
},
"period": {
"start": "2016-01-05T09:30:00-05:00",
"end": "2016-01-05T09:30:00-05:00"
},
"author": {
"reference": "Practitioner/1",
"display": "Nicole Mathews Reese MD"
}
},
"request": {
"method": "POST",
"url": "http://localhost:8180/hapi-fhir-jpaserver/fhir/CarePlan/CarePlan-1011"
}
},
{
"fullUrl": "http://localhost:8180/hapi-fhir-jpaserver/fhir/MedicationRequest/MedicationRequest-1014",
"resource": {
"resourceType": "MedicationRequest",
"id": "MedicationRequest-1014",
"meta": {
"profile": [
"http://hl7.org/fhir/us/hedis/StructureDefinition/hedis-medicationrequest"
]
},
"extension": [
{
"url": "http://mihin.org/extension/copyright",
"valueString": "Copyright 2014-2019 Michigan Health Information Network Shared Services. Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
}
],
"identifier": [
{
"use": "official",
"system": "mihin.org/fhir/sid/elementId",
"value": "814f5e57-8e87-4ad3-9dfc-3d533365b6dc"
}
],
"status": "active",
"intent": "order",
"medicationCodeableConcept": {
"coding": [
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "849574",
"display": "Naproxen sodium 220 MG Oral Tablet"
}
]
},
"subject": {
"reference": "Patient/6",
"display": "Alfred Oneill Wagner"
},
"context": {
"reference": "Encounter/Encounter-55",
"display": "OA_Diagnosis"
},
"authoredOn": "2016-01-05T09:30:00-05:00",
"requester": {
"reference": "Practitioner/1",
"display": "Nicole Mathews Reese MD"
},
"reasonCode": [
{
"coding": [
{
"system": "SNOMED-CT",
"code": "239872002",
"display": "Osteoarthritis of hip"
}
]
}
]
},
"request": {
"method": "POST",
"url": "http://localhost:8180/hapi-fhir-jpaserver/fhir/MedicationRequest/MedicationRequest-1014"
}
}
]
}
And here's the Encounter from the server. No reason...
That bundle doesn't validate for me. I think the element is called reasonCode
and not reason
.
Sure, turns out I’m on an older R4 version: 3.6.0-SNAPSHOT. Looks like I really need 3.8.0?
Thanks, Jeff
On Jul 18, 2019, at 4:23 PM, James Agnew notifications@github.com wrote:
That bundle doesn't validate for me. I think the element is called reasonCode and not reason.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/39?email_source=notifications&email_token=ACB3NFESWO3H7OZBKOIYFQLQADGNFA5CNFSM4IE6SOD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JVSZI#issuecomment-512973157, or mute the thread https://github.com/notifications/unsubscribe-auth/ACB3NFGI5CKJWXWUIOG4JKDQADGNFANCNFSM4IE6SODQ.
Yeah, that version of HAPI FHIR is from before FHIR 4.0.0 was released, so it doesn't have all of the final definitions.
Cheers, James
On Thu, Jul 18, 2019 at 4:36 PM jeffeastman notifications@github.com wrote:
Sure, turns out I’m on an older R4 version: 3.6.0-SNAPSHOT. Looks like I really need 3.8.0?
Thanks, Jeff
On Jul 18, 2019, at 4:23 PM, James Agnew notifications@github.com wrote:
That bundle doesn't validate for me. I think the element is called reasonCode and not reason.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/39?email_source=notifications&email_token=ACB3NFESWO3H7OZBKOIYFQLQADGNFA5CNFSM4IE6SOD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JVSZI#issuecomment-512973157>, or mute the thread < https://github.com/notifications/unsubscribe-auth/ACB3NFGI5CKJWXWUIOG4JKDQADGNFANCNFSM4IE6SODQ .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/39?email_source=notifications&email_token=AA2N7HJ5EUAEPDYTBBTK4WDQADH6RA5CNFSM4IE6SOD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JWUTI#issuecomment-512977485, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2N7HJCONTAXFE4GWJBEATQADH6RANCNFSM4IE6SODQ .
Guess I'll get my ducks in a line and close this. Thanks for your help!
Checked out and built the latest version today. When I populate R4 Encounters that contain reason CodeableConcepts, these are not stored nor are they returned by the server. All of the other fields in this resource seem to be behaving correctly.
Here's a screen shot from my debugger showing the FHIR resource that was posted:
And here's a screen shot of my browser showing that the reason was not stored: