spe-uob / 2020-HealthcareLake

A reasonably secure data lake for healthcare analytics
MIT License
9 stars 5 forks source link

FHIR API (2-3 people) #86

Closed joekendal closed 3 years ago

joekendal commented 3 years ago

Using this for help - https://github.com/spe-uob/fhir-works-on-aws-deployment

  1. Implement the Lambda,
  2. Implement Cognito, S3 and API Gateway

in Serverless. If you want to rewrite it then fine but decide among your pair which language to use for the lambda: Python, (Type|Java)Script, Java, Golang. They've used TypeScript in that example so you can just copy it if you prefer. It really isn't critical so keep it simple.

  1. Test it, write unit tests (unless you copied it because that has already tests) and usage instructions in readme so the data sim team can use the endpoint once we give them the credentials and url
joekendal commented 3 years ago

You can just copy the spe-uob/fhir-works-on-aws-deployment repo, remove the Elasticsearch resource as we don't need that. No need to reinvent the wheel. They have used TypeScript for the lambda but can just leave as is in fact. Modify the resources to use the cheapest / lightest dynamo-db settings. The VPC config will come later so just do this under a folder called api/ and test it locally and on AWS. commit regularly rather than in one big lot

joekendal commented 3 years ago

If you need a more in-depth tutorial on lambda, serverless etc. then i'm uploading those to an S3 bucket which you can access if you send me your AWS canonical user ID