Skip to main content

HS.FHIRMeta.MetaUtils

abstract class HS.FHIRMeta.MetaUtils

Method Inventory

Methods

classmethod AddNewFHIRMetaSubs(pNamespace As %String, Output pInfoStrings As %List)
For existing ^HS.FHIRServer.Meta branches whose primary subscript is a $ListBuild of its package list items, copy those branches to a primary subscript that uses an alternate value, if one does not already exist for it. Existing NamedInstanceBase FHIRService instances will continue to work with their existing metaAPI instances because this method does not kill the "old" ^HS.FHIRServer.Meta global branches. This method is implemented outside of the HS.HealthConnect.Upgrade framework to help simplify the adhoc patching process.
classmethod GetListOfResources(pPackageList As %List) as %List
Return a list of all the FHIR resources for a list of packages (e.g. HS.FHIRServer.RepoInstance::metadataSetKey). This method does not return resource types marked as "abstract", except for Resource, which it does return. It also does not return the Parameters resource type.
classmethod MapToFHIRVersionHeader(pFHIRVersionString As %String) as %String
@API Case-insensitive mapping of informal/internal string or official FHIR version string into an HTTP fhirVersion header value (e.g., "4.0"). Specifying an unmapped string as input causes blank string to be returned. Reference: https://hl7.org/fhir/http.html#version-parameter
classmethod MapToPackageId(pFHIRVersionString As %String) as %String
@API Case-insensitive mapping of informal/internal string or official FHIR version string into a FHIR metadata package id (e.g., "hl7.fhir.r4.core@4.0.1"). Specifying an unmapped string as input causes blank string to be returned.
classmethod NormalizeParamName(pParamName As %String) as %String
For every instance of "-" or non leading "_" in the given string, convert the following character to uppercase, then strip out the "-". Ex: "address-city" becomes "addressCity".
classmethod SetupVersionsTable()
@API Set up a mapping of "popular" or abbreviated FHIR version strings to official FHIR core metadata package ids. The popular or abbreviated strings could come from user input or from external file content such profile package.json files.

Subclasses

FeedbackOpens in a new tab