Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions samples/cms_alaska_hospital_data/alaska_hospital_entities.csv
Original file line number Diff line number Diff line change
@@ -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.

CCN20026,Alaska Native Medical Center,4315 Diplomacy Dr,geoId/0203000,zip/99508
CCN20017,Alaska Regional Hospital,2801 Debarr Road,geoId/0203000,zip/99508
CCN20008,Bartlett Regional Hospital,3260 Hospital Dr,geoId/0236400,zip/99801
CCN21309,Bristol Bay Area Health Corporation,P O Box 130,geoId/0219720,zip/99576
CCN20024,Central Peninsula General Hospital,250 Hospital Place,geoId/0271640,zip/99669
CCN21307,Cordova Community Medical Center,Po Box 160 - 602 Chase Avenue,geoId/0217410,zip/99574
CCN20012,Fairbanks Memorial Hospital,1650 Cowles Street,geoId/0224230,zip/99701
CCN21310,Maniilaq Health Center,Po Box 43,geoId/0241830,zip/99752
CCN20006,Mat-Su Regional Medical Center,2500 South Woodworth Loop,geoId/0258660,zip/99645
CCN21308,Norton Sound Regional Hospital,1000 Greg Kruschek Avenue (P O Box 966),geoId/0254920,zip/99762
CCN21311,Peacehealth Ketchikan Medical Center,3100 Tongass Avenue,geoId/0238970,zip/99901
CCN21304,Petersburg Medical Center,Po Box 589,geoId/0260310,zip/99833
CCN20001,Providence Alaska Medical Center,3200 Providence Drive,geoId/0203000,zip/99508
CCN21306,Providence Kodiak Island Medical Ctr,1915 East Rezanof Drive,geoId/0240950,zip/99615
CCN21302,Providence Seward Hospital,"417 First Avenue, Po Box 365",geoId/0268560,zip/99664
CCN21301,Providence Valdez Medical Center,Po Box 550,geoId/0282200,zip/99686
CCN21312,Samuel Simmonds Memorial Hospital,7000 Uula St,geoId/0205200,zip/99723
CCN21305,Searhc Wrangell Medical Center-Cah,232 Wood Street,geoId/0286380,zip/99929
CCN21313,South Peninsula Hospital,4300 Bartlett St,geoId/0233140,zip/99603
CCN21314,Southeast Alaska Regional Health Consortium,222 Tongass Dr,geoId/0270540,zip/99835
CCN20018,Yukon Kuskokwim Delta Reg Hospital,Po Box 287,geoId/0206520,zip/99559
127 changes: 127 additions & 0 deletions samples/cms_alaska_hospital_data/alaska_hospitals_unplanned_visits.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
entity,date,variable,value,observationPeriod
CCN20001,2023-06-30,EDAC_30_AMI_TOTAL,432,P3Y
CCN20001,2023-06-30,EDAC_30_AMI_RETURN,92,P3Y
CCN20001,2023-06-30,EDAC_30_HF_TOTAL,401,P3Y
CCN20001,2023-06-30,EDAC_30_HF_RETURN,124,P3Y
CCN20001,2023-06-30,EDAC_30_PN_TOTAL,200,P3Y
CCN20001,2023-06-30,EDAC_30_PN_RETURN,54,P3Y
CCN20006,2023-06-30,EDAC_30_AMI_TOTAL,139,P3Y
CCN20006,2023-06-30,EDAC_30_AMI_RETURN,42,P3Y
CCN20006,2023-06-30,EDAC_30_HF_TOTAL,198,P3Y
CCN20006,2023-06-30,EDAC_30_HF_RETURN,69,P3Y
CCN20006,2023-06-30,EDAC_30_PN_TOTAL,242,P3Y
CCN20006,2023-06-30,EDAC_30_PN_RETURN,69,P3Y
CCN20008,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN20008,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN20008,2023-06-30,EDAC_30_HF_TOTAL,45,P3Y
CCN20008,2023-06-30,EDAC_30_HF_RETURN,20,P3Y
CCN20008,2023-06-30,EDAC_30_PN_TOTAL,39,P3Y
CCN20008,2023-06-30,EDAC_30_PN_RETURN,11,P3Y
CCN20012,2023-06-30,EDAC_30_AMI_TOTAL,75,P3Y
CCN20012,2023-06-30,EDAC_30_AMI_RETURN,17,P3Y
CCN20012,2023-06-30,EDAC_30_HF_TOTAL,103,P3Y
CCN20012,2023-06-30,EDAC_30_HF_RETURN,20,P3Y
CCN20012,2023-06-30,EDAC_30_PN_TOTAL,107,P3Y
CCN20012,2023-06-30,EDAC_30_PN_RETURN,26,P3Y
CCN20017,2023-06-30,EDAC_30_AMI_TOTAL,140,P3Y
CCN20017,2023-06-30,EDAC_30_AMI_RETURN,38,P3Y
CCN20017,2023-06-30,EDAC_30_HF_TOTAL,198,P3Y
CCN20017,2023-06-30,EDAC_30_HF_RETURN,71,P3Y
CCN20017,2023-06-30,EDAC_30_PN_TOTAL,186,P3Y
CCN20017,2023-06-30,EDAC_30_PN_RETURN,51,P3Y
CCN20018,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN20018,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN20018,2023-06-30,EDAC_30_HF_TOTAL,30,P3Y
CCN20018,2023-06-30,EDAC_30_HF_RETURN,4,P3Y
CCN20018,2023-06-30,EDAC_30_PN_TOTAL,61,P3Y
CCN20018,2023-06-30,EDAC_30_PN_RETURN,4,P3Y
CCN20024,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN20024,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN20024,2023-06-30,EDAC_30_HF_TOTAL,136,P3Y
CCN20024,2023-06-30,EDAC_30_HF_RETURN,60,P3Y
CCN20024,2023-06-30,EDAC_30_PN_TOTAL,125,P3Y
CCN20024,2023-06-30,EDAC_30_PN_RETURN,40,P3Y
CCN20026,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN20026,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN20026,2023-06-30,EDAC_30_HF_TOTAL,125,P3Y
CCN20026,2023-06-30,EDAC_30_HF_RETURN,35,P3Y
CCN20026,2023-06-30,EDAC_30_PN_TOTAL,145,P3Y
CCN20026,2023-06-30,EDAC_30_PN_RETURN,21,P3Y
CCN21301,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21301,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21301,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21301,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21301,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21301,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21302,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21302,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21302,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21302,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21302,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21302,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21304,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21304,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21304,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21304,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21304,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21304,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21305,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21305,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21305,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21305,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21305,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21305,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21306,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21306,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21306,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21306,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21306,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21306,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21307,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21307,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21307,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21307,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21307,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21307,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21308,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21308,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21308,2023-06-30,EDAC_30_HF_TOTAL,18,P3Y
CCN21308,2023-06-30,EDAC_30_HF_RETURN,10,P3Y
CCN21308,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21308,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21311,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21311,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21311,2023-06-30,EDAC_30_HF_TOTAL,28,P3Y
CCN21311,2023-06-30,EDAC_30_HF_RETURN,12,P3Y
CCN21311,2023-06-30,EDAC_30_PN_TOTAL,54,P3Y
CCN21311,2023-06-30,EDAC_30_PN_RETURN,15,P3Y
CCN21312,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21312,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21312,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21312,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21312,2023-06-30,EDAC_30_PN_TOTAL,23,P3Y
CCN21312,2023-06-30,EDAC_30_PN_RETURN,8,P3Y
CCN21313,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21313,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21313,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21313,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21313,2023-06-30,EDAC_30_PN_TOTAL,50,P3Y
CCN21313,2023-06-30,EDAC_30_PN_RETURN,10,P3Y
CCN21314,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21314,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21314,2023-06-30,EDAC_30_HF_TOTAL,21,P3Y
CCN21314,2023-06-30,EDAC_30_HF_RETURN,5,P3Y
CCN21314,2023-06-30,EDAC_30_PN_TOTAL,38,P3Y
CCN21314,2023-06-30,EDAC_30_PN_RETURN,7,P3Y
CCN21309,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21309,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21309,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21309,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21309,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21309,2023-06-30,EDAC_30_PN_RETURN,,P3Y
CCN21310,2023-06-30,EDAC_30_AMI_TOTAL,,P3Y
CCN21310,2023-06-30,EDAC_30_AMI_RETURN,,P3Y
CCN21310,2023-06-30,EDAC_30_HF_TOTAL,,P3Y
CCN21310,2023-06-30,EDAC_30_HF_RETURN,,P3Y
CCN21310,2023-06-30,EDAC_30_PN_TOTAL,,P3Y
CCN21310,2023-06-30,EDAC_30_PN_RETURN,,P3Y
32 changes: 32 additions & 0 deletions samples/cms_alaska_hospital_data/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"inputFiles": [
{
"pattern": "schema.mcf",
"provenance": "dcid:UnplannedHospitalVisits"
},
{
"pattern": "alaska_hospital_entities.csv",
"importType": "entities",
"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",

"zip"
],
"provenance": "dcid:UnplannedHospitalVisits"
},
{
"pattern": "alaska_hospitals_unplanned_visits.csv",
"importType": "observations",
"entityType": "Hospital",
"columnMappings": {
"dcid:observationAbout": "entity",
"dcid:variableMeasured": "variable",
"dcid:observationDate": "date",
"dcid:value": "value",
"dcid:observationPeriod": "observationPeriod"
},
"provenance": "dcid:UnplannedHospitalVisits"
}
]
}
69 changes: 69 additions & 0 deletions samples/cms_alaska_hospital_data/schema.mcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Node: dcid:AlaskaHospitals
typeOf: dcid:StatVarGroup
name: "Alaska Hospitals"
specializationOf: dcid:dc/g/Root

