From 2d5deb37c647e04c72bacad11f64a8fbe0143550 Mon Sep 17 00:00:00 2001 From: Jan Loewe <jan.loewe@ptb.de> Date: Tue, 14 Feb 2023 13:36:55 +0100 Subject: [PATCH] feat(hashType): add description, inValidityRange and traceable --- src/DCC.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DCC.ts b/src/DCC.ts index c2cdab9..d7226bb 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); } } -- GitLab