Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

 

Start the Docker Quickstart Terminal from the applications folder:
Mac Start Docker Quickstart Terminal
Applications/Docker/Docker Quickstart Terminal.app

Clone the Bitbucket project for hspc-docker from: <hspc-docker path> and build it with Docker:

Mac Start Docker Quickstart Terminal
cd <hspc-docker path>
docker build -t="opencds/hspc" .

 

Create volume for hspc webapps

Mac Start Docker Quickstart Terminal
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true


Create hspc container:
sudo docker run --volumes-from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc

Mac Start Docker Quickstart Terminal
docker run --volumes-from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc


# populate patients

Mac Start Docker Quickstart Terminal
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true

 

Clone project bitbucket.org/hspconsortium/tools.git

Mac Start Docker Quickstart Terminal
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true

 

Compile and change to the tools subdirectory

Mac Start Docker Quickstart Terminal
mvn clean install

 

Change to the tools/target subdirectory

Mac Start Docker Quickstart Terminal
cd tools/target

 

java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data

Mac Start Docker Quickstart Terminal
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data


java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/usecase/schedule

Mac Start Docker Quickstart Terminal
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/usecase/schedule


java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/starter

Mac Start Docker Quickstart Terminal
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/starter


# check where are the volumes

Create container:
docker inspect hspc
Import sample patient data:
# The sandbox must be running cd hspc/hsp-tools/tools/target java -jar hsp-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hsp-api/data

Test the Installation

  1. Open a browser and go to: http://localhost:8080/hsp-reference-apps
  2. Log in with "demo/demo"
  3. Select a patient 
  4. Select an application

Issue a Test Query Against Your Unsecured RESTful API Server
http://localhost:8080/hsp-api/data/Patient?_format=json - This should result in aJSON FHIR bundle containing all the default patients in the system.

 

  • No labels