How to Create New Schemas
Last updated
{
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"schema": "https://schema.org/",
"hp": "https://council.gov.in/credentials/healthProfessional/v1",
"ProofOfHealthProfessionalCredential": {
"@id": "schema:ProofOfHealthProfessionalCredential",
"@context": {
"@version": 1.1,
"@protected": true,
"nonTransferable": "vac:nonTransferable"
}
},
"Person": {
"@id": "schema:Person",
"@context": {
"@version": 1.1,
"@protected": true,
"registrationId": "schema:id",
"name": "schema:name",
"dob": "schema:date",
"gender": "schema:gender"
}
},
"HealthProfessional_1": {
"@id": "hp:HealthProfessional",
"@context": {
"@version": 1.1,
"@protected": true,
"certificateId": "schema:id",
"registrationCouncil": "schema:Text",
"latestQualification": "schema:Text",
"university": "schema:Text",
"registrationDate": "schema:date",
"systemOfMedicine": "schema:Text",
"registrationExpiry": "schema:date",
"degreeYear": "schema:Text"
}
} } }{
"message": {
"id": "sunbird-rc.registry.create",
"ver": "1.0",
"ets": 1674742182025,
"params": {
"resmsgid": "",
"msgid": "80813191-139c-40a8-918f-060273cbb747",
"err": "",
"status": "SUCCESSFUL",
"errmsg": ""
},
"responseCode": "OK",
"result": {
"ContextURL": {
"osid": "1-a6bd2f3b-43d4-406e-a265-917ff6d5199f"
}
}
},
"url": "http://vc-management-service:7655/vc-management/v1/context/a6bd2f3b-43d4-406e-a265-917ff6d5199f" }{
"uploadTemplateResponse": {
"documentLocations": [
"Tenant/f28d95e7-17ea-4f93-b457-195d133fbc27/templates/documents/d7390e5b-578a-4823-a7a1-7395d93361b3-vcTempHealthcareUpdated.html"
],
"errors": []
}
}{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"HealthProfessional_1": {
"$ref": "#/definitions/HealthProfessional_1"
}
},
"required": [
"HealthProfessional_1"
],
"title": "HealthProfessional_1",
"definitions": {
"HealthProfessional_1": {
"type": "object",
"title": "HP Certificate",
"required": [
"name",
"dob",
"registrationId",
"registrationCouncil",
"registrationDate",
"systemOfMedicine",
"latestQualification",
"degreeYear",
"issuer",
"issuanceDate",
"certificateId"
],
"properties": {
"registrationId": {
"type": "string"
},
"certificateId": {
"type": "string"
},
"name": {
"type": "string"
},
"dob": {
"type": "string"
},
"gender": {
"type": "string"
},
"registrationCouncil": {
"type": "string"
},
"registrationDate": {
"type": "string"
},
"registrationExpiry": {
"type": "string"
},
"systemOfMedicine": {
"type": "string"
},
"latestQualification": {
"type": "string"
},
"university": {
"type": "string"
},
"degreeYear": {
"type": "string"
},
"issuer": {
"type": "string"
},
"issuanceDate": {
"type": "string"
}
}
}
},
"_osConfig": {
"uniqueIndexFields": [],
"ownershipAttributes": [],
"roles": [],
"inviteRoles": [
"anonymous"
],
"enableLogin": false,
"credentialTemplate": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"http://vc-management-service:7655/vc-management/v1/context/6d44d41e-93f8-4d81-8fb5-0679dcae50da"
],
"type": [
"VerifiableCredential",
"ProofOfHealthProfessionalCredential"
],
"credentialSubject": {
"type": "Person",
"registrationId": "{{registrationId}}",
"name": "{{name}}",
"dob": "{{dob}}",
"gender": "{{gender}}"
},
"issuer": "{{{issuer}}}",
"issuanceDate": "{{issuanceDate}}",
"evidence": {
"type": "HealthProfessional_1",
"certificateId": "{{certificateId}}",
"registrationCouncil": "{{registrationCouncil}}",
"latestQualification": "{{latestQualification}}",
"university": "{{university}}",
"registrationDate": "{{registrationDate}}",
"systemOfMedicine": "{{systemOfMedicine}}",
"registrationExpiry": "{{registrationExpiry}}",
"degreeYear": "{{degreeYear}}"
},
"nonTransferable": "true"
},
"certificateTemplates": {
"html": "minio://Tenant/f28d95e7-17ea-4f93-b457-195d133fbc27/templates/documents/f72b3f6a-c4fe-447e-9684-692f56b81ca9-vcTempHealthcareUpdated.html ",
"svg": "https://raw.githubusercontent.com/dileepbapat/ref-sunbirdrc-certificate/main/schemas/templates/TrainingCertificate.svg"
}
}
}