Skip to content

Common Data Services project used by Provider and Patient apps

License

Notifications You must be signed in to change notification settings

swmuir/e-care-common-data-services-fork

This branch is 6 commits ahead of chronic-care/e-care-common-data-services:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Sean
Jan 23, 2025
fc8af7e · Jan 23, 2025

History

58 Commits
Jan 30, 2023
Sep 27, 2022
Jan 6, 2025
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Jan 15, 2023
Sep 27, 2022
Sep 27, 2022
Mar 27, 2024
Sep 27, 2022
Mar 27, 2023
Dec 19, 2024
Jan 23, 2025
Oct 22, 2024
Jan 30, 2023
Sep 27, 2022

Repository files navigation

e-care-common-data-services

Common data service for mcc-provider and mcc-care-planner

How to work with this locally

Install dependencies

npm i

Build typescript

npm run build

Run this on this project directory to register this package on global directory

npm link

Run this on mcc-provider or mcc-care-planner app directory

npm link e-care-common-data-services

How to work with this in the future

  • Remove build from .gitignore file
  • Host this repository in a git provider e.g github
  • Release a tag, e.g v1.0.0
  • in mcc-provider or mcc-care-planner app, run
npm i ssh://git@github.com:XXGITHUB_ORG_NAMEXX/e-care-common-data-services.git#v1.0.0

Code structure explanation

Root

tsconfig.json

This is the typescript rules and compile options -> required to run the app

.prettierrc

This is used to do auto code fix on save during deployment, lets say you forget semicolon, or you forget indentation, prettier will help you add those when you save the file it will run automatically

.eslintrc

This is used to enforce strict js/ts convention when writing code to avoid any unforeseen bugs -> required to run the app

.editorconfig

This is used to standardised IDE (VSCode/IntelliJ) theme and configuration when we load this project to any IDE

source

constants

This is where we put our global constant variables that is reused in modules

lib

This is where we store our modules, inside will be having each module, e.g observation and it will have

  • observation.ts This is where we put our logic
  • observation.util.ts This is where we put helper function specific to observation
  • observation.spec.ts This is where we put testing specific to observation

mapping

This is the where we put resource mapping from fhir localised to our module, e.g on vital-mapping when we get ckd, we will try to query data for

  • Cognitive Status (MoCA)
  • Fatigue (PROMIS T-score)
  • Functional Status (PROMIS raw score)
  • Pain Interference (PROMIS T-score)
  • Pain Severity (Wong-Baker FACES)
  • PHQ9

query

This is where we handle logic on how we query from local json files from /resources folder

resources

This is where we store all of the manual resource data intended for mapping

types

This is where we store typing for common interface

utils

This is where we create a global method that is reused in all modules

index.ts

This is the central entrypoint when building the app

About

Common Data Services project used by Provider and Patient apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%