### OpenCerta Certificate Example Schema using PCF's spec (Spec)

#### VC Overhead

Context |
IssuanceDate |
Type |

#### FHIR Overhead

Type |
Context |
Status |
NotGiven |
VaxCode |
VaxCodeText |

#### Patient

FirstName |
LastName |
Gender |

#### Location

City |
State |
Country |

#### Immunization

Date |
Manuf |
Product |
Lot# |
Expiration |
PrimarySource |

#### Practitioner

FirstName |
LastName |
Prefix |

#### Credentials

Private Key (openssl ecparam -name secp256k1 -genkey -out private.key)
-----BEGIN EC PARAMETERS----- BgUrgQQACg== -----END EC PARAMETERS----- -----BEGIN EC PRIVATE KEY----- MHQCAQEEIPWKbSezZMY1gCpvN42yaVv76Lo47FvSsVZpQl0a5lWRoAcGBSuBBAAK oUQDQgAE6DeIun4EgMBLUmbtjQw7DilMJ82YIvOR2jz/IK0R/F7/zXY1z+gqvFXf DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== -----END EC PRIVATE KEY-----
DNS TXT Record of the Public Key (openssl ec -in private.key -pubout -out public.key)
keys.pathcheck.org
QR Code Format

    cred:type:version:Signature:PubKey:Payload

#### PCF's Format

#### Original OpenCerta Format

    {
        "@context": "https://www.w3.org/2018/credentials/v1",
        "type": ["VerifiableCredential", "Immunization"],
        "issuanceDate": "2020-07-10T19:23:24Z",
        "credentialSubject": {
            "type": "fhir:Immunization",
            "@context": "https://opencerta.org/certificate/v1",
            "role": "fhir:treeRoot",
            "Immunization.status": {
                "value": "completed"
            },
            "Immunization.notGiven": {
                "boolean": false
            },
            "Immunization.vaccineCode": {
                "CodeableConcept.coding": [{
                    "index": 0,
                    "Coding.display": {
                        "value": "AZD1222"
                    }
                    }],
                "CodeableConcept.text": {
                    "value": "SARS-CoV-2"
                }
            },
            "Immunization.patient": {
                "Patient.name": [{
                    "index": 0,
                    "HumanName.family": {
                        "value": "Donald"
                    },
                    "HumanName.given": [{
                        "index": 0,
                        "value": "Daisy"
                    }]
                    }],
                "Patient.gender": {
                    "value": "female"
                }
            },
            "Immunization.date": {
                "date": "2020-07-10"
            },
            "Immunization.primarySource": {
                "boolean": true
            },
            "Immunization.manufacturer": {
                "Organization.name": {
                    "value": "AstraZeneca; The University of Oxford; IQVIA"
                }
            },
            "Immunization.lotNumber": {
                "value": "AAJN11K"
            },
            "Immunization.expirationDate": {
                "date": "2021-07-09"
            },
            "Immunization.location": {
                "Location.address": {
                    "Address.city": {
                        "value": "Houston"
                    },
                    "Address.state": {
                        "value": "TX"
                    },
                    "Address.country": {
                        "value": "US"
                    }
                }
            },
            "Immunization.practitioner": [{
                "index": 0,
                "Practitioner.name": [{
                    "index": 0,
                    "HumanName.family": {
                        "value": "Careful"
                    },
                    "HumanName.given": [{
                        "index": 0,
                        "value": "Adam"
                    }],
                    "HumanName.prefix": [{
                        "index": 0,
                        "value": "Dr"
                    }]
                    }]
                    }]
        },
        "proof": {...
        }
    }

Verify a QR Code