ehr-document-ui
v0.12.214
Published
Käivitamiseks
Downloads
7,003
Readme
ehr-document-ui
Käivitamiseks
yarn install
yarn start
BIM private repo moodulite kasutamine EHRis
BIMiga seotud moodulite ehitamiseks on vaja .npmrc failis asendada dünaamiline muutuja oma tokeniga, nt //npm.bim.works/:_authToken=pGfxs6cIddgoIaXjl3eA1MX44xgEkkNpZlxLcy5J5kUY=
Või lisada see oma rakenduse käivitamise parameetritesse BIM_REGISTRY_NPM_TOKEN=pGfxs6cIddgoIaXjl3eA1MX44xgEkkNpZlxLcy5J5kUY=
NB! Erinevates rakendustes võib muutuja nimetus natuke erinev olla.
BIM tokeni genereerimise juhend
https://bimbase.notion.site/JavaScript-NPM-07021426de2c43df826896aa05f097a3
Generating OpenApi API
openapi-generator version = 6.6.0
version 6 is required for axios 0.x
$ openapi-generator-cli version-manager set 6
$ openapi-generator-cli generate -i http://localhost:9090/v3/api-docs -g typescript-axios --additional-properties=modelPropertyNaming=original --type-mappings=DateTime=Date --type-mappings=object=any
npm run eject
Validation with YUP, using a custom hook useYupValidation.ts. Example can be found in RestrictionModal.tsx