Skip to main content

HS.Message.FacilitySearchResponse

persistent class HS.Message.FacilitySearchResponse extends HS.Util.EnsResponse

SQL Table Name: HS_Message.FacilitySearchResponse

Property Inventory

Method Inventory

Parameters

parameter XMLIGNORENULL = inputonly;
Inherited description: If XMLIGNORENULL is set = "inputonly", then both missing tags in the XML and empty strings are input as "". Output of "" and $c(0) are for XMLIGNORENULL = 0: $c(0) is output as an empty tag (i.e. <tag></tag>) and "" is output as no tag.

Properties

property Results as list of FacilitySearchMatch (STORAGEDEFAULT = "array");
NOTE: If you use STORAGEDEFAULT="array", you will need to reset the storage to make it work
Property methods: ResultsBuildValueArray(), ResultsCollectionToDisplay(), ResultsCollectionToOdbc(), ResultsDisplayToCollection(), ResultsGet(), ResultsGetObject(), ResultsGetObjectId(), ResultsGetStored(), ResultsGetSwizzled(), ResultsIsValid(), ResultsOdbcToCollection(), ResultsSet(), ResultsSetObject(), ResultsSetObjectId()
property ResultsCount as %Integer;
Number of results
Property methods: ResultsCountDisplayToLogical(), ResultsCountGet(), ResultsCountGetStored(), ResultsCountIsValid(), ResultsCountLogicalToDisplay(), ResultsCountNormalize(), ResultsCountSet(), ResultsCountXSDToLogical()

Methods

classmethod DescriptionForCode(searchId As %String, facilityCode As %String) as %String
Return a facility description given a code

Queries

query SearchResults(searchId As %String = "", facilityCode As %String = "")
SQL Query:
SELECT m.%ID,m.FacilityCode,m.Name,m.Description,m.Contact FROM FacilitySearchMatch m, FacilitySearchResponse_Results r WHERE r.FacilitySearchResponse = :searchId AND r.Results = m.%ID AND m.FacilityCode %STARTSWITH :facilityCode ORDER BY m.FacilityCode

Inherited Members

Inherited Properties

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: Storage (Ens.MessageBody)

^Ens.MessageBodyD(ID)
=
%%CLASSNAME

Storage Model: Storage (HS.Util.EnsResponse)

^Ens.MessageBodyD(ID,"EnsResponse")
=
HSCoreVersion
HSMinVersionError

Storage Model: Storage (HS.Message.FacilitySearchResponse)

^Ens.MessageBodyD(ID,"FacilitySearchResponse")
=
ResultsCount

Storage Model: Storage (HS.Message.FacilitySearchResponse)

^Ens.MessageBodyD(ID,"HS.Message.FacilitySearchResponse.Results",n)
=
Results(n)
FeedbackOpens in a new tab