-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathvaccination-context.js
100 lines (99 loc) · 2.87 KB
/
vaccination-context.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
const vaccinationContext = {
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"schema": "https://schema.org/",
"vac": "https://cowin.gov.in/credentials/vaccination/v1",
"ProofOfVaccinationCredential":{
"@id": "schema:ProofOfVaccinationCredential",
"@context": {
"@version": 1.1,
"@protected": true,
"nonTransferable": "vac:nonTransferable"
}
},
"Person": {
"@id": "schema:Person",
"@context": {
"@version": 1.1,
"@protected": true,
"refId": "schema:id",
"uhid": "schema:id",
"name": "schema:name",
"age": "schema:Number",
"gender": "schema:gender",
"nationality": "schema:nationality",
"address": {
"@id": "schema:PostalAddress",
"@context": {
"@version": 1.1,
"@protected": true,
"streetAddress": "schema:streetAddress",
"streetAddress2": "vac:addressLine2",
"city": "vac:city",
"district": "vac:district",
"addressRegion": "schema:addressRegion",
"postalCode": "schema:postalCode",
"addressCountry": "schema:addressCountry"
}
}
}
},
"Vaccination": {
"@id": "vac:Vaccination",
"@context": {
"@version": 1.1,
"@protected": true,
"certificateId": "schema:id",
"feedbackUrl": "schema:url",
"infoUrl": "schema:url",
"batch": "schema:id",
"vaccine": "schema:id",
"manufacturer": "schema:id",
"date": "schema:date",
"effectiveStart": "schema:date",
"effectiveUntil": "schema:date",
"dose": "schema:doseValue",
"totalDoses": "schema:doseValue",
"verifier": {
"@id": "vac:verifier",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "schema:id",
"name": "schema:name",
"sign-image": "schema:image"
}
},
"facility": {
"@id": "vac:Facility",
"@context": {
"@version": 1.1,
"@protected": true,
"name": "schema:name",
"address": {
"@id": "schema:PostalAddress",
"@context": {
"@version": 1.1,
"@protected": true,
"streetAddress": "schema:streetAddress",
"streetAddress2": "vac:addressLine2",
"city": "vac:city",
"district": "vac:district",
"addressRegion": "schema:addressRegion",
"postalCode": "schema:postalCode",
"addressCountry": "schema:addressCountry"
}
},
"seal-image": "schema:image"
}
}
}
}
}
};
module.exports = {
vaccinationContext
};