diff --git a/src/DCC.ts b/src/DCC.ts index 767ca96362634677997544e33ddbdf5580c71bcb..1449c94b67db6d7a1e04c5e4892ae6c384fe0586 100644 --- a/src/DCC.ts +++ b/src/DCC.ts @@ -783,7 +783,12 @@ export class StatementMetaDataType extends DCCXMLElement { norm?: DCCXMLElement[]; reference?: DCCXMLElement[]; declaration?: RichContentType; + + // region choice valid?: DCCXMLBoolean; + validXMLList?: DCCXMLList; + // endregion choice + date?: DCCXMLDate; period?: DCCXMLElement; respAuthority?: ContactType; @@ -806,7 +811,11 @@ export class StatementMetaDataType extends DCCXMLElement { if (el.norm) this.norm = ensureArray(el.norm).map((x) => new DCCXMLElement(x)); if (el.reference) this.reference = ensureArray(el.reference).map((x) => new DCCXMLElement(x)); if (el.declaration) this.declaration = new RichContentType(el.declaration); + + // choice if (el.valid) this.valid = new DCCXMLBoolean(el.valid); + else if (el.validXMLList) this.validXMLList = new DCCXMLList(this.validXMLList); + if (el.date) this.date = new DCCXMLDate(el.date); if (el.period) this.period = new DCCXMLElement(el.period); if (el.respAuthority) this.respAuthority = new ContactType(el.respAuthority);