This project was generated with Angular CLI version 10.1.7.
The Application is designed to run on a Mobile application and should be started by calling the slaunch.html file to initiate a smart-on-fhir standalone launch.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
$ openapi -i https://mcc-niddk-backend.wl.r.appspot.com/api -o src/app/generated-data-api
or
$ openapi -i http://localhost:8081/api-docs -o src/app/generated-data-api/
https://mcc-niddk-backend.wl.r.appspot.com/swagger-ui/index.html?configUrl=/api-docs/swagger-config
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
The application is publically deployed at https://mcc-niddk-patient-ab784.web.app/launch.html - Which is hooked to the Logica Sandbox MCC ECareplan Test
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
https://api.logicahealth.org/MCCeCarePlanTest/open
The included file 'Dockerfle-prod' is a basic production build docker file. It will build the app and containerize it in a node nginx server. In addtion if you have a built version you may dockerize using the simple Dockerfile, which will cause the image to be built based on your most recent compile.
Variable name | Sample Value |
---|---|
API_SERVER | http://localhost:8080 |
CLIENT_ID | 123456789abcdef |
LAUNCH_SERVER | https://api.logicahealth.org/MCCeCarePlanTest/data |
AUTH_DEBUG | false |
Path | File Name | Description |
---|---|---|
/assets/json/data | lab-mappings.json | Defines the lab results to query on the "Health Status" screen. Use the file found in folder /assets/json/data-backups |
/assets/json/data | vital-mappings.json | Defines the vital signs to query on the "Health Status" screen Use the file found in folder /assets/json/data-backups |
/assets/json/data | feature-toggling.json | Toggle functionality on/off across the application. Also configure preferred units. Use the file found in folder /assets/json/data-backups |
/assets/icons/logo | logo.jpg | Organizational Icon shown in the header (suggested aspect ratio is 4:7 or something close to this) |
The file names and types must match exactly. Also, you must include all json files even if you are only modifying one.
Running with a custom logo $ docker run -v {Path to folder with logo.jpg}:/usr/share/nginx/html/assets/icons/logo -d -p 80:80 --rm mcccareplan/mccpatientapp
Running with custom json files $ docker run -v {Path to folder with .json files}:/usr/share/nginx/html/assets/json/data -d -p 80:80 --rm mcccareplan/mccpatientapp
$ docker run -it -e CLIENT_ID='xxxyyzzz123123" -e API_SERVER='http://localhost:8080' -p 80:80 --rm mcccareplan/mccproviderapp
$ docker run -it -e CLIENT_ID='xxxyyzzz123123' -e API_SERVER='http://localhost:8080' -e LAUNCH_SERVER='https://mylaunch.com" -p 4200:80 --rm mcccareplan/mccproviderapp
$ docker run -it -e CLIENT_ID='1491aa24-3b5b-42e8-b532-63707c359493' -e API_SERVER='http://localhost:8080' -p 4200:80 --rm mcccareplan/mccproviderapp
$ docker build -f Dockerfile-prod -t mcccareplan/mccpatientapp .
$ docker run -it -p 80:80 --rm mcccareplan/mccpatientapp
2021-08-25
2021-06-15
2021-06-14
2021-05-21
2021-05-14
2021-05-11
2021-05-10
2021-05-4
2021-05-03
2021-04-20
2021-04-08
2021-03-29
2021-03-15
2021-03-15
2021-03-12
2021-03-04