Currently implementation of the validation with javascript is not complete, so the SDK provided by C# Firely to implement the validation function as solution will be used in Burni to achieve the function of $validator API.
Put the profile json file in assets/validationResources
that you want to validate.
- /api/validate
The API validate FHIR Resource
Name | Value | Description |
method | POST | The HTTP method |
request body |
{
"profile": [
"profile-array-string"
],
"resourceJson": "FHIR resource JSON string"
} |
The request body use JSON |
response |
{
"status": true,
"data": "OperationOutcome || error message"
} |
status: false when server throw error |
- /api/refreshresourceresolver
The API reload the profiles in
assets/validationResources
, please use this API to update when you have a new profile store in folder.
Name | Value | Description |
method | POST | The HTTP method |
request body | None | None |
response |
{
"status": true,
"data": "\"success\" || errorMessage"
} |
status: false when server throw error. data: "success" or errorMessage |
Name | Description |
PORT | 7414 |