Skip to content
Snippets Groups Projects
Verified Commit 69961047 authored by Jan Loewe's avatar Jan Loewe :speech_balloon:
Browse files

fix(calibration laboratory): fix placement of calibrationLaboratoryCode

parent 92810a8a
Branches
Tags
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -14,17 +14,17 @@
"install": "npm run build"
},
"dependencies": {
"ts-node": "^8.5.4",
"typescript": "^3.7.3",
"ts-node": "^8.10.2",
"typescript": "^3.9.6",
"xml-js": "^1.6.11",
"@testdeck/mocha": "^0.0.10",
"@types/chai": "^4.2.7",
"@testdeck/mocha": "^0.1.0",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"chai": "^4.2.0",
"mocha": "^7.1.1",
"nyc": "^15.0.1",
"mocha": "^8.0.1",
"nyc": "^15.1.0",
"prettier": "^2.0.5",
"tslint": "^6.1.1",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0"
}
}
......@@ -3,15 +3,15 @@ import { XMLElement } from "../XMLElement";
import { ensureArray } from "../Util";
export class CalibrationLaboratoryType extends XMLElement {
contact: ContactType[];
calibrationLaboratoryCode?: XMLElement;
contact: ContactType[];
constructor(options: Partial<CalibrationLaboratoryType> = {}) {
super(options);
this.contact = ensureArray(options.contact).map(x => new ContactType(x));
if (options.calibrationLaboratoryCode)
this.calibrationLaboratoryCode = new XMLElement(options.calibrationLaboratoryCode);
this.contact = ensureArray(options.contact).map(x => new ContactType(x));
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment