Code Monkey home page Code Monkey logo

medical-application's People

Contributors

freethejazz avatar sauloaguiar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

medical-application's Issues

Refactor Entities to reflect modeling

screen shot 2017-04-08 at 10 07 54 am

As described in the image, a new entity - Administration - and a relationship between Administration and Prescription must be added. Also, no User has a role.

Set up Deployment

The application provisioning should be handled by a CI environment - Circle CI.
Application will be served in a docker container that will run a uberJar generated by gradle.

Test Patient Service

Create high level tests to check if endpoint arguments and returns work as expected.

Implement and Test User Controller

The UserController class should have the following endpoints and their respective return types/arguments

  • GET / -> List[User]
[{"id":1,"firstName":"Saulo","lastName":"Aguiar","birthday":60586282800000,"prescriptions":[],"roles":[]},{"id":2,"firstName":"Jonathan","lastName":"Freeman","birthday":60491588400000,"prescriptions":[],"roles":[]}]
  • GET /{id} -> User
{"id":1,"firstName":"Saulo","lastName":"Aguiar","birthday":60586282800000,"prescriptions":[],"roles":[]}
  • POST / -> User
    Args:

    • Role
    • First/Last Name
    • Birthday
  • GET /{id}/prescriptions -> List[Prescription]

[{"user_id": 1, "frequency": "**3**2*", "startDate": 12312312, "endDate": 123213 }]
  • GET /{id}/administrations -> List[Administration]
[{"medicine": 1, "patient_id": 1, "caregiver_id": 2, "timestamp": 12312321 }]
  • POST /{caregiverId}/patient -> TakesCareOf
{ "caregiver_id": 1, "patient_id": 2, "assignedAt": 1231231312 }
  • GET /{caregiverId}/patients -> List[User]
[{"id":1,"firstName":"Saulo","lastName":"Aguiar","birthday":60586282800000,"prescriptions":[],"roles":[]},{"id":2,"firstName":"Jonathan","lastName":"Freeman","birthday":60491588400000,"prescriptions":[],"roles":[]}]
  • POST /{patientId}/prescription -> Prescription
{
	"medicineName": "atenolol",
	"medicineDose": 1000,
	"medicineDoseUnit": "mg",
	"endDate": 1231231231,
	"startDate": 12312321,
	"timetable": {
             "frequency": "once in a month",
             "cron": "1 * * 2"
         }
}

Consider adding DTO to send only timetable id and avoid hibernate to recreate entries for the same set of values

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.