[NDH-278] Build out OrganizationAffiliation endpoint#270
Conversation
…erializer Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
…affiliation-endpoint
…affiliation-endpoint
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
…affiliation-endpoint
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
…affiliation-endpoint
spopelka-dsac
left a comment
There was a problem hiding this comment.
It will be easier to assess the rest of the changes once the test fixtures PR is landed, so that this diff isn't so big. I'll provide further comments once that one is merged
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
…affiliation-endpoint
spopelka-dsac
left a comment
There was a problem hiding this comment.
@IsaacMilarky As I was digging into this PR review and the FHIR spec in more depth, I realized that I think I was incorrect in suggesting that ehr vendors should be listed as organizations at /Organization...
It seems cleaner and more sensible to represent the ehr vendors solely as references in the organization attribute on OrganizationAffiliation, represented not with a link to their Organization record, but rather like so:
'organization': {
'display': <ehr_vendor.name>
}
SO I think we should actually strip out the (very awesome) work that you did to display organizations and EHR vendors at /organization and simplify the logic to populate the organization attribute on OrganizationAffiliation as sown above.
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Sounds good. I removed the ehr_vendor stuff and merged main into this branch. The EHR vendor info should already be populated in the organization field as you describe. |
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
spopelka-dsac
left a comment
There was a problem hiding this comment.
This is looking really good!! Just a few tweaks
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
spopelka-dsac
left a comment
There was a problem hiding this comment.
Just a couple very minor changes and one note-to-self for later!
…affiliation-endpoint
…affiliation-endpoint
|
@IsaacMilarky Spell check FTW (although I would expect the Spellcheck action to fail or otherwise show as not passing; can you please look into that?). Can you please fix the misspelling that was found? https://github.com/CMS-Enterprise/npd/pull/270/changes#diff-ba0f542da241804f1315cde1680bcf5755df8b403860cc55a56089e20b48ed93R293 |
[NDH-278] Build out OrganizationAffiliation endpoint
Jira Ticket #NDH-278
Problem
We currently do not have an endpoint that can query OrganizationAffiliation data. This endpoint returns data that represents the affiliation relationship between clinical organizations and EHR Vendors
Additionally, we need to make it so that EHR Vendors can be queried in the Organization view.
Solution
Add a new view set for OrganizationAffiliation data that has list and retrieve endpoints. Also, create a corresponding serializer class that will create FHIR JSON for the data returned.
Additionally, make it so that EHR Vendors can be queried in the Organization viewset.
Tests also need to be created for all this.
Result
Summary:
Test Plan
make test