Creating AllergyIntolerance or MedicationStatement or Condition errors out with "404 not found"

105 views
Skip to first unread message

tri...@cura.tech

unread,
Feb 8, 2017, 11:28:15 AM2/8/17
to Cerner FHIR Developers
Hi,

I am trying to implement a provider facing app.. I am trying to create AllergyIntolerance or MedicationStatement or Condition and all the three are resulting in 404 errors. It does not give me details like which object it could not find..

Writes operations are triggered by an authenticated user. Can you help in this?

Thanks
Trinadh..

Dennis Patterson (Cerner)

unread,
Feb 9, 2017, 10:50:06 AM2/9/17
to Cerner FHIR Developers
Hi Trinadh!

Can you specify which urls you're hitting that result in a 404?

Yes, write operations require an authenticated user.  You can read more about the authorization workflow at http://fhir.cerner.com/dstu2/authorization/

Trinadh Baranika

unread,
Feb 9, 2017, 11:37:00 AM2/9/17
to Dennis Patterson (Cerner), Cerner FHIR Developers
Hi Dennis,

Below are the URLs that I am using. I selected both the patient and use scopes.

Client Id: 5989a8c8-58d4-4175-b73b-3badfc8f97cd
SMART Launch URI: http://integration.cura.tech:8000/ascension/launch
Redirect URI: http://integration.cura.tech:8000/ascension/authorize
App Type: provider
FHIR Spec: dstu2 - "https://fhir-ehr.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca"
Authorized: true

Standard Scopes:
online_access
launch
profile
openid

Patient Scopes:
patient/AllergyIntolerance.read
patient/Appointment.read
patient/Binary.read
patient/Condition.read
patient/Contract.read
patient/Device.read
patient/DiagnosticReport.read
patient/Encounter.read
patient/Immunization.read
patient/MedicationOrder.read
patient/MedicationStatement.read
patient/Observation.read
patient/OperationDefinition.read
patient/Patient.read
patient/Person.read
patient/RelatedPerson.read
patient/StructureDefinition.read
patient/AllergyIntolerance.write
patient/Condition.write
patient/DocumentReference.write
patient/MedicationStatement.write

User Scopes:
user/AllergyIntolerance.read
user/Appointment.read
user/Binary.read
user/Condition.read
user/Contract.read
user/Device.read
user/DiagnosticReport.read
user/Encounter.read
user/Immunization.read
user/MedicationOrder.read
user/MedicationStatement.read
user/Observation.read
user/OperationDefinition.read
user/Patient.read
user/Person.read
user/RelatedPerson.read
user/StructureDefinition.read
user/AllergyIntolerance.write
user/Condition.write
user/DocumentReference.write
user/MedicationStatement.write


Thanks
Trinadh..

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/TSAa47JkMEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.
To post to this group, send email to cerner-fhir-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerner-fhir-developers/429629a7-0924-43dd-895e-e01c0f9785a9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dennis Patterson (Cerner)

unread,
Feb 9, 2017, 12:01:28 PM2/9/17
to Cerner FHIR Developers
Thanks, Trinadh.  Can you give an example of querying the MedicationStatement (or AllergyIntolerance or Condition) resource that is resulting in a 404 for you?
To post to this group, send email to cerner-fhir...@googlegroups.com.

Dennis Patterson (Cerner)

unread,
Feb 9, 2017, 12:22:27 PM2/9/17
to Cerner FHIR Developers
Trinadh's last response didn't make it to the board:

Hi Dennis,
Reads are working fine.. I am using patient ID for reading data.  Only writes are failing with 404 error..
Thanks
Trinadh..

Hi! I don't see any POSTs in our logs for your client id in the last 6 months.  Can you give an example of a url you're POSTing to for the MedicationStatement (or AllergyIntolerance or Condition) resource that is resulting in a 404 for you?

Trinadh Baranika

unread,
Feb 9, 2017, 12:52:48 PM2/9/17
to Dennis Patterson (Cerner), Cerner FHIR Developers
Hi Dennis,

I just set the required data (mandatory fields) while creating an allergy.. Here is the allergy request that I posted few minutes back..

{'resourceType': 'AllergyIntolerance', 'substance': {'coding': [{'code': '160244002'}]}, 'patient': {'reference': 'Patient/4342012'}}

It failed with: 404 error which mean Not found.. It does not give any information like what is not found.

Thanks
Trinadh..

To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsubscri...@googlegroups.com.

To post to this group, send email to cerner-fhir...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/TSAa47JkMEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.

Dennis Patterson (Cerner)

