Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add service-ruby subproject #63

Merged
merged 8 commits into from
May 31, 2022
Merged

Conversation

yoomlam
Copy link
Contributor

@yoomlam yoomlam commented May 31, 2022

Ticket: #61

Add service-ruby subproject, which:

  • ports over pdf generation and health data assessment Ruby code from the RRD prototype to VRO
  • adds containers to the app subproject

To run only the subproject: ./gradlew :service-ruby:dockerComposeUp
To test, send RabbitMQ messages using scripts in the examples directory:

cd service-ruby
examples/assess.rb
# Expect some result
Waiting for reply within 5 seconds
 Received reply: {
  "bp_readings": [
    {
      "effectiveDateTime": "2022-04-18",
      "practitioner": "DR. THOMAS359 REYNOLDS206 PHD",
      "organization": "LYONS VA MEDICAL CENTER",
      "systolic": {
        "code": "8480-6",
        "display": "Systolic blood pressure",
        "unit": "mm[Hg]",
        "value": 175.0
      },
      "diastolic": {
        "code": "8462-4",
        "display": "Diastolic blood pressure",
        "unit": "mm[Hg]",
        "value": 111.0
      }
    }
  ]
}
correlation_id: 2022-05-31 15:07:05 -0500

examples/generate_pdf.rb
# Expect some result
Waiting for reply within 5 seconds
 Received reply: {
  "filename": "rrd-pdf-1654027657.pdf"
}
correlation_id: 2022-05-31 15:07:38 -0500
Closing

When you run the app (./gradlew :app:dockerComposeUp), a service-ruby container will be included.

@yoomlam
Copy link
Contributor Author

yoomlam commented May 31, 2022

I use portainer for a nice docker UI:
image

@yoomlam yoomlam merged commit 0aeebec into main May 31, 2022
@yoomlam yoomlam deleted the yoom/add-service-ruby-container branch May 31, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant