@medplum/fhirtypes 0.9.8 → 0.9.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.
@@ -316,3 +316,6 @@ export type Resource = AccessPolicy
316
316
  | ValueSet
317
317
  | VerificationResult
318
318
  | VisionPrescription;
319
+
320
+ export type ResourceType = Resource['resourceType'];
321
+ export type ExtractResource<K extends ResourceType> = Extract<Resource, { resourceType: K }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/fhirtypes",
3
- "version": "0.9.8",
3
+ "version": "0.9.11",
4
4
  "description": "Medplum FHIR Type Definitions",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",