diff --git a/src/DCC.ts b/src/DCC.ts index 6269ee5f864361f4dce9cf889a26bea34fdc7d26..714fcd5c496840c0eeaf1e853f54a10b2d14b653 100644 --- a/src/DCC.ts +++ b/src/DCC.ts @@ -777,6 +777,8 @@ export class RespPersonType extends DCCXMLElement { export class StatementMetaDataType extends DCCXMLElement { _attr: IIdAndRefIdAndRefTypeAttributes; + name?: TextType; + description?: RichContentType; countryCodeISO3166_1?: DCCXMLElement[]; convention?: DCCXMLElement; traceable?: DCCXMLBoolean; @@ -805,6 +807,8 @@ export class StatementMetaDataType extends DCCXMLElement { constructor(el: Partial<StatementMetaDataType> = {}) { super(el); + if (el.name) this.name = new TextType(el.name); + if (el.description) this.description = new RichContentType(el.description); if (el.countryCodeISO3166_1) this.countryCodeISO3166_1 = ensureArray(el.countryCodeISO3166_1).map((x) => new DCCXMLElement(x)); if (el.convention) this.convention = new DCCXMLElement(el.convention); if (el.traceable) this.traceable = new DCCXMLBoolean(el.traceable);