Skip to content

Instantly share code, notes, and snippets.

View karlmdavis's full-sized avatar

Karl M. Davis karlmdavis

View GitHub Profile
@karlmdavis
karlmdavis / gist:9600c059976cecd0a6fc90567334055a
Last active March 26, 2019 18:49
Blue Button 2.0 DPR Beneficiary HICN Hash
$ curl --silent https://s3.amazonaws.com/gov-hhs-cms-bluebutton-sandbox-etl-test-data/data-synthetic/2017-11-27T00%3A00%3A00.000Z-fixed-with-negative-ids/synthetic-beneficiary-2014.rif |& head -n 2
DML_IND|BENE_ID|STATE_CODE|BENE_COUNTY_CD|BENE_ZIP_CD|BENE_BIRTH_DT|BENE_SEX_IDENT_CD|BENE_RACE_CD|BENE_ENTLMT_RSN_ORIG|BENE_ENTLMT_RSN_CURR|BENE_ESRD_IND|BENE_MDCR_STATUS_CD|BENE_PTA_TRMNTN_CD|BENE_PTB_TRMNTN_CD|BENE_CRNT_HIC_NUM|BENE_SRNM_NAME|BENE_GVN_NAME|BENE_MDL_NAME
INSERT|-20140000000001|22|999|99999|01-JUN-2014|2|1|0|0|0|10|0|0|1000067585|Doe|Jane|X
$ sudo curl --silent --insecure --cert-type pem --cert /u01/jboss/bluebutton-backend-test-data-server-client-test-keypair.pem 'https://localhost:7443/v1/fhir/Patient/-20140000000001?_format=application%2Fjson%2Bfhir' | grep 'hicn-hash' --after-context=1
"system": "https://bluebutton.cms.gov/resources/identifier/hicn-hash",
"value": "b67baee938a551f06605ecc521cc329530df4e088e5a2d84bbdcc047d70faff4"