async function discharge(appointment, encounter) {
  await globals.broker
    .post(
      "/discharge",
      {},
      { params: { appointment: appointment, encounter: encounter } }
    )
    .then((response) => {
      globals.config(response);
      console.log(JSON.stringify(response.data));
      console.log("\n");
    })
    .catch((error) => globals.info(error));
}
/**
 * Send request to discharge endpoint.
 */
Send request to discharge endpoint.
Send request to discharge endpoint .
async function discharge(appointment, encounter) {
  await globals.broker
    .post(
      "/discharge",
      {},
      { params: { appointment: appointment, encounter: encounter } }
    )
    .then((response) => {
      globals.config(response);
      console.log(JSON.stringify(response.data));
      console.log("\n");
    })
    .catch((error) => globals.info(error));
}
async function discharge ( appointment , encounter ) { await globals . broker . post ( "/discharge" , { } , { params : { appointment : appointment , encounter : encounter } } ) . then ( ( response ) => { globals . config ( response ) ; console . log ( JSON . stringify ( response . data ) ) ; console . log ( "\n" ) ; } ) . catch ( ( error ) => globals . info ( error ) ) ; }
Send request to discharge endpoint.
Send request to discharge endpoint .