Skip to content

v2.6.0

Compare
Choose a tag to compare
@Chinlinlee Chinlinlee released this 07 Mar 12:39
· 173 commits to main since this release

2.6.0 (2022-03-07)

Features

  • add logger (ce60bf2)

    • use log4js for logger
  • add logger in FHIRAPI and refactor resFunc (bff8643)

    • extract resFunc to global variable to reduce complexity
    • add warn logger
  • add new method for $validate API (5b82908)

    • add fhir-validator
      • add refreshResourceResolver to call C# API to reload profiles
      • add storeValidationFile to store StructureDefinition, ValueSet, CodeSystem
      • add fetchValueSet to get ValueSet resource by URL
      • add fetchCodeSystem to get CodeSystem resource by URL
      • add validateByProfile to validate resource by specific profile URL in URL path
      • add validateByMetaProfile to validate resource by profiles URL from meta.profile
    • add FHIRValidationFiles MongoDB schema to store data about validation files
    • add schedule to update validation files in MongoDB
    • The validation workflow note can retrieve from
  • remove custom fhir.js and $validate API (867e2b4)

    • The fhir.js is not completly to do
      validation, need to find another solution
    • implement validator by self is too hard...
  • resource interaction in metadata from config (9c59674)

    • The interation of resource in metadata correspond to config

Bug Fixes

  • empty array entry of Bundle present (fddf2f6)
    • refact unique to bundle function
    • replace condition of total to entry length. I think check entry length better than total

中文版

功能

  • 新增 logger (ce60bf2)
    • 使用 log4js 作為 logger 的工具
  • 在 FHIRAPI 新增 logger 以及重構 resFunc (bff8643)
    • 將 resFunc 變成全域變數,減少 Function 內的複雜度
    • 新增 warn logger
  • 新增新的方法處理 $validate API (5b82908)
    • 新增 fhir-validator
      • 新增refreshResourceResolver呼叫 C# API讓Server重新讀取profiles
      • 新增storedValidationFile 儲存StructureDefinition, ValueSet,
        CodeSystem
      • 新增 fetchValueSet 將指定 URL 的 ValueSet 爬下來並轉為JSON
      • 新增 fetchCodeSystem 將指定 URL 的 CodeSystem 爬下來並轉為JSON
      • 新增 validateByProfile 使用在URL指定的 profile 驗證 resource
      • 新增 validateByMetaProfile 使用 resource 當中的 meta.profile 進行驗證
  • 移除自己模改的 fhir.js 以及 $validate API (867e2b4)
    • javascript 實作的 fhir.js 還未有完整的驗證功能,需要找其他的替代方案
    • 自己實作FHIR 驗證器實在是太難了....
  • 新增使用config產生metadata中resource的interaction功能 (9c59674)

Bug修正

  • 修正 Bundle 中的 entry 回傳空陣列(fddf2f6)
    • 重構 unique 功能移至建立 bundle 的 function
    • 更改移除 bundle entry; total 的判斷,我認為使用 bundle.entry 的長度判斷比total更好