Appendix A - Guideline and Code Table Updates

Note: Foresight REST API does not support to apply Guidelines updates or Code table updates automatically, if the users need to update Guidelines/Code tables, they can do following manual steps. Changes made with docker cp or kubectl cp commands are limited to the running container or pod. For any reason if the container or pod restarts, the changes are lost.

For Guideline updates:

  1. Decompress the package.

  2. If the guidelines folder is mounted outside of the Kubernetes pod, copy the Database folder and static folder to the mounted guidelines folder.

    Or, if the guidelines folder is not mounted, compress the guideline files under the Database folder to a zip file, then upload the zip file using PUT http://IP_ADDRESS:Port/ForesightREST/guidelines?multiple=y&overwrite=y. Perform the same steps for the guidelines under the static folder.

  3. Copy the files under the bin folder to Docker or Kubernetes containers with the following commands:

For the Docker:

docker cp bin/. Container_ID:/usr/share/tomcat/tibco/instream/fseng/bin/

For the Kubernetes:

kubectl cp bin/. namespace_name/pod_name:/usr/share/tomcat/tibco/instream/fseng/bin/

For Code table updates:

  1. Decompress the package.

  2. Copy the bin/fs_hipaa.dat to Docker or Kubernetes containers with the following commands:

For the Docker:

docker cp bin/fs_hipaa.dat Container_ID:/usr/share/tomcat/tibco/instream/fseng/bin/fs_hipaa.dat

For the Kubernetes:

kubectl cp bin/fs_hipaa.dat namespace_name/pod_name:/usr/share/tomcat/tibco/instream/fseng/bin/fs_hipaa.dat