Skip to main content

HS.UI.Hub.Facilities

class HS.UI.Hub.Facilities extends HS.UI.HubCRUDTemplate

Healthshare Facility maintenance page.

Property Inventory

Method Inventory

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.
classmethod CheckAllBlanks(string) as %Boolean [ ZenMethod ]
Return 1 if the string is all blank.
classmethod DeleteData(PID) as %String [ ZenMethod ]
Delete existing facility.
method DrawTitle(pSeed As %String) as %Status
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

Inherited Methods

FeedbackOpens in a new tab