@openfn/language-fhir-fr 1.0.2 → 1.0.3

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 (2) hide show
  1. package/package.json +3 -3
  2. package/types/builders.d.ts +17 -51
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-fhir-fr",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "OpenFn fhir-fr adaptor",
5
5
  "author": "Open Function Group",
6
6
  "license": "LGPLv3",
@@ -11,8 +11,8 @@
11
11
  "webUrl": "https://hl7.fr/ig/fhir/core",
12
12
  "specDate": "2024-03-25",
13
13
  "specUrl": "https://hl7.fr/ig/fhir/core/2.0.0/definitions.json.zip",
14
- "adaptorGeneratedDate": "2024-11-29T18:01:10.462Z",
15
- "generatorVersion": "0.2.0"
14
+ "adaptorGeneratedDate": "2024-11-30T12:30:54.911Z",
15
+ "generatorVersion": "0.2.1"
16
16
  },
17
17
  "dependencies": {
18
18
  "@openfn/language-common": "2.1.1"
@@ -56,13 +56,11 @@ type Address_fr_core_address_Props = {
56
56
  period: Period;
57
57
  };
58
58
 
59
- type Address_variants = "fr-core-address";
60
-
61
59
  type Address__lookups = {
62
60
  "fr-core-address": Address_fr_core_address_Props;
63
61
  };
64
62
 
65
- export declare function address<T extends Address_variants>(type: Address_variants, props: Address__lookups[T]);;
63
+ export declare function address<T extends keyof Address__lookups>(type: T, props: Address__lookups[T]);;
66
64
 
67
65
  type Extension_fr_core_address_insee_code_Props = {
68
66
  /**
@@ -813,8 +811,6 @@ type Extension_fr_core_use_period_Props = {
813
811
  value: Period;
814
812
  };
815
813
 
816
- type Extension_variants = "fr-core-address-insee-code" | "fr-core-appointment-operator" | "fr-core-comment" | "fr-core-contact-point-email-type" | "fr-core-estimated-discharge-date" | "fr-core-human-name-assembly-order" | "fr-core-identity-reliability" | "fr-core-location-position-room" | "fr-core-lunar-date" | "fr-core-observation-body-position-ext" | "fr-core-observation-height-body-position" | "fr-core-observation-level-of-exertion" | "fr-core-organization-activity-field" | "fr-core-organization-activity-type" | "fr-core-organization-analysis-section" | "fr-core-organization-applicant-act" | "fr-core-organization-budget-letter" | "fr-core-organization-description" | "fr-core-organization-executant" | "fr-core-organization-external" | "fr-core-organization-field" | "fr-core-organization-number-of-theorical-accomadation-space" | "fr-core-organization-prestation-discipline" | "fr-core-organization-short-name" | "fr-core-patient-birth-list-given-name" | "fr-core-patient-birthdate-update-indicator" | "fr-core-patient-contact-identifier" | "fr-core-patient-death-place" | "fr-core-patient-nationality" | "fr-core-practitioner-profession" | "fr-core-practitioner-specialty" | "fr-core-role-code-categorie-professionnelle" | "fr-core-schedule-availability-time" | "fr-core-service-type-duration" | "fr-core-slot-date" | "fr-core-use-period";
817
-
818
814
  type Extension__lookups = {
819
815
  "fr-core-address-insee-code": Extension_fr_core_address_insee_code_Props;
820
816
  "fr-core-appointment-operator": Extension_fr_core_appointment_operator_Props;
@@ -854,7 +850,7 @@ type Extension__lookups = {
854
850
  "fr-core-use-period": Extension_fr_core_use_period_Props;
855
851
  };
856
852
 
857
- export declare function extension<T extends Extension_variants>(type: Extension_variants, props: Extension__lookups[T]);;
853
+ export declare function extension<T extends keyof Extension__lookups>(type: T, props: Extension__lookups[T]);;
858
854
 
859
855
  type Appointment_fr_core_appointment_Props = {
860
856
  /**
@@ -1037,13 +1033,11 @@ type Appointment_fr_core_appointment_Props = {
1037
1033
  requestedPeriod: Period;
1038
1034
  };
1039
1035
 
1040
- type Appointment_variants = "fr-core-appointment";
1041
-
1042
1036
  type Appointment__lookups = {
1043
1037
  "fr-core-appointment": Appointment_fr_core_appointment_Props;
1044
1038
  };
1045
1039
 
1046
- export declare function appointment<T extends Appointment_variants>(type: Appointment_variants, props: Appointment__lookups[T]);;
1040
+ export declare function appointment<T extends keyof Appointment__lookups>(type: T, props: Appointment__lookups[T]);;
1047
1041
 
1048
1042
  type ContactPoint_fr_core_contact_point_Props = {
1049
1043
  /**
@@ -1076,13 +1070,11 @@ type ContactPoint_fr_core_contact_point_Props = {
1076
1070
  period: Period;
1077
1071
  };
1078
1072
 
1079
- type ContactPoint_variants = "fr-core-contact-point";
1080
-
1081
1073
  type ContactPoint__lookups = {
1082
1074
  "fr-core-contact-point": ContactPoint_fr_core_contact_point_Props;
1083
1075
  };
1084
1076
 
1085
- export declare function contactPoint<T extends ContactPoint_variants>(type: ContactPoint_variants, props: ContactPoint__lookups[T]);;
1077
+ export declare function contactPoint<T extends keyof ContactPoint__lookups>(type: T, props: ContactPoint__lookups[T]);;
1086
1078
 
1087
1079
  type Encounter_fr_core_encounter_Props = {
1088
1080
  /**
@@ -1440,13 +1432,11 @@ type Encounter_fr_core_encounter_Props = {
1440
1432
  partOf: Reference;
1441
1433
  };
1442
1434
 
1443
- type Encounter_variants = "fr-core-encounter";
1444
-
1445
1435
  type Encounter__lookups = {
1446
1436
  "fr-core-encounter": Encounter_fr_core_encounter_Props;
1447
1437
  };
1448
1438
 
1449
- export declare function encounter<T extends Encounter_variants>(type: Encounter_variants, props: Encounter__lookups[T]);;
1439
+ export declare function encounter<T extends keyof Encounter__lookups>(type: T, props: Encounter__lookups[T]);;
1450
1440
 
1451
1441
  type HealthcareService_fr_core_healthcare_service_Props = {
1452
1442
  /**
@@ -1696,13 +1686,11 @@ type HealthcareService_fr_core_healthcare_service_Props = {
1696
1686
  endpoint: Reference;
1697
1687
  };
1698
1688
 
1699
- type HealthcareService_variants = "fr-core-healthcare-service";
1700
-
1701
1689
  type HealthcareService__lookups = {
1702
1690
  "fr-core-healthcare-service": HealthcareService_fr_core_healthcare_service_Props;
1703
1691
  };
1704
1692
 
1705
- export declare function healthcareService<T extends HealthcareService_variants>(type: HealthcareService_variants, props: HealthcareService__lookups[T]);;
1693
+ export declare function healthcareService<T extends keyof HealthcareService__lookups>(type: T, props: HealthcareService__lookups[T]);;
1706
1694
 
1707
1695
  type HumanName_fr_core_human_name_Props = {
1708
1696
  /**
@@ -1743,13 +1731,11 @@ type HumanName_fr_core_human_name_Props = {
1743
1731
  period: Period;
1744
1732
  };
1745
1733
 
1746
- type HumanName_variants = "fr-core-human-name";
1747
-
1748
1734
  type HumanName__lookups = {
1749
1735
  "fr-core-human-name": HumanName_fr_core_human_name_Props;
1750
1736
  };
1751
1737
 
1752
- export declare function humanName<T extends HumanName_variants>(type: HumanName_variants, props: HumanName__lookups[T]);;
1738
+ export declare function humanName<T extends keyof HumanName__lookups>(type: T, props: HumanName__lookups[T]);;
1753
1739
 
1754
1740
  type Location_fr_core_location_Props = {
1755
1741
  /**
@@ -1983,13 +1969,11 @@ type Location_fr_core_location_Props = {
1983
1969
  endpoint: Reference;
1984
1970
  };
1985
1971
 
1986
- type Location_variants = "fr-core-location";
1987
-
1988
1972
  type Location__lookups = {
1989
1973
  "fr-core-location": Location_fr_core_location_Props;
1990
1974
  };
1991
1975
 
1992
- export declare function location<T extends Location_variants>(type: Location_variants, props: Location__lookups[T]);;
1976
+ export declare function location<T extends keyof Location__lookups>(type: T, props: Location__lookups[T]);;
1993
1977
 
1994
1978
  type MedicationAdministration_fr_core_medication_administration_inhaled_oxygen_Props = {
1995
1979
  /**
@@ -2194,13 +2178,11 @@ type MedicationAdministration_fr_core_medication_administration_inhaled_oxygen_P
2194
2178
  eventHistory: Reference;
2195
2179
  };
2196
2180
 
2197
- type MedicationAdministration_variants = "fr-core-medication-administration-inhaled-oxygen";
2198
-
2199
2181
  type MedicationAdministration__lookups = {
2200
2182
  "fr-core-medication-administration-inhaled-oxygen": MedicationAdministration_fr_core_medication_administration_inhaled_oxygen_Props;
2201
2183
  };
2202
2184
 
2203
- export declare function medicationAdministration<T extends MedicationAdministration_variants>(type: MedicationAdministration_variants, props: MedicationAdministration__lookups[T]);;
2185
+ export declare function medicationAdministration<T extends keyof MedicationAdministration__lookups>(type: T, props: MedicationAdministration__lookups[T]);;
2204
2186
 
2205
2187
  type Observation_fr_core_observation_bmi_Props = {
2206
2188
  /**
@@ -4645,8 +4627,6 @@ type Observation_fr_core_observation_saturation_oxygen_Props = {
4645
4627
  };
4646
4628
  };
4647
4629
 
4648
- type Observation_variants = "fr-core-observation-bmi" | "fr-core-observation-body-height" | "fr-core-observation-body-temperature" | "fr-core-observation-body-weight" | "fr-core-observation-bp" | "fr-core-observation-head-circum" | "fr-core-observation-heartrate" | "fr-core-observation-resp-rate" | "fr-core-observation-saturation-oxygen";
4649
-
4650
4630
  type Observation__lookups = {
4651
4631
  "fr-core-observation-bmi": Observation_fr_core_observation_bmi_Props;
4652
4632
  "fr-core-observation-body-height": Observation_fr_core_observation_body_height_Props;
@@ -4659,7 +4639,7 @@ type Observation__lookups = {
4659
4639
  "fr-core-observation-saturation-oxygen": Observation_fr_core_observation_saturation_oxygen_Props;
4660
4640
  };
4661
4641
 
4662
- export declare function observation<T extends Observation_variants>(type: Observation_variants, props: Observation__lookups[T]);;
4642
+ export declare function observation<T extends keyof Observation__lookups>(type: T, props: Observation__lookups[T]);;
4663
4643
 
4664
4644
  type Organization_fr_core_organization_Props = {
4665
4645
  /**
@@ -5369,8 +5349,6 @@ type Organization_fr_core_organization_uf_Props = {
5369
5349
  endpoint: Reference;
5370
5350
  };
5371
5351
 
5372
- type Organization_variants = "fr-core-organization" | "fr-core-organization-pole" | "fr-core-organization-uac" | "fr-core-organization-uf";
5373
-
5374
5352
  type Organization__lookups = {
5375
5353
  "fr-core-organization": Organization_fr_core_organization_Props;
5376
5354
  "fr-core-organization-pole": Organization_fr_core_organization_pole_Props;
@@ -5378,7 +5356,7 @@ type Organization__lookups = {
5378
5356
  "fr-core-organization-uf": Organization_fr_core_organization_uf_Props;
5379
5357
  };
5380
5358
 
5381
- export declare function organization<T extends Organization_variants>(type: Organization_variants, props: Organization__lookups[T]);;
5359
+ export declare function organization<T extends keyof Organization__lookups>(type: T, props: Organization__lookups[T]);;
5382
5360
 
5383
5361
  type Patient_fr_core_patient_Props = {
5384
5362
  /**
@@ -5952,14 +5930,12 @@ type Patient_fr_core_patient_ins_Props = {
5952
5930
  };
5953
5931
  };
5954
5932
 
5955
- type Patient_variants = "fr-core-patient" | "fr-core-patient-ins";
5956
-
5957
5933
  type Patient__lookups = {
5958
5934
  "fr-core-patient": Patient_fr_core_patient_Props;
5959
5935
  "fr-core-patient-ins": Patient_fr_core_patient_ins_Props;
5960
5936
  };
5961
5937
 
5962
- export declare function patient<T extends Patient_variants>(type: Patient_variants, props: Patient__lookups[T]);;
5938
+ export declare function patient<T extends keyof Patient__lookups>(type: T, props: Patient__lookups[T]);;
5963
5939
 
5964
5940
  type Practitioner_fr_core_practitioner_Props = {
5965
5941
  /**
@@ -6119,13 +6095,11 @@ type Practitioner_fr_core_practitioner_Props = {
6119
6095
  communication: CodeableConcept;
6120
6096
  };
6121
6097
 
6122
- type Practitioner_variants = "fr-core-practitioner";
6123
-
6124
6098
  type Practitioner__lookups = {
6125
6099
  "fr-core-practitioner": Practitioner_fr_core_practitioner_Props;
6126
6100
  };
6127
6101
 
6128
- export declare function practitioner<T extends Practitioner_variants>(type: Practitioner_variants, props: Practitioner__lookups[T]);;
6102
+ export declare function practitioner<T extends keyof Practitioner__lookups>(type: T, props: Practitioner__lookups[T]);;
6129
6103
 
6130
6104
  type PractitionerRole_fr_core_practitioner_role_exercice_Props = {
6131
6105
  /**
@@ -6497,14 +6471,12 @@ type PractitionerRole_fr_core_practitioner_role_profession_Props = {
6497
6471
  endpoint: Reference;
6498
6472
  };
6499
6473
 
6500
- type PractitionerRole_variants = "fr-core-practitioner-role-exercice" | "fr-core-practitioner-role-profession";
6501
-
6502
6474
  type PractitionerRole__lookups = {
6503
6475
  "fr-core-practitioner-role-exercice": PractitionerRole_fr_core_practitioner_role_exercice_Props;
6504
6476
  "fr-core-practitioner-role-profession": PractitionerRole_fr_core_practitioner_role_profession_Props;
6505
6477
  };
6506
6478
 
6507
- export declare function practitionerRole<T extends PractitionerRole_variants>(type: PractitionerRole_variants, props: PractitionerRole__lookups[T]);;
6479
+ export declare function practitionerRole<T extends keyof PractitionerRole__lookups>(type: T, props: PractitionerRole__lookups[T]);;
6508
6480
 
6509
6481
  type RelatedPerson_fr_core_related_person_Props = {
6510
6482
  /**
@@ -6648,13 +6620,11 @@ type RelatedPerson_fr_core_related_person_Props = {
6648
6620
  };
6649
6621
  };
6650
6622
 
6651
- type RelatedPerson_variants = "fr-core-related-person";
6652
-
6653
6623
  type RelatedPerson__lookups = {
6654
6624
  "fr-core-related-person": RelatedPerson_fr_core_related_person_Props;
6655
6625
  };
6656
6626
 
6657
- export declare function relatedPerson<T extends RelatedPerson_variants>(type: RelatedPerson_variants, props: RelatedPerson__lookups[T]);;
6627
+ export declare function relatedPerson<T extends keyof RelatedPerson__lookups>(type: T, props: RelatedPerson__lookups[T]);;
6658
6628
 
6659
6629
  type Schedule_fr_core_schedule_Props = {
6660
6630
  /**
@@ -6752,13 +6722,11 @@ type Schedule_fr_core_schedule_Props = {
6752
6722
  comment: string;
6753
6723
  };
6754
6724
 
6755
- type Schedule_variants = "fr-core-schedule";
6756
-
6757
6725
  type Schedule__lookups = {
6758
6726
  "fr-core-schedule": Schedule_fr_core_schedule_Props;
6759
6727
  };
6760
6728
 
6761
- export declare function schedule<T extends Schedule_variants>(type: Schedule_variants, props: Schedule__lookups[T]);;
6729
+ export declare function schedule<T extends keyof Schedule__lookups>(type: T, props: Schedule__lookups[T]);;
6762
6730
 
6763
6731
  type Slot_fr_core_slot_Props = {
6764
6732
  /**
@@ -6897,10 +6865,8 @@ type Slot_fr_core_slot_Props = {
6897
6865
  comment: string;
6898
6866
  };
6899
6867
 
6900
- type Slot_variants = "fr-core-slot";
6901
-
6902
6868
  type Slot__lookups = {
6903
6869
  "fr-core-slot": Slot_fr_core_slot_Props;
6904
6870
  };
6905
6871
 
6906
- export declare function slot<T extends Slot_variants>(type: Slot_variants, props: Slot__lookups[T]);;
6872
+ export declare function slot<T extends keyof Slot__lookups>(type: T, props: Slot__lookups[T]);;