hl7v2 1.8.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hl7-repetition.js +1 -1
- package/package.json +2 -2
package/hl7-repetition.js
CHANGED
|
@@ -35,7 +35,7 @@ export class HL7Repetition {
|
|
|
35
35
|
throw new Error('Invalid component position');
|
|
36
36
|
let component = this._components[position - 1];
|
|
37
37
|
if (!component) {
|
|
38
|
-
let fDef = this.field.typeDef.fields?.[String(position
|
|
38
|
+
let fDef = this.field.typeDef.fields?.[String(position)];
|
|
39
39
|
if (!fDef) {
|
|
40
40
|
if (position === 1)
|
|
41
41
|
fDef = this.field.definition;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hl7v2",
|
|
3
3
|
"description": "HL7 v2 parser, serializer, validator for NodeJS",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.0",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"uid": "^2.0.2"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"hl7v2-dictionary": "^1.
|
|
18
|
+
"hl7v2-dictionary": "^1.9.0"
|
|
19
19
|
},
|
|
20
20
|
"type": "module",
|
|
21
21
|
"module": "./index.js",
|