English
|
繁體中文
Burni 使用 Node.JS 、Express 框架以及 MongoDB 實作 FHIR R4 Server,經由簡單的設定即可產生指定 FHIR Resource的 Mongoose Schema、API程式碼並可自行更改,滿足需求。目前Burni支援Windows以及Linux,讓開發人員可以快速架設 FHIR Server。
Burni 使用 Node.JS 、Express 框架以及 MongoDB 實作 FHIR R4 Server,經由簡單的設定即可產生指定 FHIR Resource的 Mongoose Schema、API程式碼並可自行更改,滿足需求。目前Burni支援Windows以及Linux,讓開發人員可以快速架設 FHIR Server。
Burni 所使用的 FHIR 版本為 v4.0.1。
Burni 使用 AEGIS Touchstone Basic-R4-Server 測試.
測試結果:
- FHIR4-0-1-Basic-Server version 18 (2,216 tests has been passed, 100% Pass)
- FHIR4-0-1-Basic-Server version 14 (1,948 tests has been passed, 100% Pass)
This server supported FHIR RESTFul API below:
- read (e.g. GET http:https://example.com/fhir/Patient/example)
- update (e.g. PUT http:https://example.com/fhir/Patient/example)
- delete (e.g. DELETE http:https://example.com/fhir/Patient/example)
- search (e.g. http:https://example.com/fhir/Patient?_id=example)
- history-type (e.g. http:https://example.com/fhir/Patient/1/_history)
- history-type-version (e.g. e.g. http:https://example.com/fhir/Patient/1/_history/1)
resource 不包含text
欄位
The resources don't have text
field
Don't remove Bundle.js in models/mongodb/FHIRTypeSchema
npm install
設定檔位於 config\config.js
module.exports = {
// add the resource name that you need
"Patient" : {
"interaction": {
"read": true,
"vread": true,
"update": true,
"delete": true,
"history": true,
"create": true,
"search": true
}
}
}
dotenv in root path .env
MONGODB_NAME="dbName"
MONGODB_HOSTS=["mongodb"]
MONGODB_PORTS=[27017]
MONGODB_USER="myAdmin"
MONGODB_PASSWORD="MymongoAdmin1"
MONGODB_IS_SHARDING_MODE=false
MONGODB_SLAVEMODE=false
SERVER_PORT=8080
FHIRSERVER_HOST="localhost"
FHIRSERVER_PORT=8080 #use by creating bundle url
FHIRSERVER_APIPATH="fhir"
#If u want to use token auth, add below.
ENABLE_TOKEN_AUTH=true
ADMIN_LOGIN_PATH="adminLogin"
ADMIN_USERNAME="adminUsername"
ADMIN_PASSWORD="adminPassword"
ENABLE_CHECK_ALL_RESOURCE_ID=false #true that want to check resource id cross all resource
ENABLE_CHECK_REFERENCE #true that want to check reference is exist in resource content
ENABLE_CSHARP_VALIDATOR=false
VALIDATION_FILES_ROOT_PATH="/validationResources"
VALIDATION_API_URL="http:https://burni-fhir-validator-api:7414"
設定後, 執行 npm run build
產生 resource 相關程式碼
npm run build
TypeError: genParamFunc[type] is not a function 代表此類型的搜尋參數目前不支援。
node server.js
- get (search)
- Number
- Date (DateTime, Instance Not yet)
- String
- Token
- Reference
- getById (read)
- getHistoryById (history, vread)
- putById (update)
- deleteById (delete)
詳細使用 Postman 的範例: Examples Using Postman
感謝FirelyTeam/firely-net-sdk使用C#實作了讚讚的驗證器。
Burni 目前使用 C# Web API 去做驗證。使用專案: Chinlinlee/FHIR-Validator-API
- Search parameters
- composite
- uri
- Validation