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

333 c02 link delayed discharges episodes #639

Merged
merged 50 commits into from
Jun 2, 2023

Conversation

lizihao-anu
Copy link
Contributor

Linked to issue #333. The skeleton is ready for review. There are some small issues left that need help, such as the columns kept for delayed discharged files. See the comments for more information.

@lizihao-anu lizihao-anu requested a review from Moohan April 26, 2023 15:57
@github-actions

This comment has been minimized.

R/add_dd.R Outdated Show resolved Hide resolved
Copy link
Member

@Moohan Moohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Some comments around how delays are being classified.

I think the main issue is that your join won't catch cases when

  1. CIJ has a missing end date (i.e. ongoing MH record).
  2. Delay record has a missing (i.e. ongoing delay).
  3. Sometimes won't match when the delay has an amended end date. e.g. When the CIJ ends during the month but the delay has an end date of the end of the month.

R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
lizihao-anu and others added 3 commits April 26, 2023 17:54
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

R/add_dd.R Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

lizihao-anu and others added 2 commits May 2, 2023 17:46
by keeping the records that are closest to the cij record
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
Co-authored-by: Jennit07 <[email protected]>
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@Jennit07 Jennit07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I ran the code with the existing run_episode_file and it works well. I will approve and await @Moohan feedback before merging! Thanks

Copy link
Member

@Moohan Moohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick pass correcting some lint issues

R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
R/add_dd.R Outdated Show resolved Hide resolved
Also add a TODO to make this change earlier
@Moohan Moohan self-requested a review June 2, 2023 08:23
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

@check-spelling-bot Report

🔴 Please review

See the 📂 files view or the 📜action log for details.

Unrecognized words (3)

hhg
nrs
sparra

To accept ✔️ these unrecognized words as correct and remove the previously acknowledged and now absent words, run the following commands

... in a clone of the [email protected]:Public-Health-Scotland/source-linkage-files.git repository
on the 333-c02-link-delayed-discharges-episodes branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/Public-Health-Scotland/source-linkage-files/actions/runs/5155205432/attempts/1'

To have the bot do this for you, reply quoting the following line:
@check-spelling-bot apply updates.

Available 📚 dictionaries could cover words not in the 📘 dictionary

This includes both expected items (206) from .github/actions/spelling/expect.txt and unrecognized words (3)

Dictionary Entries Covers
cspell:swift/src/swift.txt 205 2
cspell:cpp/src/cpp.txt 30216 2
cspell:sql/src/tsql.txt 455 1
cspell:python/src/python/python.txt 453 1
cspell:python/src/python/python-lib.txt 3873 1
cspell:python/src/common/extra.txt 741 1
cspell:npm/npm.txt 288 1
cspell:latex/latex.txt 424 1
cspell:java/java.txt 7642 1
cspell:html/html.txt 1863 1

Consider adding them using (in .github/workflows/spelling.yml):

      with:
        extra_dictionaries:
          cspell:swift/src/swift.txt
          cspell:cpp/src/cpp.txt
          cspell:sql/src/tsql.txt
          cspell:python/src/python/python.txt
          cspell:python/src/python/python-lib.txt
          cspell:python/src/common/extra.txt
          cspell:npm/npm.txt
          cspell:latex/latex.txt
          cspell:java/java.txt
          cspell:html/html.txt

To stop checking additional dictionaries, add:

      with:
        check_extra_dictionaries: ''
If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Copy link
Member

@Moohan Moohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this, I suspect we'll find some issues in later testing but good to go now!

@Jennit07 I'm, approving but have made a few changes just now so I'll leave to you to re-review, approve and merge!

@Moohan Moohan requested a review from Jennit07 June 2, 2023 11:59
@Jennit07
Copy link
Collaborator

Jennit07 commented Jun 2, 2023

I'm happy with this, I suspect we'll find some issues in later testing but good to go now!

@Jennit07 I'm, approving but have made a few changes just now so I'll leave to you to re-review, approve and merge!

Had a look through the new commits and everything looks good. Will approve/merge!

@Jennit07 Jennit07 merged commit c47672c into main-R Jun 2, 2023
@Jennit07 Jennit07 deleted the 333-c02-link-delayed-discharges-episodes branch June 2, 2023 12:32
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