Skip to content

Conversation

@dmendelowitz
Copy link
Contributor

Summary

Category code is no longer fixed for Primary and Secondary Cancers. New profiles https://build.fhir.org/ig/HL7/fhir-mCODE-ig/branches/master/StructureDefinition-mcode-primary-cancer-condition.html

New behavior

Previously, cancer conditions had 2 category codings, one being a fixed snomed code. In STU2 the fixed code is no longer there and now there is just the US core condition code

Code changes

  • Removed the fixed snomed code from categoryArrayTemplate() in ConditionTemplate.js
  • Updated relevant tests and test fixtures

Testing guidance

  • Make sure all tests still pass
  • When running extraction with the condition extractor, cancer conditions should now only have 1 coding in the category array, a US core condition code

@Dtphelan1
Copy link
Contributor

Dtphelan1 commented Aug 20, 2021

One super small DP1 – on

...categoryArrayTemplate(category, code),
, we should probably remove the second, now-unnecessary argument to the categoryArrayTemplate fn.

@dmendelowitz
Copy link
Contributor Author

I'll make the fix for DP1 soon, but another thing I noticed is that the isConditionCodeCancer() function in conditionUtils.js is now not used anywhere in the MEF. Should I remove that? Is that used in any other repos? Maybe it's just good to keep around for possible future use?

@Dtphelan1
Copy link
Contributor

DP2 - There are a few places in the condition.test.js file that also need a bit of updating. I'll outline them in individual suggestions, but group them all under this tag since they're related to the removal of the cancer-condition test case.

After that I think I'm ready to approve. This overall looks great to me 😄

@Dtphelan1
Copy link
Contributor

I'll make the fix for DP1 soon, but another thing I noticed is that the isConditionCodeCancer() function in conditionUtils.js is now not used anywhere in the MEF. Should I remove that? Is that used in any other repos? Maybe it's just good to keep around for possible future use?

I think for now let's keep that fn around, since I anticipate we may need it at a later date. Not the best practice to keep stale code around, but the idea of knowing if something is or is not a cancer is valuable enough in mCODE-land to warrant keeping it around 😄

@Dtphelan1 Dtphelan1 self-assigned this Aug 20, 2021
@Dtphelan1
Copy link
Contributor

Looks good to me!

@Dtphelan1 Dtphelan1 merged commit cceb873 into develop Aug 20, 2021
@Dtphelan1 Dtphelan1 deleted the condition-template-stu2 branch August 20, 2021 15:37
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.

3 participants