Giter Club home page Giter Club logo

api's Introduction

pulse-api

The PULSE API

Installation instructions

Clone the repository

$ git clone https://github.com/pulse-admin/api.git

Configure

$ cd pulse/broker/src/main/resources/META-INF
$ cp persistence.template.xml persistence.xml
$ nano persistence.xml
$ # Set up database un/pw information, as well as access URL
$ cd ../
$ cp application.properties.template application.properties
$ nano application.properties
$ # Set up database un/pw, server port, spring security password, etc.

An API key is requried when connecting to Carequality Directory Services, and will need to be provided in the broker's application.properties file, in a format like:

sequoiaCarequalityOrganizationDirectoryUrl=https://INSERT URL HERE/Organization?apikey=INSERT_API_KEY_HERE&_format=json&_count=5
sequoiaEHexOrganizationDirectoryUrl=https://INSERT URL HERE/Organization?apikey=INSERT_API_KEY_HERE&_format=json&_count=5

Build the jar file

Command Line

$ cd pulse/broker
$ gradlew build

Eclipse

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

Deploy the Broker

$ cd pulse/broker
$ gradlew bootRun

API Methods

  • POST /acfs/create create a new ACF

    • PostBody includes name, phone number and address objects
  • POST /acfs/{id}/edit update an existing ACF

    • PostBody includes same info as create
  • GET /acfs return a list of ACFS

  • GET /acfs/{id} get the info for one ACF

  • GET /organizations get all organizations

  • POST /search finds possible patient records

    • PostBody has search parameters
  • GET /queries gets all queries for logged in user; query object includes organization query statues which include a list of patient record results

  • GET /queries/{id} gets info for one query; query object includes organization query statues which include a list of patient record results

  • POST /queries/{id}/delete delete this query

  • POST /queries/{id}/stage

    • PostBody is a list of patient record ids that came back from a query AND a Patient object with what should be saved for that merged patient
    • POST associates that new Patient with logged in user's ACF
    • At this point, any other PatientRecords from that query can be deleted from the db
  • GET /patients gets all patients at the logged-in user's ACF

  • POST /patients/{id}/delete delete this patient

  • GET /patients/{id}/documents search all patient records associated with that patient object and return a list of documents

  • GET /patients/{id}/documents/{id}?cacheOnly=true/false cache and/or return a single document

    • cacheOnly defaults to "true"

api's People

Contributors

andlar avatar brianlindsy avatar kekey1 avatar sriniadhiwork avatar ssaudacious avatar

Watchers

 avatar  avatar  avatar  avatar  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.