From 6c13b637981f161dd496291ca09a07278be97a88 Mon Sep 17 00:00:00 2001 From: Ryan Slobojan Date: Sat, 23 Oct 2021 17:30:33 -0400 Subject: [PATCH] Fix Oklahoma issuer URL, add Kentucky, add PEI example decoded SHC --- examples/shc-ca-pe-decoded.json | 125 ++++++++++++++++++++++++++++++++ src/issuers.js | 17 ++++- 2 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 examples/shc-ca-pe-decoded.json diff --git a/examples/shc-ca-pe-decoded.json b/examples/shc-ca-pe-decoded.json new file mode 100644 index 0000000..7856574 --- /dev/null +++ b/examples/shc-ca-pe-decoded.json @@ -0,0 +1,125 @@ +{ + "iss": "https://pvcprod.gov.pe.ca", + "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": "PE, Canada" + } + } + ], + "patient": { + "reference": "resource:0" + }, + "resourceType": "Immunization", + "lotNumber": "SOME_STRING", + "vaccineCode": { + "coding": [ + { + "code": "208", + "system": "http://hl7.org/fhir/sid/cvx" + }, + { + "code": "28581000087106", + "system": "http://snomed.info/sct" + } + ] + }, + "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:1" + }, + { + "resource": { + "status": "completed", + "performer": [ + { + "actor": { + "display": "PE, Canada" + } + } + ], + "patient": { + "reference": "resource:0" + }, + "resourceType": "Immunization", + "lotNumber": "SOME_STRING", + "vaccineCode": { + "coding": [ + { + "code": "207", + "system": "http://hl7.org/fhir/sid/cvx" + }, + { + "code": "28571000087109", + "system": "http://snomed.info/sct" + } + ] + }, + "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" + } + ], + "type": "collection" + }, + "fhirVersion": "4.0.1" + }, + "type": [ + "https://smarthealth.cards#health-card", + "https://smarthealth.cards#immunization", + "https://smarthealth.cards#covid19" + ] + }, + "nbf": 1634941882.075 +} \ No newline at end of file diff --git a/src/issuers.js b/src/issuers.js index ac0bf3f..00abbbd 100644 --- a/src/issuers.js +++ b/src/issuers.js @@ -242,7 +242,7 @@ export const issuers = [ { id: "us.ok", display: "Oklahoma, USA", - iss: "https://smarthealthcard.iisregistry.net/newmexico/issuer", + iss: "https://smarthealthcard.iisregistry.net/oklahoma/issuer", keys: [ { kid: "mdc6xSqYJBj5wAfdO75tFY96MP1sRwv8o1vRKcJvWe4", alg: "ES256", kty: "EC", crv: "P-256", use: "sig", @@ -250,6 +250,21 @@ export const issuers = [ y: "SWDMBC-y-YMiso_hSQB6bl3MvYOii-rpYtgQJISt84Y" }, ] }, + { + id: "us.ky", + display: "Kentucky, USA", + iss: "https://smarthealthcard.iisregistry.net/kentucky/issuer", + keys: [ + { kid: "xjDAI01aAqqKVfTby1HgI5mGmaNov_iNAe7YU42-GYI", + alg: "ES256", kty: "EC", crv: "P-256", use: "sig", + x: "XGD2eTGy-Ty264jBz6__6yVih4HIShgGzWdJBAeLJOU", + y: "KvM4EauttKWSVjF5unr7MUWz1QSwsEW46A4aGWsFY4I" }, + { kid: "COtZJhsWjnta-bYXwlRkWlldA95Ai7S6YGZE4MPB-tk", + alg: "ES256", kty: "EC", crv: "P-256", use: "sig", + x: "X2Erdh2dszBgm0y5RF0C6tcA2fwGdDU_ZsOeJLjjcQk", + y: "haxiYhRJifQY_qU3Dv_qqk1aBzY4IrcegLqu6rvikMQ" }, + ] + }, { id: "ca.pe", display: "Prince Edward Island",