Skip to content

Commit

Permalink
fix: validFrom field should be in date-time format (#32)
Browse files Browse the repository at this point in the history
* fix: validfrom should be in datetime format

* fix: rewrap document using new validfrom field

* fix: code formatting
  • Loading branch information
HJunyuan authored Jul 5, 2021
1 parent 500992d commit 7a338f8
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 154 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "TEST001",
"name": "HealthCert",
"validFrom": "2020-11-20",
"validFrom": "2020-11-20T06:43:12.152Z",
"fhirVersion": "4.0.1",
"fhirBundle": {
"resourceType": "Bundle",
Expand All @@ -10,56 +10,26 @@
{
"resourceType": "Patient",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/patient-nationality",
"code": {
"text": "SG"
}
}
{ "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", "code": { "text": "SG" } }
],
"identifier": [
{
"type": "PPN",
"value": "E7831177G"
},
{
"type": {
"text": "NRIC"
},
"value": "S9098989Z"
}
],
"name": [
{
"text": "Tan Chen Chen"
}
{ "type": "PPN", "value": "E7831177G" },
{ "type": { "text": "NRIC" }, "value": "S9098989Z" }
],
"name": [{ "text": "Tan Chen Chen" }],
"gender": "female",
"birthDate": "1990-01-15"
},
{
"resourceType": "Specimen",
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "258500001",
"display": "Nasopharyngeal swab"
}
]
"coding": [{ "system": "http://snomed.info/sct", "code": "258500001", "display": "Nasopharyngeal swab" }]
},
"collection": {
"collectedDateTime": "2020-09-27T06:15:00Z"
}
"collection": { "collectedDateTime": "2020-09-27T06:15:00Z" }
},
{
"resourceType": "Observation",
"identifier": [
{
"value": "123456789",
"type": "ACSN"
}
],
"identifier": [{ "value": "123456789", "type": "ACSN" }],
"code": {
"coding": [
{
Expand All @@ -70,67 +40,30 @@
]
},
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "260385009",
"display": "Negative"
}
]
"coding": [{ "system": "http://snomed.info/sct", "code": "260385009", "display": "Negative" }]
},
"effectiveDateTime": "2020-09-28T06:15:00Z",
"status": "final",
"performer": {
"name": [
{
"text": "Dr Michael Lim"
}
]
},
"qualification": [
{
"identifier": "MCR 123214",
"issuer": "MOH"
}
]
"performer": { "name": [{ "text": "Dr Michael Lim" }] },
"qualification": [{ "identifier": "MCR 123214", "issuer": "MOH" }]
},
{
"resourceType": "Organization",
"name": "MacRitchie Medical Clinic",
"type": "Licensed Healthcare Provider",
"endpoint": {
"address": "https://www.macritchieclinic.com.sg"
},
"endpoint": { "address": "https://www.macritchieclinic.com.sg" },
"contact": {
"telecom": [
{
"system": "phone",
"value": "+6563113111"
}
],
"address": {
"type": "physical",
"use": "work",
"text": "MacRitchie Hospital Thomson Road Singapore 123000"
}
"telecom": [{ "system": "phone", "value": "+6563113111" }],
"address": { "type": "physical", "use": "work", "text": "MacRitchie Hospital Thomson Road Singapore 123000" }
}
},
{
"resourceType": "Organization",
"name": "MacRitchie Laboratory",
"type": "Accredited Laboratory",
"contact": {
"telecom": [
{
"system": "phone",
"value": "+6562711188"
}
],
"address": {
"type": "physical",
"use": "work",
"text": "2 Thomson Avenue 4 Singapore 098888"
}
"telecom": [{ "system": "phone", "value": "+6562711188" }],
"address": { "type": "physical", "use": "work", "text": "2 Thomson Avenue 4 Singapore 098888" }
}
}
]
Expand All @@ -139,16 +72,9 @@
{
"name": "GovTech",
"documentStore": "0x8Fc57204c35fb9317D91285eF52D6b892EC08cD3",
"identityProof": {
"type": "DNS-TXT",
"location": "example.openattestation.com"
}
"identityProof": { "type": "DNS-TXT", "location": "example.openattestation.com" }
}
],
"$template": {
"name": "HEALTH_CERT",
"type": "EMBEDDED_RENDERER",
"url": "https://healthcert.renderer.moh.gov.sg/"
},
"$template": { "name": "HEALTH_CERT", "type": "EMBEDDED_RENDERER", "url": "https://healthcert.renderer.moh.gov.sg/" },
"logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA9CAMAAABGHucuAAABaFBM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