HS.FHIRMeta.MetaUtils
abstract class HS.FHIRMeta.MetaUtils
Method Inventory
- AddNewFHIRMetaSubs()
- GetListOfResources()
- MapToFHIRVersionHeader()
- MapToPackageId()
- NormalizeParamName()
- SetupVersionsTable()
Methods
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.
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.
@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
@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.
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.