Pulse Mock Directory Services
$ git clone https://github.com/pulse/mock.git
- Go to mock/
- Run
gradlew build
on the command line
- Right click the mock project -> Gradle (STS) -> Refresh Dependencies
- Right click the mock project -> Run As -> Gradle (STS) Build
Run the command: gradlew bootRun
Right click 'MockApplication.java' file in workspace explorer -> Run as... -> Java Application
- In
src/main/resources
change the variable value for 'patientSearchInterval' (note that the value is in seconds) - Restart the application
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
.
- Go to https://github.com/usnistgov/iheos-toolkit2/releases and click on the xdstools-4.3.4.war download.
- 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.
- Go to the installation directory of tomcat and copy the xdstools-4.3.4 into the
webapps
directory. - Start tomcat service.
- Go to http://localhost:7777/xdstools-4.3.4
- 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
- Click conformance tests link at the bottom left corner
- Click on the Initiating Gateway tab for the Actor to Test
- Scroll down and hit Initialize Testing Environment
- 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)
- Copy the Assigning Authority into the assigningAuthority property of appplication.properties
- (Assigning Authority starts after ^^^& and goes until the &ISO)
- 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
with7777\xdstools-4.3.4
- 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
with7777\xdstools-4.3.4
- Reload Mock and try patient searches