The FhirUtil Utility Class - rbeckman-nextgen/test-mc GitHub Wiki

  1. Mirth Connect
  2. Home
  3. FHIR Connector Extension (3.6)
  4. User Guide

Mirth Connect : The FhirUtil Utility Class

Created by Nick Rupley on May 08, 2018

There is also a FhirUtil class accessible in JavaScript contexts. This contains methods to convert to and from XML/JSON, create special resource types like OperationOutcome, or generating resource narratives. Here are some of the most useful methods available:

  • toXML(resource)
  • fromXML(resourceXML)
  • toJSON(resource)
  • fromJSON(resourceJSON)
  • xmlToJSON(resourceXML)
  • jsonToXML(resourceJSON)
  • createOperationOutcome(severity, code, details)
  • createBinaryResource(byteArray, mimeType)
  • createBinaryResource(base64String, mimeType)
  • generateNarrative(resource)

There are others too; as mentioned before you can look at the Reference list, the auto-completion dialog, or the Javadoc for more information.

Document generated by Confluence on Nov 11, 2019 08:40

Atlassian

⚠️ **GitHub.com Fallback** ⚠️