## What is FRED? FRED is an open source web application that enables users to edit JSON [FHIR resources](https://www.hl7.org/fhir/resourcelist.html) and [FHIR bundles](https://www.hl7.org/fhir/bundle.html). Built as an HTML5 app, FRED runs entirely within
npm install smart-fred#### DSTU2:
- A Patient Resource
- A Blood Pressure Resource
- A Bundle of Observations
- Any FHIR Resource
#### STU3:
- A Patient Resource
- A Bundle of Observations
- Any FHIR Resource
/profiles/dstu2.json` (DSTU2) and `/profiles/connect12.json` (May 2016 connectathon) | Configures FRED to support for a particular version of FHIR.|
| remote | 0 or 1 | Supports controlling FRED from another web application (using postMessage) when set to `1` (demo). |
| warn | 0 or 1 | If set to `0`, will suppress a warning when navigating away from the page. Useful when developing with auto-reloading. |Tech
- App:
- React - UI Rendering
- React Bootstrap - UI widgets
- FreezerJs - Immutable data store- Build:
- NodeJs - Runtime
- CoffeeScript - Language
- Webpack - Build tool
- Mocha - Testing library
Install FRED locally
1. Install NodeJs from https://nodejs.org2. Clone this repository
`
git clone https://github.com/smart-on-fhir/fred
cd fred
`
3. Install the dependencies
`
npm install
`
4. Run the dev server
`
npm run dev
`
5. Browse to `http://localhost:8080`Commands
| Action | Command |
| ------ | ------- |
| Start Dev Server | `npm run dev` |
| Build Static JS Bundle | `npm run build` |
| Run Tests | `npm run test` |
| Run Tests on Edit | `npm run test-watch` |Building Resource Profiles
To reduce load time, FRED uses a simplified copy of the (>15mb!) JSON FHIR resource profiles. To convert the FHIR resource profiles into this format, ensure the desired profile bundles and valueset bundles are in the fhir_profiles subdirectory and run `npm run build-profiles``To stay updated on the project follow @gotdan and @smarthealthit on twitter!