Node: dcid:CMS
typeOf: dcid:Source
name: "Center for Medicare and Medicaid Services"
url: "https://data.cms.gov"

Node: dcid:UnplannedHospitalVisits
typeOf: dcid:Provenance
source: dcid:CMS
name: "Unplanned Alaska hospital visits"
url: "https://data.cms.gov/provider-data/dataset/632h-zaca"

Node: dcid:EDAC_30_AMI_TOTAL
typeOf: dcid:StatisticalVariable
name: "Count of heart attack patients"
description: "Per-hospital total number of heart attack patients"
populationType: dcid:Person
measuredProperty: dcid:count
statType: dcid:measuredValue
memberOf: dcid:AlaskaHospitals

Node: dcid:EDAC_30_AMI_RETURN
typeOf: dcid:StatisticalVariable
name: "Count of heart attack patients returned"
description: "Per-hospital number of heart attack patients returned unplanned in a 30-day period"
populationType: dcid:Person
measuredProperty: dcid:count
statType: dcid:measuredValue
memberOf: dcid:AlaskaHospitals

Node: dcid:EDAC_30_HF_TOTAL
typeOf: dcid:StatisticalVariable
name: "Count of heart failure patients"
description: "Per-hospital number of heart failure patients"
populationType: dcid:Person
measuredProperty: dcid:count
statType: dcid:measuredValue
memberOf: dcid:AlaskaHospitals

Node: dcid:EDAC_30_HF_RETURN
typeOf: dcid:StatisticalVariable
name: "Count of heart failure patients returned"
description: "Per-hospital number of heart failure patients returned unplanned in a 30-day period"
populationType: dcid:Person
measuredProperty: dcid:count
statType: dcid:measuredValue
memberOf: dcid:AlaskaHospitals

Node: dcid:EDAC_30_PN_TOTAL
typeOf: dcid:StatisticalVariable
name: "Count of pneumonia patients"
description: "Per-hospital number of pneumonia patients"
populationType: dcid:Person
measuredProperty: dcid:count
statType: dcid:measuredValue
memberOf: dcid:AlaskaHospitals

Node: dcid:EDAC_30_PN_RETURN
typeOf: dcid:StatisticalVariable
name: "Count of pneumonia patients returned"
description: "Per-hospital number of pneumonia patients returned unplanned in a 30-day period"
populationType: dcid:Person
measuredProperty: dcid:count
statType: dcid:measuredValue
memberOf: dcid:AlaskaHospitals
Loading