unread,
Feb 10, 2017, 11:55:16 AM2/10/17
to Cerner FHIR Developers
To what URL are you POSTing that json?
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.
To post to this group, send email to cerner-fhir...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/TSAa47JkMEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.
To post to this group, send email to cerner-fhir...@googlegroups.com.

Trinadh Baranika

unread,
Feb 13, 2017, 12:17:14 PM2/13/17
to Dennis Patterson (Cerner), Cerner FHIR Developers
Hi Dennis,

My app client id is:

Client Id: 5989a8c8-58d4-4175-b73b-3badfc8f97cd

Below is the JSON that I am posting..

Thanks
Trinadh..

Post JSON:
{
  "status": "active",
  "resourceType": "MedicationStatement",
  "medicationCodeableConcept": {
    "coding": [
      {
        "code": "243670",
        "system": "http://www.nlm.nih.gov/research/umls/rxnorm"
      }
    ]
  },
  "patient": {
    "reference": "Patient/4596007"
  },
  "dosage": [
    {
      "quantityQuantity": {
        "value": 10.0,
        "code": "mg",
        "system": "http://unitsofmeasure.org",
        "unit": "mg"
      },
      "timing": {
        "code": {
          "coding": [
            {
              "code": "QD",
              "system": "http://hl7.org/fhir/v3/vs/GTSAbbreviation"
            }
          ]
        }
      }
    }
  ]
}


To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsubscri...@googlegroups.com.

To post to this group, send email to cerner-fhir...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/TSAa47JkMEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsubscri...@googlegroups.com.

To post to this group, send email to cerner-fhir...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/TSAa47JkMEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.

Trinadh Baranika

unread,
Feb 13, 2017, 12:57:01 PM2/13/17
to Dennis Patterson (Cerner), Cerner FHIR Developers

To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsubscri...@googlegroups.com.

To post to this group, send email to cerner-fhir-developers@googlegroups.com.

Kol Kheang (Cerner)

unread,
Feb 13, 2017, 2:21:01 PM2/13/17
to Cerner FHIR Developers, dennis.r....@gmail.com
Hi Trinadh,

It looked like you successfully POSTed to MedicationStatement in your latest attempt.

Trinadh Baranika

unread,
Feb 14, 2017, 12:43:31 AM2/14/17
to Kol Kheang (Cerner), Cerner FHIR Developers, Dennis Patterson (Cerner)
Hi Kol,

I posted a different JSON and the difference I am going to post here.. According to specification, both should work..

Not working:

  "medicationCodeableConcept": {
    "coding": [
      {
        "code": "243670",
        "system": "http://www.nlm.nih.gov/research/umls/rxnorm"
      }
    ]
  
Working:
"contained": [{"resourceType": "Medication", "id": "123", "code": {"text": "FHIR Test Medication"}}],
"medicationReference": {"reference": "#123"},

If you want I can post both the JSONs again..

Thanks
Trinadh..

On Tue, Feb 14, 2017 at 12:51 AM, Kol Kheang (Cerner) <kol.k...@gmail.com> wrote:
Hi Trinadh,

It looked like you successfully POSTed to MedicationStatement in your latest attempt.

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/TSAa47JkMEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.

To post to this group, send email to cerner-fhir-developers@googlegroups.com.

Dennis Patterson (Cerner)

unread,
Feb 14, 2017, 9:29:22 AM2/14/17
to Cerner FHIR Developers
Trinadh, is that the only difference between the two json bodies?  I'm seeing errors in the logs that seem like you may not be providing a status value.  If you post a MedicationStatement with an rxnorm and it is not successful, can you post the x-request-id header?


On Monday, February 13, 2017 at 11:43:31 PM UTC-6, Trinadh Baranika wrote:
Hi Kol,

I posted a different JSON and the difference I am going to post here.. According to specification, both should work..

Not working:
  "medicationCodeableConcept": {
    "coding": [
      {
        "code": "243670",
        "system": "http://www.nlm.nih.gov/research/umls/rxnorm"
      }
    ]
  
Working:
"contained": [{"resourceType": "Medication", "id": "123", "code": {"text": "FHIR Test Medication"}}],
"medicationReference": {"reference": "#123"},

If you want I can post both the JSONs again..

Thanks
Trinadh..
On Tue, Feb 14, 2017 at 12:51 AM, Kol Kheang (Cerner) <kol.k...@gmail.com> wrote:
Hi Trinadh,

It looked like you successfully POSTed to MedicationStatement in your latest attempt.

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/TSAa47JkMEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.
To post to this group, send email to cerner-fhir...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages