Giter Site home page Giter Site logo

mock's Introduction

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

mock's People

Contributors

brianlindsy avatar andlar avatar kekey1 avatar

Watchers

James Cloos avatar Sandeep Savarala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.