@medplum/core 4.1.12 → 4.1.16

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.
@@ -816,6 +816,21 @@ export declare const DEFAULT_MAX_SEARCH_COUNT = 1000;
816
816
 
817
817
  export declare const DEFAULT_SEARCH_COUNT = 20;
818
818
 
819
+ /**
820
+ * Derives an "identifier" search parameter from a reference search parameter.
821
+ *
822
+ * FHIR references can have an "identifier" property.
823
+ *
824
+ * Any FHIR reference search parameter can be used to search for resources with an identifier.
825
+ *
826
+ * However, the FHIR specification does not define an "identifier" search parameter for every resource type.
827
+ *
828
+ * This function derives an "identifier" search parameter from a reference search parameter.
829
+ * @param inputParam - The original reference search parameter.
830
+ * @returns The derived "identifier" search parameter.
831
+ */
832
+ export declare function deriveIdentifierSearchParameter(inputParam: SearchParameter): SearchParameter;
833
+
819
834
  export declare class DotAtom extends InfixOperatorAtom {
820
835
  constructor(left: Atom, right: Atom);
821
836
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
@@ -1781,6 +1796,8 @@ export declare function getIdentifier(resource: Resource, system: string): strin
1781
1796
  */
1782
1797
  export declare function getImageSrc(resource: Resource): string | undefined;
1783
1798
 
1799
+ export declare function getInnerDerivedIdentifierExpression(expression: string): string | undefined;
1800
+
1784
1801
  export declare function getNestedProperty(value: TypedValueWithPath | undefined, key: string, options: {
1785
1802
  profileUrl?: string;
1786
1803
  withPath: true;
@@ -1791,6 +1808,8 @@ export declare function getNestedProperty(value: TypedValue | undefined, key: st
1791
1808
  withPath?: false;
1792
1809
  }): (TypedValue | TypedValue[] | undefined)[];
1793
1810
 
1811
+ export declare function getParsedDerivedIdentifierExpression(originalExpression: string, atom: FhirPathAtom): FhirPathAtom;
1812
+
1794
1813
  export declare function getParsedExpressionForResourceType(resourceType: string, expression: string): FhirPathAtom;
1795
1814
 
1796
1815
  /**
@@ -816,6 +816,21 @@ export declare const DEFAULT_MAX_SEARCH_COUNT = 1000;
816
816
 
817
817
  export declare const DEFAULT_SEARCH_COUNT = 20;
818
818
 
819
+ /**
820
+ * Derives an "identifier" search parameter from a reference search parameter.
821
+ *
822
+ * FHIR references can have an "identifier" property.
823
+ *
824
+ * Any FHIR reference search parameter can be used to search for resources with an identifier.
825
+ *
826
+ * However, the FHIR specification does not define an "identifier" search parameter for every resource type.
827
+ *
828
+ * This function derives an "identifier" search parameter from a reference search parameter.
829
+ * @param inputParam - The original reference search parameter.
830
+ * @returns The derived "identifier" search parameter.
831
+ */
832
+ export declare function deriveIdentifierSearchParameter(inputParam: SearchParameter): SearchParameter;
833
+
819
834
  export declare class DotAtom extends InfixOperatorAtom {
820
835
  constructor(left: Atom, right: Atom);
821
836
  eval(context: AtomContext, input: TypedValue[]): TypedValue[];
@@ -1781,6 +1796,8 @@ export declare function getIdentifier(resource: Resource, system: string): strin
1781
1796
  */
1782
1797
  export declare function getImageSrc(resource: Resource): string | undefined;
1783
1798
 
1799
+ export declare function getInnerDerivedIdentifierExpression(expression: string): string | undefined;
1800
+
1784
1801
  export declare function getNestedProperty(value: TypedValueWithPath | undefined, key: string, options: {
1785
1802
  profileUrl?: string;
1786
1803
  withPath: true;
@@ -1791,6 +1808,8 @@ export declare function getNestedProperty(value: TypedValue | undefined, key: st
1791
1808
  withPath?: false;
1792
1809
  }): (TypedValue | TypedValue[] | undefined)[];
1793
1810
 
1811
+ export declare function getParsedDerivedIdentifierExpression(originalExpression: string, atom: FhirPathAtom): FhirPathAtom;
1812
+
1794
1813
  export declare function getParsedExpressionForResourceType(resourceType: string, expression: string): FhirPathAtom;
1795
1814
 
1796
1815
  /**