Skip to content
jmandel edited this page Mar 23, 2013 · 1 revision

Launching API server:

$ node launch.js

Launching App server:

$ cd son_ccda/smart-apps
$ node launch.js

Convert a CCD to JSON, without loading into DB:

$ node lib/ccda/import.js -f CCD.sample.xml -p 123  --stdout > sample_ccda.json

Convert and load into MongoDB:

$ node lib/ccda/import.js -f CCD.sample.xml -p 123 --mongo-db

Load a CCDA via HTTP POST:

$ curl -X POST -d @CCD.sample.xml http://localhost:3000/patients/123/documents/ccda

In Browser: `http://localhost:3000/patient/12345/

Testing:

$ ./node_modules/.bin/mocha -R spec
Clone this wiki locally