HS.UI.Hub.Facilities
class HS.UI.Hub.Facilities extends HS.UI.HubCRUDTemplate
Healthshare Facility maintenance page.Property Inventory
- EPID
- PID
- msgInvalidFac
- msgaddIP
- msgcancelItem
- msgconfirmFac
- msgconfirmFacIgnoreCase
- msgdeleteFac
- msgenterFac
- msgenterType
- msgnothingDelete
Method Inventory
- %OnAfterCreatePage()
- CheckAllBlanks()
- DeleteData()
- DrawTitle()
- FacilityExists()
- GetTimezoneFormattedName()
- SaveData()
- UpdateDetails()
- UpdateTimezoneLocationList()
- addIP()
- cancelItem()
- deleteIP()
- deleteItem()
- editIP()
- newItem()
- rowSelected()
- saveItem()
- showObject()
- updateTimezoneLocations()
Parameters
parameter PAGENAME = HealthShare Facility;
Displayed name of this page.
parameter RESOURCE = %HSAdmin_HubManagement;
Security requirement
Properties
property EPID as %String;
Current EndPoint ID selected. It is null if it is adding a new one.
Property methods: EPIDDisplayToLogical(), EPIDGet(), EPIDIsValid(), EPIDLogicalToDisplay(), EPIDLogicalToOdbc(), EPIDNormalize(), EPIDSet()
property PID as %String;
Current Facility ID selected. It is null if it is adding a new one.
Property methods: PIDDisplayToLogical(), PIDGet(), PIDIsValid(), PIDLogicalToDisplay(), PIDLogicalToOdbc(), PIDNormalize(), PIDSet()
property msgInvalidFac as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Invalid Facility Code. Please remove any spaces or apostrophes.") ];
Property methods: msgInvalidFacDisplayToLogical(), msgInvalidFacGet(), msgInvalidFacIsValid(), msgInvalidFacLogicalToDisplay(), msgInvalidFacLogicalToOdbc(), msgInvalidFacNormalize(), msgInvalidFacSet()
property msgaddIP as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Please enter an IP address before clicking Add.") ];
Property methods: msgaddIPDisplayToLogical(), msgaddIPGet(), msgaddIPIsValid(), msgaddIPLogicalToDisplay(), msgaddIPLogicalToOdbc(), msgaddIPNormalize(), msgaddIPSet()
property msgcancelItem as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Do you wish to discard changes and reset form?") ];
Property methods: msgcancelItemDisplayToLogical(), msgcancelItemGet(), msgcancelItemIsValid(), msgcancelItemLogicalToDisplay(), msgcancelItemLogicalToOdbc(), msgcancelItemNormalize(), msgcancelItemSet()
property msgconfirmFac as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("This Facility Code already exists. Do you want to override the existing code?") ];
Property methods: msgconfirmFacDisplayToLogical(), msgconfirmFacGet(), msgconfirmFacIsValid(), msgconfirmFacLogicalToDisplay(), msgconfirmFacLogicalToOdbc(), msgconfirmFacNormalize(), msgconfirmFacSet()
property msgconfirmFacIgnoreCase as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("A similar Facility Code exists. Are you sure you want to create a facility with this name?") ];
Property methods: msgconfirmFacIgnoreCaseDisplayToLogical(), msgconfirmFacIgnoreCaseGet(), msgconfirmFacIgnoreCaseIsValid(), msgconfirmFacIgnoreCaseLogicalToDisplay(), msgconfirmFacIgnoreCaseLogicalToOdbc(), msgconfirmFacIgnoreCaseNormalize(), msgconfirmFacIgnoreCaseSet()
property msgdeleteFac as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Do you wish to delete this facility?") ];
Property methods: msgdeleteFacDisplayToLogical(), msgdeleteFacGet(), msgdeleteFacIsValid(), msgdeleteFacLogicalToDisplay(), msgdeleteFacLogicalToOdbc(), msgdeleteFacNormalize(), msgdeleteFacSet()
property msgenterFac as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Please enter a Facility Code.") ];
Property methods: msgenterFacDisplayToLogical(), msgenterFacGet(), msgenterFacIsValid(), msgenterFacLogicalToDisplay(), msgenterFacLogicalToOdbc(), msgenterFacNormalize(), msgenterFacSet()
property msgenterType as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Please select a Service Type.") ];
Property methods: msgenterTypeDisplayToLogical(), msgenterTypeGet(), msgenterTypeIsValid(), msgenterTypeLogicalToDisplay(), msgenterTypeLogicalToOdbc(), msgenterTypeNormalize(), msgenterTypeSet()
property msgnothingDelete as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Nothing selected to delete.") ];
Property methods: msgnothingDeleteDisplayToLogical(), msgnothingDeleteGet(), msgnothingDeleteIsValid(), msgnothingDeleteLogicalToDisplay(), msgnothingDeleteLogicalToOdbc(), msgnothingDeleteNormalize(), msgnothingDeleteSet()
Methods
method %OnAfterCreatePage() as %Status
Inherited description: This callback is called after the server-side page
object and all of its children are created.
Subclasses can override this to add, remove, or modify items within the page object model, or to provide values for controls.
Subclasses can override this to add, remove, or modify items within the page object model, or to provide values for controls.
classmethod CheckAllBlanks(string) as %Boolean [ ZenMethod ]
Return 1 if the string is all blank.
classmethod DeleteData(PID) as %String [ ZenMethod ]
Delete existing facility.
classmethod FacilityExists(FacilityCode, IgnoreCase=0) as %String [ ZenMethod ]
Return 1 if facility code exists
classmethod GetTimezoneFormattedName(timezone As %String) [ ZenMethod ]
classmethod SaveData(Name, FacilityCode, Description, FirstName, LastName, Organization, EMail, Telephone, ConsentGroup, ExternalHIE, OID, FacilityId, Gateway, Timezone, Tier, Home, AssignAuth, IPs, Roles) as %String [ ZenMethod ]
Save facility data to server.
During "Edit", if user changed Facility code, and if that code does not exists, then a new record for the new Facility code will be created.
classmethod UpdateDetails(PID) [ ZenMethod ]
Load data into General tab for facility.
method UpdateTimezoneLocationList(region As %String, fromButton As %Boolean) as %Status [ ZenMethod ]
clientmethod addIP() [ Language = javascript ]
User clicked Add to add a new IP address
clientmethod cancelItem() [ Language = javascript ]
Cancel current Facility edit.
clientmethod deleteIP() [ Language = javascript ]
Delete an IP Address
clientmethod deleteItem() [ Language = javascript ]
Delete selected Facility from database
clientmethod editIP() [ Language = javascript ]
User double clicked on an IP address in the list. Show it in the add box for edit.
If user is correcting, he can edit it and save then delete the old one.
It is also convenient if they are adding multiple ones that have most parts similar.
clientmethod newItem() [ Language = javascript ]
Create a new facility. Clear field and unselect table row.
clientmethod rowSelected(table, which) [ Language = javascript ]
User clicked on a facility row.
clientmethod saveItem() [ Language = javascript ]
User clicked "Save" for facility. Check Facility code.
If user modified facility code while editing, confirm with user if they are sure doing that.
clientmethod showObject(id) [ Language = javascript ]
Load the facility object with the given id into the form.
clientmethod updateTimezoneLocations(fromButton) [ Language = javascript ]
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- HomeApplication
- LookupColumn
- LookupExpression
- LookupTable
- ModelClass
- ObjectID
- StdTitle
- align
- aux
- backgroundTimerInterval
- cellAlign
- cellSize
- cellStyle
- cellVAlign
- children
- composite
- containerStyle
- cssLevel
- disabled
- dragAndDrop
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- groupClass
- groupStyle
- height
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- label
- labelClass
- labelDisabledClass
- labelPosition
- labelStyle
- layout
- name
- onafterdrag
- onbeforedrag
- onclick
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- showLabel
- slice
- title
- tuple
- useSVG
- useSoftModals
- valign
- visible
- width
- window
- zenPersistentPopup
Inherited Methods
- %AddChild()
- %AddChildAfter()
- %AddChildBefore()
- %AddComponent()
- %AddImportedComponents()
- %AddToSaveSet()
- %ApplyURLParms()
- %Attr()
- %BindExport()
- %CheckHSClass()
- %CheckProductionRunning()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawAutoLogout()
- %DrawClassDefinitions()
- %DrawComponentHTML()
- %DrawHTML()
- %DrawHTMLPage()
- %DrawJSStrings()
- %DrawObjectDefinitions()
- %EnclosingDivId()
- %EndBackgroundMethod()
- %EndScript()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetChildIndex()
- %GetComponent()
- %GetComponentById()
- %GetComponentByName()
- %GetEventHandlers()
- %GetLinks()
- %GetPageName()
- %GetParameter()
- %GetValueById()
- %GetValueByName()
- %GetXMLName()
- %IsA()
- %IsModified()
- %Link()
- %LinkCSS()
- %LinkScript()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnBeforeCreatePage()
- %OnCreateApplication()
- %OnCreatePage()
- %OnDetermineCSSLevel()
- %OnDrawEnclosingDiv()
- %OnDrawHTMLBody()
- %OnDrawHTMLHead()
- %OnDrawHTMLMeta()
- %OnDrawObjectProperties()
- %OnFinishBackgroundTask()
- %OnHSPreHTTP()
- %OnMonitorBackgroundTask()
- %OnMutateChildren()
- %OnObjectSynch()
- %OnPreHTTP()
- %OnSubmit()
- %OnUseSoftModals()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveChild()
- %RemoveChildren()
- %RemoveComponent()
- %RemoveFromSaveSet()
- %RunBackgroundMethod()
- %Self()
- %SerializeObject()
- %SetBackgroundMethodStatus()
- %SetErrorById()
- %SetErrorByName()
- %SetModified()
- %SetValueById()
- %SetValueByName()
- %SetValuesByName()
- %StartScript()
- %ValidateObject()
- %ZENVersion()
- CheckFormatting()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- GetDocPage()
- HSUILink()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- JavaInstalled()
- Link()
- OnHTTPHeader()
- OnPage()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHTTP()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- addChild()
- addChildAfter()
- addChildBefore()
- cancelPopup()
- checkChildStatus()
- childrenMutated()
- correctIELayering()
- createComponent()
- createComponentNS()
- deleteComponent()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- endModal()
- exposeComponent()
- findElement()
- fireOnResizeEvent()
- fireOnUnloadEvent()
- fireOnUpdateEvent()
- firePopupAction()
- getChildIndex()
- getComponent()
- getComponentById()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getLabelElement()
- getOpener()
- getProperty()
- getSettings()
- getType()
- getUsername()
- gotoPage()
- hsBubbleResetAutoLogout()
- hsResetAutoLogout()
- inNavFrame()
- invokeSuper()
- isOfType()
- launchPopupWindow()
- logoutChild()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onPopupAction()
- onRefreshContents()
- onSerialize()
- onServerMethodCall()
- onServerMethodError()
- onServerMethodReturn()
- onStartModalHandler()
- ondisabledHandler()
- onhandleAutoLogoutWarn()
- onkeydownHandler()
- onkeyupHandler()
- onlayoutHandler()
- onloadHandler()
- onlogoutHandler()
- onoverlayHandler()
- onresizeHandler()
- onunloadHandler()
- onupdateHandler()
- pollChildUrl()
- popupActionHandler()
- postMessageToParent()
- refreshContents()
- removeChild()
- render()
- renderContents()
- renderSVG()
- setActivityCheck()
- setComponentId()
- setHidden()
- setOverlayMode()
- setProperty()
- setPropertyAll()
- setTraceOption()
- showHelp()
- startModal()
- startProgressBar()
- stopProgressBar()
- triggerLogoutNotification()
- verifyUsername()