Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator not picking up ACSC's for avoidable admissions #33

Closed
MattStammers opened this issue Feb 23, 2023 · 5 comments
Closed

Validator not picking up ACSC's for avoidable admissions #33

MattStammers opened this issue Feb 23, 2023 · 5 comments

Comments

@MattStammers
Copy link

I have tried overwriting all the first diagnoses with codes like cellulitis '128045006' and the validator is not picking these up flagging everything as non-ACSC on the final step.

@vvcb
Copy link
Member

vvcb commented Feb 23, 2023

@MattStammers , thank you for reporting this.

Can you please add some more details to the first post to describe how one may replicate this problem? Based on the WhatsApp messages, I understand that there may be a problem with the ACSC mapping of diag_01 variable in the admitted care dataset.

If this is correct, then this will affect most of the generated tables.

There may be a problem with how this feature is built. Would you mind having a look at the following sections of code to see what may be broken?

And definitely worth checking the Sheffield mapping spec google sheet - link can be reconstructed from the second code section above. feature_maps.py directly reads this google sheet and uses the data for the mapping.

Happy to look at a PR if there is a bug at this end.

@MattStammers
Copy link
Author

Right @georgm8 has looked at the code and found the issue

MicrosoftTeams-image

our ICD codes had a full stop in them which was not being picked up. Presently it was replacing this with a space. Either we need consensus on the format of the ICD10 codes or a regex validator to be added. I think @georgm8 is happy to do this?

@georgm8
Copy link
Contributor

georgm8 commented Feb 24, 2023

Happy to create a validator once we have consensus on how we want the ICD-10 codes to look

@vvcb
Copy link
Member

vvcb commented Feb 24, 2023

The Sheffield spec uses a period . after the first three characters if there are more than 3 characters. At LTH, we don't have a . in the raw data and found that the simplest thing to do was to remove this from the Sheffield spec google sheet.

For acute_admits dataset,

My view is that we get rid of the . to keep things simple.

Just found that we are not doing this in the ECDS dataset.

Ignore this as the ECDS mapping is SNOMED to category and should not be affected. The ECDS mapping google docs however also has ICD codes in it and worth exploring further.

@vvcb
Copy link
Member

vvcb commented Feb 25, 2023

@MattStammers , feel free to close this issue if #35 by @georgm8 addresses this.

@quindavies , we will have to run the new changes in #35 against out admitted care dataset and make sure there are no surprises.

This issue was closed.
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

No branches or pull requests

3 participants