Skip to content
Snippets Groups Projects
Commit 856b4d84 authored by Moritz Jordan's avatar Moritz Jordan
Browse files

feat: email not mandatory, issueDate, charsXMLList

parent 43b63193
No related branches found
No related tags found
1 merge request!4Update to DCC Schema V3.2
...@@ -160,6 +160,7 @@ export class CoreDataType extends DCCXMLElement { ...@@ -160,6 +160,7 @@ export class CoreDataType extends DCCXMLElement {
beginPerformanceDate: DCCXMLDate; beginPerformanceDate: DCCXMLDate;
endPerformanceDate: DCCXMLDate; endPerformanceDate: DCCXMLDate;
performanceLocation: PerformanceLocationType; performanceLocation: PerformanceLocationType;
issueDate: DCCXMLDate;
previousReport?: HashType; previousReport?: HashType;
constructor(el: Partial<CoreDataType> = {}) { constructor(el: Partial<CoreDataType> = {}) {
...@@ -173,6 +174,7 @@ export class CoreDataType extends DCCXMLElement { ...@@ -173,6 +174,7 @@ export class CoreDataType extends DCCXMLElement {
this.beginPerformanceDate = new DCCXMLDate(el.beginPerformanceDate); this.beginPerformanceDate = new DCCXMLDate(el.beginPerformanceDate);
this.endPerformanceDate = new DCCXMLDate(el.endPerformanceDate); this.endPerformanceDate = new DCCXMLDate(el.endPerformanceDate);
this.performanceLocation = new PerformanceLocationType(el.performanceLocation); this.performanceLocation = new PerformanceLocationType(el.performanceLocation);
if (el.issueDate) this.issueDate = new DCCXMLDate(el.issueDate);
if (el.previousReport) this.previousReport = new HashType(el.previousReport); if (el.previousReport) this.previousReport = new HashType(el.previousReport);
} }
} }
...@@ -232,7 +234,7 @@ export class ContactType extends DCCXMLElement { ...@@ -232,7 +234,7 @@ export class ContactType extends DCCXMLElement {
_attr: IIdAttributes; _attr: IIdAttributes;
name: TextType; name: TextType;
eMail: DCCXMLElement; eMail?: DCCXMLElement;
phone?: DCCXMLElement; phone?: DCCXMLElement;
fax?: DCCXMLElement; fax?: DCCXMLElement;
location: LocationType; location: LocationType;
...@@ -241,7 +243,7 @@ export class ContactType extends DCCXMLElement { ...@@ -241,7 +243,7 @@ export class ContactType extends DCCXMLElement {
constructor(el: Partial<ContactType> = {}) { constructor(el: Partial<ContactType> = {}) {
super(el); super(el);
this.name = new TextType(el.name); this.name = new TextType(el.name);
this.eMail = new DCCXMLElement(el.eMail); if (el.eMail) this.eMail = new DCCXMLElement(el.eMail);
if (el.phone) this.phone = new DCCXMLElement(el.phone); if (el.phone) this.phone = new DCCXMLElement(el.phone);
if (el.fax) this.fax = new DCCXMLElement(el.fax); if (el.fax) this.fax = new DCCXMLElement(el.fax);
this.location = new LocationType(el.location); this.location = new LocationType(el.location);
...@@ -949,6 +951,7 @@ export class QuantityType extends DCCXMLElement { ...@@ -949,6 +951,7 @@ export class QuantityType extends DCCXMLElement {
// region choice // region choice
noQuantity?: RichContentType; noQuantity?: RichContentType;
charsXMLList?: DCCXMLList;
/** Metadata element definition for a real measurement quantity. /** Metadata element definition for a real measurement quantity.
* *
* The following statements of a real quantity are possible. * The following statements of a real quantity are possible.
...@@ -1105,6 +1108,7 @@ export class QuantityType extends DCCXMLElement { ...@@ -1105,6 +1108,7 @@ export class QuantityType extends DCCXMLElement {
// choice // choice
if (el.noQuantity) this.noQuantity = new RichContentType(el.noQuantity); if (el.noQuantity) this.noQuantity = new RichContentType(el.noQuantity);
else if (el.charsXMLList) this.charsXMLList = new DCCXMLList(el.charsXMLList);
else if (el.real) this.real = new si.RealQuantityType(el.real); else if (el.real) this.real = new si.RealQuantityType(el.real);
else if (el.list) this.list = new si.SIListType(el.list); else if (el.list) this.list = new si.SIListType(el.list);
else if (el.hybrid) this.hybrid = new si.HybridType(el.hybrid); else if (el.hybrid) this.hybrid = new si.HybridType(el.hybrid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment