Stream: implementers
Topic: FHIR-Extensions
shishirakram (May 07 2021 at 11:10):
I am trying to implement the fhir extesnions in Mirth. I am having difficulty in setting the value for the extension. Please someone help me.
Here is the code I am trying:
var ext = new Packages.org.hl7.fhir.r4.model.Extension();
ext.setUrl("http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient");
ext.setValue("test");
This is the error I am getting.
"JavaAdapter requires at least one argument."
Grahame Grieve (May 07 2021 at 11:37):
these things seem unrelated. You need to explain more about what you're doing
Craig McClendon (May 07 2021 at 21:39):
It's been a few years since I used Mirth - but it uses some type of javascript-java adapter so you can load/access Java classes in a Mirth Javascript script. It looks like your issue lies somewhere there. You might start small - try loading a simple java.lang.Object first - to make sure you can access java classes at all. If that works then it's perhaps a matter of determining if the package/class you are wanting is even on the java classpath in Mirth.
Last updated: Apr 12 2022 at 19:14 UTC