Added Nunavut example payload, including control character as first character

* The production-pushed Nunavut QR codes appear to have a zero-width space as
  the first character before the { - this was blowing up JSON.parse in our SHC
  decoder until we trim()med the decoded payload, be sure to account for this
  case when handling these codes!
This commit is contained in:
Ryan Slobojan 2021-10-25 18:13:27 -04:00
parent a1df511754
commit 20fc47a634
1 changed files with 158 additions and 0 deletions

View File

@ -0,0 +1,158 @@
{
"iss": "https://pvc.gov.nu.ca/pvc",
"vc": {
"credentialSubject": {
"fhirBundle": {
"resourceType": "Bundle",
"entry": [
{
"resource": {
"resourceType": "Patient",
"name": [
{
"given": [
"FIRSTNAME"
],
"family": "LASTNAME"
}
],
"birthDate": "YYYY-MM-DD"
},
"fullUrl": "resource:0"
},
{
"resource": {
"status": "completed",
"performer": [
{
"actor": {
"display": "NU, Canada"
}
}
],
"patient": {
"reference": "resource:0"
},
"resourceType": "Immunization",
"lotNumber": "SOME_STRING",
"vaccineCode": {
"coding": [
{
"code": "207",
"system": "http://hl7.org/fhir/sid/cvx"
}
]
},
"meta": {
"security": [
{
"code": "IAL1.4",
"system": "https://smarthealth.cards/ial"
}
]
},
"occurrenceDateTime": "YYYY-MM-DD",
"manufacturer": {
"identifier": {
"system": "http://hl7.org/fhir/sid/mvx",
"value": "MOD"
}
}
},
"fullUrl": "resource:1"
},
{
"resource": {
"status": "completed",
"performer": [
{
"actor": {
"display": "NU, Canada"
}
}
],
"patient": {
"reference": "resource:0"
},
"resourceType": "Immunization",
"lotNumber": "SOME_STRING",
"vaccineCode": {
"coding": [
{
"code": "207",
"system": "http://hl7.org/fhir/sid/cvx"
}
]
},
"meta": {
"security": [
{
"code": "IAL1.4",
"system": "https://smarthealth.cards/ial"
}
]
},
"occurrenceDateTime": "YYYY-MM-DD",
"manufacturer": {
"identifier": {
"system": "http://hl7.org/fhir/sid/mvx",
"value": "MOD"
}
}
},
"fullUrl": "resource:2"
},
{
"resource": {
"status": "completed",
"performer": [
{
"actor": {
"display": "NU, Canada"
}
}
],
"patient": {
"reference": "resource:0"
},
"resourceType": "Immunization",
"lotNumber": "SOME_STRING",
"vaccineCode": {
"coding": [
{
"code": "208",
"system": "http://hl7.org/fhir/sid/cvx"
}
]
},
"meta": {
"security": [
{
"code": "IAL1.4",
"system": "https://smarthealth.cards/ial"
}
]
},
"occurrenceDateTime": "YYYY-MM-DD",
"manufacturer": {
"identifier": {
"system": "http://hl7.org/fhir/sid/mvx",
"value": "PFR"
}
}
},
"fullUrl": "resource:3"
}
],
"type": "collection"
},
"fhirVersion": "4.0.1"
},
"type": [
"https://smarthealth.cards#health-card",
"https://smarthealth.cards#covid19",
"https://smarthealth.cards#immunization"
]
},
"nbf": 1635194428.0
}