Skip to content

Chinlinlee/FHIR-Validator-API

Repository files navigation

FHIR-Validator-API

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.

繁體中文 readme

Dependencies

Usage

FHIR Profiles

Put the profile json file in assets/validationResources that you want to validate.

API

  • /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

Docker Inforamtion

Name Description
PORT 7414

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published