Create a VM running Ubuntu. Use a modern version.
Great thanks for the original guide: https://gist.github.com/jgautsch/9157402
# Update Ubuntu
sudo apt-get update
# Upgrade Ubuntu
sudo aptitude upgrade
Create a VM running Ubuntu. Use a modern version.
Great thanks for the original guide: https://gist.github.com/jgautsch/9157402
# Update Ubuntu
sudo apt-get update
# Upgrade Ubuntu
sudo aptitude upgrade
ROS (10 systems) | |
In addition to that documented in the HPI above, the additional ROS was obtained: | |
Constitutional: Denies fevers or chills | |
Eyes: Denies vision changes | |
ENMT: Denies sore throat | |
CV: Denies chest pain | |
Resp: Denies SOB | |
GI: Denies vomiting or diarrhea | |
GU: Denies painful urination | |
MSK: Denies recent trauma |
//This is a javascript writer segment | |
// File to send | |
var file = new Packages.java.io.File.createTempFile("s3-hl7", ".json"); | |
var bw = new Packages.java.io.BufferedWriter(new Packages.java.io.FileWriter(file)); | |
//'object' is just whatever you have in the channelMap that you want to push to S3. Might be just the raw message or the transformed message. | |
bw.write($('object')); | |
bw.close(); |
//Make a directory to hold the node | |
mkdir node-install-dir | |
cd node-install-dir | |
//Curl and unzip latest node | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
//Install gcc and g++ | |
sudo apt-get update | |
sudo apt-get install make gcc g++ apache2 |
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="CDA.xsl"?> | |
<!-- | |
Title: US_Realm_Header_Template | |
Revision History: | |
01/31/2011 bam created | |
07/29/2011 RWM modified | |
11/26/2011 RWM modified | |
08/12/2012 RWM modified |
{ | |
"ClinicalDocument": { | |
"-xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", | |
"-xmlns": "urn:hl7-org:v3", | |
"-xmlns:cda": "urn:hl7-org:v3", | |
"-xmlns:sdtc": "urn:hl7-org:sdtc", | |
"-xsi:schemaLocation": "urn:hl7-org:v3 ../../../CDA%20R2/cda-schemas-and-samples/infrastructure/cda/CDA.xsd", | |
"realmCode": { "-code": "US" }, | |
"typeId": { | |
"-root": "2.16.840.1.113883.1.3", |
foreach (var model in models) | |
{ | |
if (model.first_name == null) | |
{ | |
return Request.CreateResponse(HttpStatusCode.BadRequest, | |
new ErrorResponse[] | |
{new ErrorResponse(ErrorCodes.FirstNameRequired)}); | |
//OR record this element in the array and then create an array without these elements and fail silently |
[ | |
{ | |
"dirty": true, | |
"modified_on": "2013-09-16T22:36:12.546Z", | |
"obj_data": { | |
"id": "523787dc37c4db2ef46e5637", | |
"activities": 0, | |
"added_by": { | |
"id": "523763ce37c4db286465d807", | |
"added_by": "523763ce37c4db286465d807", |
string filePath = Path.Combine(TempPath, file.FileName); | |
/*Even though Jquery handles checking by doctypes, we have built checking on the server side | |
* To protect against javascript hacks | |
* | |
* The jquery doesn't normalize the text in the file extension. We may choose to | |
* handle this ourselves when we come up with a standard naming scheme for consistency's sake later, | |
* but for now, ToLower() the extension. */ | |
string checkValidExt = Path.GetExtension(filePath); | |
if (checkValidExt.ToLower() != ".png" || checkValidExt.ToLower() != ".jpg") | |
{ |
data.rfv = msg['PV2']['PV2.3']['PV2.3.1'].toString(); | |
data.patientAddress = msg['PID']['PID.11']['PID.11.1'].toString() + (msg['PID']['PID.11']['PID.11.2'].length >= 1 ? (", " + msg['PID']['PID.11']['PID.11.2'].toString()) : "") + ", " + msg['PID']['PID.11']['PID.11.3'].toString() + ", " + msg['PID']['PID.11']['PID.11.4'].toString() + " " + msg['PID']['PID.11']['PID.11.5'].toString(); | |
data.givenName = msg['PID']['PID.5']['PID.5.2'].toString(); | |
data.familyName = msg['PID']['PID.5']['PID.5.1'].toString(); | |
data.middleInitialOrName = msg['PID']['PID.5']['PID.5.3'].toString(); | |
data.dob = new String(DateUtil.convertDate("yyyyMMdd","MM/dd/yyyy HH:mm:ss", msg['PID']['PID.7']['PID.7.1'].toString())); | |
data.sex = msg['PID']['PID.8']['PID.8.1'].toString(); | |
data.phoneNumber = msg['PID']['PID.13']['PID.13.1'].toString(); | |
data.eventTime = new String(DateUtil.convertDate("yyyyMMddHHmm","MM/dd/yyyy HH:mm:ss",msg['EVN']['EVN.2']['EVN.2.1'].toString())); |