@medplum/core 4.1.7 → 4.1.8

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.
@@ -91,6 +91,23 @@ export declare const AccessPolicyInteraction: {
91
91
 
92
92
  export declare type AccessPolicyInteraction = (typeof AccessPolicyInteraction)[keyof typeof AccessPolicyInteraction];
93
93
 
94
+ export declare const AckCode: {
95
+ /** AA - Application Accept */
96
+ readonly AA: "AA";
97
+ /** AE - Application Error */
98
+ readonly AE: "AE";
99
+ /** AR - Application Reject */
100
+ readonly AR: "AR";
101
+ /** CA - Commit Accept */
102
+ readonly CA: "CA";
103
+ /** CE - Commit Error */
104
+ readonly CE: "CE";
105
+ /** CR - Commit Reject */
106
+ readonly CR: "CR";
107
+ };
108
+
109
+ export declare type AckCode = keyof typeof AckCode;
110
+
94
111
  /**
95
112
  * Adds the supplied profileUrl to the resource.meta.profile if it is not already
96
113
  * specified
@@ -1916,6 +1933,11 @@ export declare interface GoogleLoginRequest extends BaseLoginRequest {
1916
1933
  readonly createUser?: boolean;
1917
1934
  }
1918
1935
 
1936
+ export declare interface Hl7AckOptions {
1937
+ ackCode: AckCode;
1938
+ errSegment?: Hl7Segment;
1939
+ }
1940
+
1919
1941
  /**
1920
1942
  * The Hl7Context class represents the parsing context for an HL7 message.
1921
1943
  *
@@ -2068,9 +2090,10 @@ export declare class Hl7Message {
2068
2090
  toString(): string;
2069
2091
  /**
2070
2092
  * Returns an HL7 "ACK" (acknowledgement) message for this message.
2093
+ * @param options - The optional options to configure the "ACK" message.
2071
2094
  * @returns The HL7 "ACK" message.
2072
2095
  */
2073
- buildAck(): Hl7Message;
2096
+ buildAck(options?: Hl7AckOptions): Hl7Message;
2074
2097
  private buildAckMessageType;
2075
2098
  /**
2076
2099
  * Parses an HL7 message string into an Hl7Message object.
@@ -91,6 +91,23 @@ export declare const AccessPolicyInteraction: {
91
91
 
92
92
  export declare type AccessPolicyInteraction = (typeof AccessPolicyInteraction)[keyof typeof AccessPolicyInteraction];
93
93
 
94
+ export declare const AckCode: {
95
+ /** AA - Application Accept */
96
+ readonly AA: "AA";
97
+ /** AE - Application Error */
98
+ readonly AE: "AE";
99
+ /** AR - Application Reject */
100
+ readonly AR: "AR";
101
+ /** CA - Commit Accept */
102
+ readonly CA: "CA";
103
+ /** CE - Commit Error */
104
+ readonly CE: "CE";
105
+ /** CR - Commit Reject */
106
+ readonly CR: "CR";
107
+ };
108
+
109
+ export declare type AckCode = keyof typeof AckCode;
110
+
94
111
  /**
95
112
  * Adds the supplied profileUrl to the resource.meta.profile if it is not already
96
113
  * specified
@@ -1916,6 +1933,11 @@ export declare interface GoogleLoginRequest extends BaseLoginRequest {
1916
1933
  readonly createUser?: boolean;
1917
1934
  }
1918
1935
 
1936
+ export declare interface Hl7AckOptions {
1937
+ ackCode: AckCode;
1938
+ errSegment?: Hl7Segment;
1939
+ }
1940
+
1919
1941
  /**
1920
1942
  * The Hl7Context class represents the parsing context for an HL7 message.
1921
1943
  *
@@ -2068,9 +2090,10 @@ export declare class Hl7Message {
2068
2090
  toString(): string;
2069
2091
  /**
2070
2092
  * Returns an HL7 "ACK" (acknowledgement) message for this message.
2093
+ * @param options - The optional options to configure the "ACK" message.
2071
2094
  * @returns The HL7 "ACK" message.
2072
2095
  */
2073
- buildAck(): Hl7Message;
2096
+ buildAck(options?: Hl7AckOptions): Hl7Message;
2074
2097
  private buildAckMessageType;
2075
2098
  /**
2076
2099
  * Parses an HL7 message string into an Hl7Message object.