Skip to main content

HS.FHIRMeta.Storage.Rsrc

persistent class HS.FHIRMeta.Storage.Rsrc extends %Library.Persistent

SQL Table Name: HS_FHIRMeta_Storage.Rsrc

This class describes an individual resource within a given npm-like package of FHIR Metadata.

Property Inventory

Method Inventory

Properties

property coreVersion as %String (COLLATION = "EXACT", MAXLEN = 64);
FHIR core version. Examples: 3.0.2, 4.0.1, etc.
Property methods: coreVersionDisplayToLogical(), coreVersionGet(), coreVersionGetStored(), coreVersionIsValid(), coreVersionLogicalToDisplay(), coreVersionLogicalToOdbc(), coreVersionNormalize(), coreVersionSet()
property id as %String (COLLATION = "EXACT", MAXLEN = 250);
FHIR resource id.
Property methods: idDisplayToLogical(), idGet(), idGetStored(), idIsValid(), idLogicalToDisplay(), idLogicalToOdbc(), idNormalize(), idSet()
property json as %String);
JSON string representation of the package resource item. FHIR 'text' element is omitted.
Property methods: jsonDisplayToLogical(), jsonGet(), jsonGetStored(), jsonIsValid(), jsonLogicalToDisplay(), jsonLogicalToOdbc(), jsonNormalize(), jsonSet()
property jsonStream as %Stream.GlobalCharacter;
JSON stream object representation of the package resource item. FHIR 'text' element is omitted.
Property methods: jsonStreamDelete(), jsonStreamGet(), jsonStreamGetObject(), jsonStreamGetObjectId(), jsonStreamGetStored(), jsonStreamGetSwizzled(), jsonStreamIsValid(), jsonStreamNewObject(), jsonStreamOid(), jsonStreamOpen(), jsonStreamSet(), jsonStreamSetObject(), jsonStreamSetObjectId(), jsonStreamUnSwizzle()
property kind as %String (COLLATION = "EXACT", MAXLEN = 64);
FHIR item general category. Examples: "resource", "complex-type", "operation", etc.
Property methods: kindDisplayToLogical(), kindGet(), kindGetStored(), kindIsValid(), kindLogicalToDisplay(), kindLogicalToOdbc(), kindNormalize(), kindSet()
property packageId as %String (COLLATION = "EXACT", MAXLEN = 128);
This packageId is a concatenation of package name@version, formulated for use as internal unique id.
Property methods: packageIdDisplayToLogical(), packageIdGet(), packageIdGetStored(), packageIdIsValid(), packageIdLogicalToDisplay(), packageIdLogicalToOdbc(), packageIdNormalize(), packageIdSet()
property resourceType as %String (COLLATION = "EXACT", MAXLEN = 64);
FHIR resource type.
Property methods: resourceTypeDisplayToLogical(), resourceTypeGet(), resourceTypeGetStored(), resourceTypeIsValid(), resourceTypeLogicalToDisplay(), resourceTypeLogicalToOdbc(), resourceTypeNormalize(), resourceTypeSet()
property type as %String (COLLATION = "EXACT", MAXLEN = 250);
FHIR data type or resource type. Examples: "Observation", "string", "token", "Specimen", etc.
Property methods: typeDisplayToLogical(), typeGet(), typeGetStored(), typeIsValid(), typeLogicalToDisplay(), typeLogicalToOdbc(), typeNormalize(), typeSet()
property url as %String (COLLATION = "EXACT", MAXLEN = 250);
URL that provides a unique identifier for the resource, and if applicable states where the human readable representation of this item is published. Package resources that lack a url value are NOT stored.
Property methods: urlDisplayToLogical(), urlGet(), urlGetStored(), urlIsValid(), urlLogicalToDisplay(), urlLogicalToOdbc(), urlNormalize(), urlSet()
property version as %String (COLLATION = "EXACT", MAXLEN = 64);
Resource item version.
Property methods: versionDisplayToLogical(), versionGet(), versionGetStored(), versionIsValid(), versionLogicalToDisplay(), versionLogicalToOdbc(), versionNormalize(), versionSet()

Methods

classmethod GetRsrcById(packageList As %List, resourceType As %String, id As %String) as %DynamicObject
classmethod GetRsrcByUrl(packageList As %List, url As %String) as %DynamicObject
Returns a resource given the specified 'url' property value. Note that the resourceType need not be specified because it is implicit in the URL.
method RsrcJsonAsDynObj() as %DynamicObject
Return a %DynamicObject representation of the resource JSON content.

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()
index (PkgTypeIndex on packageId,resourceType);
Index methods: PkgTypeIndexExists()
index (PkgUrlIndex on packageId,url);
Index methods: PkgUrlIndexExists()
index (TypeIdIndex on resourceType,id,version);
Index methods: TypeIdIndexExists()
index (UrlIndex on url,version) [Unique];
Index methods: UrlIndexCheck(), UrlIndexCheckUnique(), UrlIndexDelete(), UrlIndexExists(), UrlIndexOpen(), UrlIndexSQLCheckUnique(), UrlIndexSQLExists(), UrlIndexSQLFindPKeyByConstraint(), UrlIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: Storage (HS.FHIRMeta.Storage.Rsrc)

^HS.FHIRMeta.Storage.RsrcD(ID)
=
%%CLASSNAME
packageId
id
url
resourceType
version
kind
type
json
coreVersion
jsonStream
FeedbackOpens in a new tab