You are on page 1of 3

{

"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"Hospital": {
"$ref": "#/definitions/Hospital"
}
},
"required": [
"Hospital"
],
"title": "Hospital",
"definitions": {
"Hospital": {
"$id": "#/properties/Hospital",
"type": "object",
"title": "The Hospital Schema",
"required": [],
"properties": {
"hospitalName": {
"$id": "#/properties/hospitalName",
"type": "string",
"title": "Hospital Name"
},
"address": {
"$ref": "Common.json/#/definitions/Address",
"title": "Address"
},
"establishmentYear": {
"$id": "#/properties/establishmentYear",
"type": "string",
"title": "Year of establishment of hospital"
},
"gstnId": {
"$id": "#/properties/gstnId",
"type": "string",
"title": "GSTN ID"
},
"contactNumber": {
"$id": "#/properties/contactNumber",
"type": "string",
"title": "Landline / Mobile"
},
"email": {
"$id": "#/properties/email",
"type": "string",
"format": "email",
"title": "Email"
},
"website": {
"$id": "#/properties/website",
"type": "string",
"format": "uri",
"title": "Website"
},
"numberOfBeds": {
"$id": "#/properties/numberOfBeds",
"type": "string",
"title": "Total number of beds in the hospital"
}
}
}
},
"_osConfig": {
"osComment": [
"This section contains the OpenSABER specific configuration information",
"privateFields: Optional; list of field names to be encrypted and stored in
database",
"signedFields: Optional; list of field names that must be pre-signed",
"indexFields: Optional; list of field names used for creating index. Enclose
within braces to indicate it is a composite index. In this definition, (serialNum,
schoolCode) is a composite index and schoolName is a single column index.",
"uniqueIndexFields: Optional; list of field names used for creating unique
index. Field names must be different from index field name",
"systemFields: Optional; list of fields names used for system standard
information like created, updated timestamps and userid"
],
"privateFields": [
"$.hospitalName",
"$.address",
"$.gstnId",
"$.contactNumber",
"$.email",
"$.numberOfBeds"
],
"signedFields": [],
"indexFields": [],
"uniqueIndexFields": [],
"systemFields": [
"osCreatedAt",
"osUpdatedAt",
"osCreatedBy",
"osUpdatedBy",
"osAttestedData",
"osClaimId",
"osState"
],
"attestationPolicies": [
{
"name": "numberOfBeds",
"additionalInput": {
"gstnId": {
"type": "string"
}
},
"attestationProperties": {
"name": "$.hospitalName",
"beds": "$.numberOfBeds"
},
"paths": [
"numberOfBeds"
],
"attestorEntity": "regulatoryBoard",
"conditions":
"(ATTESTOR#$.numberOfBeds#.contains(REQUESTER#$.numberOfBeds#))",
"attestorPlugin": "did:internal:ClaimPluginActor?entity=regulatoryBoard",
"credentialTemplate": {
"@context": [
"https://www.w3.org/2018/credentials/v1",

"https://gist.githubusercontent.com/dileepbapat/eb932596a70f75016411cc871113a789/
raw/498e5af1d94784f114b32c1ab827f951a8a24def/skill"
],
"type": [
"VerifiableCredential"
],
"issuanceDate": "2021-08-27T10:57:57.237Z",
"credentialSubject": {
"type": "Hospital-Name",
"name": "{{name}}",
"Number-of-Beds": "{{numberofbeds}}"
},
"issuer": "did:web:sunbirdrc.dev/vc/skill"
}
}
],
"internalFields": [],
"inviteRoles": [
"anonymous"
],
"credentialTemplate": {
"@context": [
"https://www.w3.org/2018/credentials/v1",

"https://gist.githubusercontent.com/dileepbapat/eb932596a70f75016411cc871113a789/
raw/498e5af1d94784f114b32c1ab827f951a8a24def/skill"
],
"type": [
"VerifiableCredential"
],
"issuanceDate": "2021-08-27T10:57:57.237Z",
"credentialSubject": {
"type": "Person",
"name": "{{name}}",
"NumberOfBeds": "{{NumOfBeds}}"
},
"issuer": "did:web:sunbirdrc.dev/vc/skill"
},
"enableLogin": false,
"ownershipAttributes": [
{
"email": "/ContactDetails/email",
"mobile": "/ContactDetails/mobile",
"userId": "/ContactDetails/mobile"
}
]
}
}

You might also like