I am trying to convert this json code to a python dataframe. I've been using a json converter to convert this to csv. It appears that the columns values are before the colon. Should I just wrap a list of the column names? My end goal is to optimize the importing data process flow. This is a sample json data. I keep reading answers of people converting this. No need for the full column. Just need help on getting started.
data = {
"address": [
{
"state": "22"
}
],
"birthDate": "1952-11-17",
"extension": [
{
"url": "https://bluebutton.cms.gov/resources/variables/race",
"valueCoding": {
"code": "1",
"display": "White",
"system": "https://bluebutton.cms.gov/resources/variables/race"
}
},
{
"url": "https://bluebutton.cms.gov/resources/variables/rfrnc_yr",
"valueDate": "2021"
}
],
"gender": "male",
"id": "-10000000000066",
"identifier": [
{
"system": "https://bluebutton.cms.gov/resources/variables/bene_id",
"value": "-10000000000066"
},
{
"system": "https://bluebutton.cms.gov/resources/identifier/mbi-hash",
"value": "0e239e4895a76a2aff678507b1626a7cd08d23db07280e7efa228c8b0c156d23"
},
{
"extension": [
{
"url": "https://bluebutton.cms.gov/resources/codesystem/identifier-currency",
"valueCoding": {
"code": "current",
"display": "Current",
"system": "https://bluebutton.cms.gov/resources/codesystem/identifier-currency"
}
}
],
"system": "http://hl7.org/fhir/sid/us-mbi",
"value": "1S00E00AA66"
}
],
"meta": {
"lastUpdated": "2021-08-17T13:43:00.037-04:00"
},
"name": [
{
"family": "Schneider199",
"given": [
"Werner409"
],
"use": "usual"
}
],
"resourceType": "Patient"
}