diff --git a/src/DCC.ts b/src/DCC.ts index c2cdab9e92b8445f2235540a357c199553dc921a..d7226bbeb0de64544a87b00e7f332a2f096e08e0 100644 --- a/src/DCC.ts +++ b/src/DCC.ts @@ -485,6 +485,9 @@ export class HashType extends DCCXMLElement { referralID: DCCXMLElement; procedure: DCCXMLElement; value: DCCXMLElement; + description?: RichContentType; + inValidityRange?: DCCXMLBoolean; + traceable?: DCCXMLBoolean; linkedReport?: HashType; constructor(el: Partial<HashType> = {}) { @@ -493,6 +496,9 @@ export class HashType extends DCCXMLElement { this.referralID = new DCCXMLElement(el.referralID); this.procedure = new DCCXMLElement(el.procedure); this.value = new DCCXMLElement(el.value); + if (el.description) this.description = new RichContentType(el.description); + if (el.inValidityRange) this.inValidityRange = new DCCXMLBoolean(el.inValidityRange); + if (el.traceable) this.traceable = new DCCXMLBoolean(el.traceable); if (el.linkedReport) this.linkedReport = new HashType(el.linkedReport); } }