Skip to content

Added hmo logics to coverage an draw_basis#19

Open
sxinger wants to merge 4 commits into
kumc-bmi:masterfrom
sxinger:patch-1
Open

Added hmo logics to coverage an draw_basis#19
sxinger wants to merge 4 commits into
kumc-bmi:masterfrom
sxinger:patch-1

Conversation

@sxinger

@sxinger sxinger commented Jun 7, 2019

Copy link
Copy Markdown
Contributor

and used parallel to build per_bene_mo

@dckc what do you think?

and used parallel to build per_bene_mo
Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
from CMS_DEID.mbsf_ab_summary
unpivot(
buyin
(buyin,hmo) /*add hmo column*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I normally use a space after a comma.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

space added in new commit

Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
from CMS_DEID.mbsf_ab_summary
unpivot(
buyin
(buyin,hmo) /*add hmo column*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any particular reason for the /*add hmo column*/ here? We noted that change in the commit message, right? I usually leave info about how the code changes in the version control history.

But info about how the code presently works does belong right in the code...

Maybe move the "Schroeder writes Tuesday, June 4th, 2019 6:09 PM:" stuff before this by way of explanation?

not critical.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

space added and comment removed in new commit

Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
from per_bene_456s
unpivot(
buyin
(buyin,hmo) /*add hmo column*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

again, /*add hmo column*/ seems more like change history than documentation of the current design.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

space added and comment removed in new commit

Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
BENE_HMO_CVRAGE_TOT_MONS (number of months of HMO coverage for that reference year)
*/

select * from "&&PCORNET_CDM".enrollment;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This select should probably be commented out or deleted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed the select statement in new commit

Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
from per_bene_456s
unpivot(
buyin
(buyin,hmo) /*add hmo column*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

space after comma, please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

space added and comment removed in new commit

Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
, bene_mdcr_entlmt_buyin_ind_10 as 10
, bene_mdcr_entlmt_buyin_ind_11 as 11
, bene_mdcr_entlmt_buyin_ind_12 as 12
(bene_mdcr_entlmt_buyin_ind_01,bene_hmo_ind_01) as 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

space after comma, please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

space added

Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
, mdcr_entlmt_buyin_ind_10 as 10
, mdcr_entlmt_buyin_ind_11 as 11
, mdcr_entlmt_buyin_ind_12 as 12
(mdcr_entlmt_buyin_ind_01,hmo_ind_01) as 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

space after comma, please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

space added in new commit

Comment thread etl_i2b2/sql_scripts/cms_enr_dstats.sql Outdated
'A', 'A',
'B', 'B',
'C', 'AB') coverage
case when hmo = '0' and buyin in ('1','A') then 'A'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

space after comma, please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

space added in new commit

@dckc

dckc commented Jun 7, 2019

Copy link
Copy Markdown
Contributor

Looks good over all; let's stand by to see that Mary is satisfied before merging.

If adding spaces after commas is not too much trouble, please do.

sxinger added 3 commits May 12, 2020 12:09
add space after comma and remove unnecessary comments
another round of adding space after comma and removing unnecessary comments
adding space after comma and remove a line of "select" statement

@dckc dckc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good!

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.

2 participants