Patient is not getting saved on Medplum latest cod...
# support
v
Hello team, we have checked out latest code and run the same but it's giving an error while creating a new patient resource from UI. Screenshots attached. Please let us know.
r
Hi @vijay.hambar , are you getting any errors in your server logs? Since you are running on localhost, you should see these in stdout
v
Hi @rahul1 We have fetched latest Medplum code again and tried creating the patient but still receiving same error and there is no such error on the console. Below is the request and the response. We also tried to rebuild structure definitions etc operations but no success. Request Payload:
Copy code
{
  "resourceType": "Patient",
  "active": true,
  "gender": "male",
  "birthDate": "2022-02-02",
  "maritalStatus": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus",
        "code": "M",
        "display": "Married"
      }
    ]
  },
  "managingOrganization": {
    "reference": "Organization/ad73dc36-750f-4693-a1fb-4b2bfa9751f6",
    "display": "Test Organization"
  }
}
Reponse:
Copy code
{
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "invalid",
      "details": {
        "text": "Element definition not found for base64Binary code"
      }
    }
  ],
  "extension": [
    {
      "url": "https://medplum.com/fhir/StructureDefinition/tracing",
      "extension": [
        {
          "url": "requestId",
          "valueUuid": "e8086c5e-a92f-45f0-8bcf-9754899d68df"
        },
        {
          "url": "traceId",
          "valueUuid": "25ef1f1e-78ae-4770-b6dc-b297ed8decaf"
        }
      ]
    }
  ]
}
Hi @rahul1 The issue was resolved with redeployment. Thank you
155 Views