401 unauthorized while creating Medication Statement

30 views
Skip to first unread message

Sherry Academy

unread,
May 28, 2020, 6:02:31 AM5/28/20
to Cerner FHIR Developers
I am getting 401 unauthorized status when hitting cerner from my Postman with the body given below:
Earlier it was creating it and status was 201 created , Although i have generated new token for every new hit which is creating other entities like condition etc.
I have also already added system/MedicationStatement.write in the scopes
X-request-id : e76473f5214ab28552881c4a094aa69d
{
  "resourceType": "MedicationStatement",
  "contained": [
    {
      "resourceType": "Medication",
      "id": "123",
      "code": {
        "text": "FHIR Test Medication"
      }
    }
  ],
  "patient": {
    "reference": "Patient/1316024"
  },
  "status": "active",
  "medicationReference": {
    "reference": "#123"
  },
  "dosage": [
    {
      "timing": {
        "code": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/v3/vs/GTSAbbreviation",
              "code": "BID"
            }
          ],
          "text": "BID"
        }
      },
      "quantityQuantity": {
        "value": 60.0,
        "units": "mg",
        "system": "http://unitsofmeasure.org",
        "code": "mg"
      }
    }
  ]
}
Reply all
Reply to author
Forward
0 new messages