Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

pulse-admin/mock

Repository files navigation

PULSE Mock Directory Services

Pulse Mock Directory Services

Installation instructions

Clone the repository

$ git clone https://github.com/pulse/mock.git

Build the jar file

Command Line

  1. Go to mock/
  2. Run gradlew build on the command line

Eclipse

  1. Right click the mock project -> Gradle (STS) -> Refresh Dependencies
  2. Right click the mock project -> Run As -> Gradle (STS) Build

Deploy the Web App

Command Line

Run the command: gradlew bootRun

Eclipse

Right click 'MockApplication.java' file in workspace explorer -> Run as... -> Java Application

Change the time interval for Mock HIE SOAP querying

  1. In src/main/resources change the variable value for 'patientSearchInterval' (note that the value is in seconds)
  2. Restart the application

Change the "Active Organizations"

While the mock service is running via bootRun, you can change the status of, or parameters for, the organizations in the system by navigating to mock/build/resources/main/ and editing the file named organizations.xml.

Installation of NIST tool

  1. Go to https://github.com/usnistgov/iheos-toolkit2/releases and click on the xdstools-4.3.4.war download.
  2. Go to https://tomcat.apache.org/download-70.cgi and download the windows version of tomcat and install. Set up tomcat to run on an unusual port to avoid conflicts with other PULSE applications. These instructions assume you use 7777. Edit conf/server.xml and replace 8080 with 7777.
  3. Go to the installation directory of tomcat and copy the xdstools-4.3.4 into the webapps directory.
  4. Start tomcat service.
  5. Go to http://localhost:7777/xdstools-4.3.4
  6. Follow the instructions at https://github.com/usnistgov/iheos-toolkit2/wiki/installing#configure to set up your external cache and make the popup error message go away.
  • Specifically, set the External Cache value to a directory on your machine, and the Toolkit Port value to 7777
  1. Click conformance tests link at the bottom left corner
  2. Click on the Initiating Gateway tab for the Actor to Test
  3. Scroll down and hit Initialize Testing Environment
  4. Scroll down to Test Data Pattern and copy the patient ID's into a comma separated list in the patientIds property in the mock/src/main/resources/application.properties file
  • (Patient Id's start with P and end before the ^^^ characters)
  1. Copy the Assigning Authority into the assigningAuthority property of appplication.properties
  • (Assigning Authority starts after ^^^& and goes until the &ISO)
  1. In the endpoints file replace all Query Endpoints with the Cross Community Query Endpoint in the Supporting Environment Configuration section
  • Replace 8081/xdstools-4.3.4 with 7777\xdstools-4.3.4
  1. In the endpoints file replace all Retreive Endpoints with the Cross Community Retrieve Endpoint in the Supporting Environment Configuration section
  • Replace 8081/xdstools-4.3.4 with 7777\xdstools-4.3.4
  1. Reload Mock and try patient searches

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages