{ "fullUrl":"urn:uuid:{{ID}}", "resource":{ "resourceType": "Patient", "meta": { "profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" ] }, "id":"{{ID}}", "identifier": [ {{#each (toArray patientRole.id)}} {{>DataType/Identifier.hbs id=this}}, {{/each}} ], "name": [ {{#each (toArray patientRole.patient.name)}} {{>DataType/HumanName.hbs name=this}}, {{/each}} ], "birthDate":"{{addHyphensDate patientRole.patient.birthTime.value}}", "gender":"{{toLower patientRole.patient.administrativeGenderCode.displayName}}", "extension" : [ {{>Extensions/Race.hbs patient=patientRole.patient}}, {{>Extensions/Ethnicity.hbs patient=patientRole.patient}}, ], "address": [ {{#each (toArray patientRole.addr)}} {{>DataType/Address.hbs addr=this}}, {{/each}} ], "telecom": [ {{#each (toArray patientRole.telecom)}} {{>DataType/ContactPoint.hbs contactPoint=this}}, {{/each}} ], "communication": [ {{#each (toArray patientRole.patient.languageCommunication)}} { "language": { "coding": [ { "system":"urn:ietf:bcp:47", "code":"{{this.languageCode.code}}", "display":{{>ValueSet/Language.hbs code=this.languageCode.code}}, }, ], }, "preferred":{{this.preferenceInd.value}}, }, {{/each}} ], }, "request":{ "method":"PUT", "url":"Patient/{{ID}}", }, },