Skip to content

Instantly share code, notes, and snippets.

View aduane's full-sized avatar

Andrew Duane aduane

View GitHub Profile
@aduane
aduane / mirth_fhir_CapabilityStatement_quirks.md
Last active January 25, 2021 13:49
NextGen / Mirth Connect FHIR Extension CapabilityStatement Quirks
  • A CapabilityStatement is generated automagically by a channel that has a "FHIR Listener" source connector.
  • The default CapabilityStatement does not conform to the requirements laid out in https://www.hl7.org/fhir/capabilitystatement.html
  • CapabilityStatement.rest.resource.searchParams are not specified
  • CapabilityStatement.status is not specified
  • CapabilityStatement.implementation is not specified
  • CapabilityStatement.document is not required, is specified, but is invalid (missing the profile element)

To remedy these issues or just otherwise customize the CapabilityStatement:

  • Find the "Capability Statement Template" option in the FHIR Listener source connector configuration screen.
@aduane
aduane / progress_stream_formatter.rb
Created May 23, 2017 22:23
rspec spec/ --require ./progress_stream_formatter.rb --format ProgressStreamFormatter
require "net/http"
require "uri"
require 'json'
class ProgressStreamFormatter
RSpec::Core::Formatters.register self, :dump_summary, :close, :example_passed, :example_failed, :example_pending, :start
def initialize output
@output = output
@api_key = ENV['PROGRESS_STREAM_API_KEY']