You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Is it possible to validate a FHIR message against profiles?
I've tried code below:
Code:
var ctx = Packages.ca.uhn.fhir.context.FhirContext.forR4();
var validationSupportChain = new org.hl7.fhir.dstu3.hapi.validation.ValidationSuppo rtChain();
validationSupportChain.addValidationSupport(new org.hl7.fhir.dstu3.hapi.ctx.DefaultProfileValidati onSupport());
instanceValidator.setValidationSupport(validationS upportChain);
// Create a validator and register the InstanceValidator module
var val = ctx.newValidator();
val.registerValidatorModule(instanceValidator);
var result = val.validateWithResult(input);
but uncaught JavaScript runtime exception: TypeError: [JavaPackage org.hl7.fhir.dstu3.hapi.validation.ValidationSuppo rtChain] is not a function, it is object occured.
Is it possible to check if the input message is a valid FHIR message?
I'm using mirth 3.11.0 and a fhir listener 3.11.9.b1424
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Is it possible to validate a FHIR message against profiles?
I've tried code below:
Code:
but uncaught JavaScript runtime exception:
TypeError: [JavaPackage org.hl7.fhir.dstu3.hapi.validation.ValidationSuppo rtChain] is not a function, it is object occured.
Is it possible to check if the input message is a valid FHIR message?
I'm using mirth 3.11.0 and a fhir listener 3.11.9.b1424
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions