Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compaction does not compact "vaccine" and "recipient" keys #22

Open
TimoGlastra opened this issue Jun 14, 2021 · 0 comments
Open

Compaction does not compact "vaccine" and "recipient" keys #22

TimoGlastra opened this issue Jun 14, 2021 · 0 comments

Comments

@TimoGlastra
Copy link

When compacting a JSON-LD document using this context, the credentialSubject.vaccine and credentialSubject.recipient are expanded. nextVaccinationDate is defined in a similar manner in the context, but does use the short form property name.

Is this intended?

Playground link: https://tinyurl.com/33xxeesz

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://w3id.org/security/bbs/v1",
    "https://w3id.org/vaccination/v1"
  ],
  "id": "urn:uvci:af5vshde843jf831j128fj",
  "type": [
    "VerifiableCredential",
    "VaccinationCertificate"
  ],
  "description": "COVID-19 Vaccination Certificate",
  "name": "COVID-19 Vaccination Certificate",
  "credentialSubject": {
    "type": "VaccinationEvent",
    "https://w3id.org/vaccination#VaccineEventVaccine": {
      "type": "Vaccine",
      "atcCode": "J07BX03",
      "disease": "COVID-19",
      "marketingAuthorizationHolder": "Moderna Biotech",
      "medicinalProductName": "COVID-19 Vaccine Moderna"
    },
    "administeringCentre": "MoH",
    "batchNumber": "1183738569",
    "countryOfVaccination": "NZ",
    "healthProfessional": "MoH",
    "nextVaccinationDate": "1958-07-17",
    "https://w3id.org/vaccination#recipient": {
      "type": "VaccineRecipient",
      "birthDate": "1958-07-17",
      "familyName": "SMITH",
      "gender": "Male",
      "givenName": "JOHN"
    }
  },
  "expirationDate": "2029-12-03T12:19:52Z",
  "issuanceDate": "2019-12-03T12:19:52Z",
  "issuer": "replace_me"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant