Javascript FHIR Validator
A javascript FHIR (www.hl7.org/fhir/) validator for use with json or strings that conform to the FHIR 3 standard.
Usage
Node
var fhir = resource result; // Your resource to validate (as json or a string)resource = resourceType: 'Medication' invalidProperty: 'This property is invalid for medications'; // Run the validation on the resourceresult = fhir; // Use the validation resultifresulterrorslength > 0 throw errors: resulterrors message: 'The given resource is invalid. There were ' + resulterrorslength + ' errors.' ;