mirror of
https://github.com/covidpass-org/covidpass.git
synced 2025-02-23 15:07:44 +01:00
* Standardized handling of SHC data to generate receipt objects * Added examples of decoded SHC data for ease of reference and for knowledge-sharing * Refactored decoder to make logic more standardized for cross-region decoding, and eliminated most special-case handling * Added rejection of non-verified SHC issuers for card generation * Added rejection of non-COVID SHC cards for card generation
97 lines
3.9 KiB
JSON
97 lines
3.9 KiB
JSON
{
|
|
"iss": "https://smarthealthcard.phsa.ca/v1/issuer",
|
|
"nbf": 1630861482,
|
|
"vc": {
|
|
"type": [
|
|
"https://smarthealth.cards#covid19",
|
|
"https://smarthealth.cards#immunization",
|
|
"https://smarthealth.cards#health-card"
|
|
],
|
|
"credentialSubject": {
|
|
"fhirVersion": "4.0.1",
|
|
"fhirBundle": {
|
|
"resourceType": "Bundle",
|
|
"type": "collection",
|
|
"entry": [
|
|
{
|
|
"fullUrl": "resource:0",
|
|
"resource": {
|
|
"resourceType": "Patient",
|
|
"name": [
|
|
{
|
|
"family": "LASTNAME",
|
|
"given": [
|
|
"FIRSTNAME"
|
|
]
|
|
}
|
|
],
|
|
"birthDate": "YYYY-MM-DD"
|
|
}
|
|
},
|
|
{
|
|
"fullUrl": "resource:1",
|
|
"resource": {
|
|
"resourceType": "Immunization",
|
|
"status": "completed",
|
|
"vaccineCode": {
|
|
"coding": [
|
|
{
|
|
"system": "http://hl7.org/fhir/sid/cvx",
|
|
"code": "208"
|
|
},
|
|
{
|
|
"system": "http://snomed.info/sct",
|
|
"code": "28581000087106"
|
|
}
|
|
]
|
|
},
|
|
"patient": {
|
|
"reference": "resource:0"
|
|
},
|
|
"occurrenceDateTime": "YYYY-MM-DD",
|
|
"lotNumber": "SOME_STRING",
|
|
"performer": [
|
|
{
|
|
"actor": {
|
|
"display": "Pretty Location Display Name"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"fullUrl": "resource:2",
|
|
"resource": {
|
|
"resourceType": "Immunization",
|
|
"status": "completed",
|
|
"vaccineCode": {
|
|
"coding": [
|
|
{
|
|
"system": "http://hl7.org/fhir/sid/cvx",
|
|
"code": "208"
|
|
},
|
|
{
|
|
"system": "http://snomed.info/sct",
|
|
"code": "28581000087106"
|
|
}
|
|
]
|
|
},
|
|
"patient": {
|
|
"reference": "resource:0"
|
|
},
|
|
"occurrenceDateTime": "YYYY-MM-DD",
|
|
"lotNumber": "SOME_STRING",
|
|
"performer": [
|
|
{
|
|
"actor": {
|
|
"display": "Pretty Location Display Name"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |