This commit is contained in:
Billy Lo 2021-10-25 20:46:23 -04:00
commit 399e4d09a9
5 changed files with 162 additions and 4 deletions

View File

@ -32,7 +32,7 @@ function Page(props: PageProps): JSX.Element {
<a href="https://github.com/billylo1/covidpass" className="underline">{t('common:gitHub')}</a>
<a href="https://vaccine-ontario.ca" className="underline">{t('common:returnToMainSite')}</a>
</nav>
<div className="flex pt-4 flex-row space-x-4 justify-center text-md flex-wrap">Last updated: 2021-10-25 (v2.2.4)</div>
<div className="flex pt-4 flex-row space-x-4 justify-center text-md flex-wrap">Last updated: 2021-10-25 (v2.2.5)</div>
</footer>
</main>
</div>

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
}

View File

@ -1,6 +1,6 @@
{
"name": "grassroots_covidpass",
"version": "2.2.4",
"version": "2.2.5",
"author": "Billy Lo <billy@vaccine-ontario.ca>",
"license": "MIT",
"private": false,

View File

@ -3,7 +3,7 @@ import { Integrations } from '@sentry/tracing';
export const initSentry = () => {
SentryModule.init({
release: 'grassroots_covidpass@2.2.4', // App version. Needs to be manually updated as we go unless we make the build smarter
release: 'grassroots_covidpass@2.2.5', // App version. Needs to be manually updated as we go unless we make the build smarter
dsn: 'https://7120dcf8548c4c5cb148cdde2ed6a778@o1015766.ingest.sentry.io/5981424',
integrations: [
new Integrations.BrowserTracing(),

View File

@ -60,7 +60,7 @@ function decodeJWSPayload(decodedPayload) {
try {
//console.log(decompressedResult);
scannedResult = decompressedResult.toString("utf8");
resolve(JSON.parse(scannedResult));
resolve(JSON.parse(scannedResult.trim()));
} catch (e) {
reject(e);
}