Skip to content

Port entities sample to DCP#150

Open
kmoscoe wants to merge 1 commit into
datacommonsorg:mainfrom
kmoscoe:entities
Open

Port entities sample to DCP#150
kmoscoe wants to merge 1 commit into
datacommonsorg:mainfrom
kmoscoe:entities

Conversation

@kmoscoe

@kmoscoe kmoscoe commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This PR updates the CDC non-place entities sample for DCP. Currently it uses single entity (hospital). Once multi-entity is fully supported, it will be a nice example to use statvar 2 entities: hospital and illness (type).

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a new dataset for Alaska hospital unplanned visits, including entity and observation CSV files, an import configuration JSON, and an MCF schema. The review feedback suggests improving naming consistency by changing the capitalized 'City' column header in the entities CSV to lowercase 'city', and updating the corresponding reference in the configuration file.

@@ -0,0 +1,22 @@
facility_id,name,address,City,zip

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.

medium

The column header 'City' is capitalized, while all other headers ('facility_id', 'name', 'address', 'zip') are lowercase. Using lowercase 'city' ensures consistent naming conventions across all column headers.

facility_id,name,address,city,zip

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.

This is intended to indicate that this is an existing DCID. Not sure if the "dcid:" prefix should be specified as well.

"rowEntityType": "Hospital",
"idColumn": "facility_id",
"entityColumns": [
"City",

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.

medium

Update the entity column reference to 'city' to match the lowercase column header in 'alaska_hospital_entities.csv'.

Suggested change
"City",
"city",

@kmoscoe kmoscoe requested a review from gmechali June 29, 2026 22:50
@gmechali

Copy link
Copy Markdown
Contributor

This might need to only be submitted after we cut a new version i think? Otherwise if someone copies this sample but tries to run the v1.0.0 it wouldnt work

@kmoscoe

kmoscoe commented Jun 30, 2026 via email

Copy link
Copy Markdown
Contributor Author

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