@rethinkhealth/hl7v2-ast 0.2.10 → 0.2.11

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.
Files changed (3) hide show
  1. package/README.md +7 -3
  2. package/index.d.ts +15 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -186,7 +186,7 @@ The AST is designed for:
186
186
 
187
187
  ## Contributing
188
188
 
189
- We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING.md) for more details.
189
+ We welcome contributions! Please see our [Contributing Guide][github-contributing] for more details.
190
190
 
191
191
  1. Fork the repository
192
192
  2. Create your feature branch (`git checkout -b feature/amazing-feature`)
@@ -196,10 +196,14 @@ We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING
196
196
 
197
197
  ## Code of Conduct
198
198
 
199
- To ensure a welcoming and positive environment, we have a [Code of Conduct](../../CODE_OF_CONDUCT.md) that all contributors and participants are expected to adhere to.
199
+ To ensure a welcoming and positive environment, we have a [Code of Conduct][github-code-of-conduct] that all contributors and participants are expected to adhere to.
200
200
 
201
201
  ## License
202
202
 
203
203
  Copyright 2025 Rethink Health, SUARL. All rights reserved.
204
204
 
205
- This program is licensed to you under the terms of the [MIT License](https://opensource.org/licenses/MIT). This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [LICENSE](../../LICENSE) file for details.
205
+ This program is licensed to you under the terms of the [MIT License](https://opensource.org/licenses/MIT). This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [LICENSE][github-license] file for details.
206
+
207
+ [github-code-of-conduct]: https://github.com/rethinkhealth/hl7v2/blob/main/CODE_OF_CONDUCT.md
208
+ [github-license]: https://github.com/rethinkhealth/hl7v2/blob/main/LICENSE
209
+ [github-contributing]: https://github.com/rethinkhealth/hl7v2/blob/main/CONTRIBUTING.md
package/index.d.ts CHANGED
@@ -5,6 +5,18 @@ import type {
5
5
  Parent as UnistParent,
6
6
  } from 'unist';
7
7
 
8
+ /**
9
+ * HL7v2 Delimiters type
10
+ */
11
+ export type Delimiters = {
12
+ field: string;
13
+ component: string;
14
+ subcomponent: string;
15
+ repetition: string;
16
+ escape: string;
17
+ segment: string;
18
+ };
19
+
8
20
  // ## Abstract nodes
9
21
 
10
22
  /**
@@ -156,7 +168,9 @@ export interface Root extends Parent {
156
168
  /**
157
169
  * Info associated with HL7v2 root nodes by the ecosystem.
158
170
  */
159
- export interface RootData extends Data {}
171
+ export interface RootData extends Data {
172
+ delimiters: Delimiters;
173
+ }
160
174
 
161
175
  /**
162
176
  * HL7v2 segment.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rethinkhealth/hl7v2-ast",
3
3
  "description": "HL7v2 is a specification for representing HL7v2 messages as an abstract syntax tree. It implements the unist spec.",
4
- "version": "0.2.10",
4
+ "version": "0.2.11",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Melek Somai",