Home » Network Connections
The NetworkConnections module allows you to access the Network Connections found in the Network Connections menu, as seen below. The Network Connections can be accessed as NetworkConnection objects.
Default Network Connections as configured in the Default Connections menu can also be accessed.
The NetworkConnections module exposes method for obtaining NetworkConnection objects, including the default Network Connections.
Returns the Network Connection that has the provided name.
var connection = NetworkConnections.getConnection('DaaS Caristix FHIR R4 Server');
// Should return the Network Connection with the name "DaaS Caristix FHIR Server R4 Server"
// and the host "daas.caristix.com/fhir_r4"
Returns the default HL7 Receive Network Connection.
var sendConnection = NetworkConnections.getDefaultReceiveHL7Connection();
// Should return the Network Connection with the name "Caristix Field Mapping Channel"
// and the host "daas.caristix.com"
Returns the default HL7 Send Network Connection.
var ReceiveConnection = NetworkConnections.getDefaultSendHL7Connection();
// Should return the Network Connection with the name "Caristix Field Mapping Channel"
// and the host "daas.caristix.com"
Returns the default HL7 Send Network Connection.
var webServiceConnection = NetworkConnections.getDefaultWebServiceConnection();
// Should return the Network Connection with the name "DaaS Caristix FHIR Server R4 Server"
// and the host "daas.caristix.com/fhir_r4"
The NetworkConnection object allows you to read all the Network Connection properties that you can access from within the Network Connections menu, as well as a method for obtaining the fully-qualified URL of the Network Connection.
The Network Connection’s Name property.
var name = connection.name
// name should be "Daas Caristix FHIR R4 Server"
The Network Connection’s Host property.
var host = connection.host
// host should be "daas.caristix.com/fhir_r4"
The Network Connection’s Port property.
var port = connection.port;
// port should be 443
The Network Connection’s default Timeout property.
var timeout = connection.timeout;
// timeout should be 30
The Network Connection’s Client Certificate serial number.
var certificate = connection.certificate
Returns the Network Connection’s fully-qualified URL, including protocol, host and port.
If the protocol is not included in the Host property, the protocol is either https (if the port is 443) or http (if using any other port).
The default ports for serving content over HTTP and HTTPS, 80 and 443 respectively, are excluded from the URL.
var url = connection.getUrl()";
// url should be "https://daas.caristix.com/fhir_r4"
NORTH AMERICA: +1 (877)-872-0027
WORLD: 1-418-872-4000
EMAIL: info@caristix.com
ASIA-PACIFIC
DENIS CANTIN
T: +61418441388
denis.cantin@caristix.com
NORTH AMERICA & EUROPE
JEAN-LUC MORIN
T: 418 872-4000
jeanluc.morin@caristix.com
HL7® / FHIR® are a registered trademarks of Health Level Seven International. The use of this trademark does not constitute an endorsement by HL7.