The SHARES Consent Portal is a FHIR Consent resource administration and management UI for visually browsing, creating, maintaining, and simulating behavior of Consent-related FHIR documents from a FHIR backend URL configured at runtime.
Consent Portal natively supports the FHIR R5 specification. Due to significant differences with the Consent resource in prior FHIR releases, only R5 is supported.
This project is written in TypeScript using Angular, Bootstrap, and SCSS for custom CSS. npm is the package manager.
You must have a running FHIR R5 server backend (such as HAPI FHIR) to use this frontend project.
Assuming you already have node installed via nvm or similar, run npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files. The following must be set:
export CONSENT_PORTAL_DEFAULT_FHIR_URL=https://your.fhir.server.example.com/fhir
export CONSENT_PORTAL_CDS_ROOT_URL=https://cds-hooks.sandbox.asushares.com # Any instance of our CDS Hooks service.
To build a reusable image with Docker and nginx, use the included Dockerfile. For example:
docker build -t asushares/portal:latest . # though you probably want your own repo and tag strings :)
# or cross-platform
docker buildx build --platform linux/arm64/v8,linux/amd64 -t asushares/portal:latest . --pushOn your local machine or container hosting environment:
docker run -d -p 4200:80 --restart unless-stopped -e "CONSENT_PORTAL_DEFAULT_FHIR_URL=http://localhost:3000" asushares/portal:latest # or any official tag- Preston Lee
- Abhishek Dhadwal
- Daniel Mendoza
Apache 2.0