Skip to content
Merged

Dev #80

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 64 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@panates/eslint-config": "^2.1.3",
"@panates/eslint-config-ts": "^2.1.3",
"@panates/tsconfig": "^2.1.3",
"@swc/core": "^1.15.24",
"@swc/core": "^1.15.26",
"@swc/helpers": "^0.5.21",
"@swc-node/register": "^1.11.1",
"@types/mocha": "^10.0.10",
Expand All @@ -43,7 +43,7 @@
"globals": "^17.5.0",
"dpdm": "^4.0.1",
"mocha": "11.7.5",
"npm-check-updates": "^20.0.2",
"npm-check-updates": "^21.0.0",
"prettier": "^3.8.2",
"putil-varhelpers": "^1.7.0",
"rimraf": "^6.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/dictionary/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hl7v2-dictionary",
"description": "HL7 v2 parser, serializer, validator for NodeJS",
"version": "1.8.2",
"version": "1.8.3",
"author": "Panates",
"license": "MIT",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/hl7v2/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hl7v2",
"description": "HL7 v2 parser, serializer, validator for NodeJS",
"version": "1.8.2",
"version": "1.8.3",
"author": "Panates",
"license": "MIT",
"private": true,
Expand All @@ -16,7 +16,7 @@
"uid": "^2.0.2"
},
"peerDependencies": {
"hl7v2-dictionary": "^1.8.2"
"hl7v2-dictionary": "^1.8.3"
},
"devDependencies": {
"expect": "^30.3.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/hl7v2/src/hl7-repetition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class HL7Repetition {
if (position < 1) throw new Error('Invalid component position');
let component = this._components[position - 1];
if (!component) {
let fDef = this.field.typeDef.fields?.[String(position - 1)];
let fDef = this.field.typeDef.fields?.[String(position)];
if (!fDef) {
if (position === 1) fDef = this.field.definition;
else
Expand Down
4 changes: 2 additions & 2 deletions packages/hl7v2/test/hl7-sub-component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describe('hl7v2:Hl7SubComponent', () => {
it('should determine is sub component is empty or not', () => {
const msg = new HL7Message();
const orc = msg.addSegment('ORC');
orc.field(12).fromHL7String('NPI&9876543210&ISO');
const subComponent = orc.field(12).subComponent(1, 1);
orc.field(13).fromHL7String('NPI&9876543210&ISO');
const subComponent = orc.field(13).subComponent(1, 1);
expect(subComponent).toBeDefined();
expect(subComponent.isEmpty()).toEqual(false);
subComponent.value = null;
Expand Down
6 changes: 3 additions & 3 deletions packages/net/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hl7v2-net",
"description": "HL7 v2 server/client for NodeJS",
"version": "1.8.2",
"version": "1.8.3",
"author": "Panates",
"license": "MIT",
"private": true,
Expand All @@ -18,8 +18,8 @@
"uid": "^2.0.2"
},
"peerDependencies": {
"hl7v2": "^1.8.2",
"hl7v2-dictionary": "^1.8.2"
"hl7v2": "^1.8.3",
"hl7v2-dictionary": "^1.8.3"
},
"devDependencies": {
"@types/reconnect-core": "^1.3.5",
Expand Down