Skip to main content

HS.FHIRServer.API.Tag

class HS.FHIRServer.API.Tag extends %Library.RegisteredObject, %JSON.Adaptor

Provides name/value pair objects to add to the HS.FHIRServer.API.ConfigData Tags list of objects
  Set tag = ##class(HS.FHIRServer.API.Tag).%New("Strategy","Json")
  do configData.Tags.Insert(tag)
  Write configData.AsJSONString()
  {"interactions_strategy_class":"HS.FHIRServer.Storage.Json.InteractionsStrategy","default_search_page_size":100,"max_search_page_size":100,"max_search_results":1000,"max_conditional_delete_results":3,"fhir_session_timeout":300,"default_prefer_handling":"lenient","debug_mode":0,"tags":[{"name":"Environment","value":"DEVELOPMENT"},{"name":"Strategy","value":"Json"}]}
  

Property Inventory

Method Inventory

Properties

property name as %String (%JSONFIELDNAME = "name", MAXLEN = 100) [ Required ];
Property methods: nameDisplayToLogical(), nameGet(), nameIsValid(), nameLogicalToDisplay(), nameLogicalToOdbc(), nameNormalize(), nameSet()
property value as %String (%JSONFIELDNAME = "value", MAXLEN = 100) [ Required ];
Property methods: valueDisplayToLogical(), valueGet(), valueIsValid(), valueLogicalToDisplay(), valueLogicalToOdbc(), valueNormalize(), valueSet()

Methods

method %OnNew(pName As %String = "", pValue As %String = "") as %Status
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab