Count monthly medications of pharmacy first events #54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #49
This code aims to count all medications prescribed during a Pharmacy First consultation. However, there are two main limitations: (1) only the first prescribed medication is selected per consultation, and (2) only one event per month per patient is captured – I think this is acceptable for this?
To test the measure definitions, I added some dummy data to help me verify that the code works as intended. However, I wish there were an easier way to test and extract this data?!
1577041000000109
) and medication (10000000000000000
) with same consultation ID1577041000000109
) and medication (11111111111111111
) with same consultation ID1577041000000109
) and no medication with same consultation IDdmd_code
, but I'm not too bothered about it1577041000000109
) and medication (22222222222222222
) with same consultation ID99999999999999999
) with same consultation ID