$upload-external-code-system - Missing mandatory parameter: system

274 views
Skip to first unread message

jo...@vermonster.com

unread,
Apr 6, 2021, 4:12:42 PM4/6/21
to HAPI FHIR
With HAPI 5.2.0 
and this operation is enabled as can be seen in CapabilityStatement:

{
"name": "upload-external-code-system",
}

When trying to:

POST http://localhost:8080/fhir/CodeSystem/$upload-external-code-system

with the body a small subset of the ICD-10 CodeSystem it fails with this error:

{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Missing mandatory parameter: system"
}
]
}

What is it expecting for the system parameter?  Is this supposed to be an HTTP header or something else?

BTW, the same error occurs when trying to run this via the hapi-fhir-cli upload-terminology cmd-line.   (I'm using the docker version of HAPI from: https://github.com/hapifhir/hapi-fhir-jpaserver-starter)

  Thanks in advance,
     John

Hanan Awwad

unread,
Apr 6, 2021, 4:34:23 PM4/6/21
to HAPI FHIR
Hello John,

I believe you need to submit the code system url as parameter either with get or post request, you could find the following sample post request 
{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "system2",
      "valueUri": "http://example.com/tesrcs"
    },
    {
      "name": "file",
      "valueAttachment": {
        "contentType": "text/csv",
        "data": "Q09ERSxESVNQTEFZdsdsdssdffsdCgpDSEVNLENoZW1pc3RyeQpIQixIZW1vZ2xvYmluCk5FVVQsTmV1dHJvcGhpbHMKCk1JQ1JPLE1pY3JvYmlvbG9neQpDJlMsQ3VsdHVyZSBhbmQgU2Vuc2dssl0aXZpdHkK",
        "url": "file:/C:/Users/hawwad/Desktop/Fhir/hapi-fhir-4.1.0-cli/files/concepts.csv"
      }
    },
    {
      "name": "file",
      "valueAttachment": {
        "contentType": "text/csv",
        "data": "UEFSRU5ULENISUxECgpDSEVNfdsfsdfsdfsdLEhCCkNIRU0sTkVVVAoKTUlDUk8sQyZTCg==",
        "url": "file:/C:/Users/hawwad/Desktop/Fhir/hapi-fhir-4.1.0-cli/files/hierarchy.csv"
      }
    }
  ]
}


Reply all
Reply to author
Forward
0 new messages