Ambra event filters. This project includes a Lambda functions to filter incoming events sent to our servers.
This Lambda function inspects incoming Study Edited
webhook events before forwarding them to an endpoint if considered valid. Such events are considered valid if
OriginalMRN
is present - the study has been processedPatientId
is present - the study has an original value that can be comparedPatientId !== OriginalMRN
- the study isn't being re-uploaded
## OriginalMRN missing
curl -v -X POST \
'https://abcdefg.lambda-url.us-east-1.on.aws/' \
-H 'content-type: application/json' \
-d '{"UUID":"UUID","PatientId":"PatientId","PatientName":"PatientName","EntityId":"EntityId","MemberFileId":"MemberFileId","OriginalMRN":"","StudyUID":"StudyUID"}'
## OriginalMRN present
curl -v -X POST \
'https://abcdefg.lambda-url.us-east-1.on.aws/' \
-H 'content-type: application/json' \
-d '{"UUID":"UUID","PatientId":"PatientId","PatientName":"PatientName","EntityId":"EntityId","MemberFileId":"MemberFileId","OriginalMRN":"OriginalMRN","StudyUID":"StudyUID"}'
The cdk.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilecdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template