@claudebernard/patient-profile-element 0.6.3 → 0.6.4

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.
@@ -390,7 +390,7 @@
390
390
  "declarations": [
391
391
  {
392
392
  "kind": "class",
393
- "description": "",
393
+ "description": "Orchestrateur de la modale d'édition du profil patient : assemble les sous-formulaires\npar domaine clinique (démographie, grossesse/allaitement, pathologies, allergies, rénal,\nhépatique), collecte leurs valeurs à la validation pour les écrire dans le Bundle FHIR,\net gère l'ouverture/fermeture/réinitialisation de la modale.",
394
394
  "name": "PatientProfileEdition",
395
395
  "members": [
396
396
  {
@@ -428,651 +428,171 @@
428
428
  },
429
429
  {
430
430
  "kind": "field",
431
- "name": "isAgeDisplay",
432
- "type": {
433
- "text": "boolean"
434
- },
435
- "privacy": "private",
436
- "readonly": true
437
- },
438
- {
439
- "kind": "field",
440
- "name": "isAgeReadOnly",
441
- "type": {
442
- "text": "boolean"
443
- },
444
- "privacy": "private",
445
- "readonly": true
446
- },
447
- {
448
- "kind": "field",
449
- "name": "isSexeDisplay",
431
+ "name": "isPregnancyDivVisible",
450
432
  "type": {
451
433
  "text": "boolean"
452
434
  },
453
435
  "privacy": "private",
454
- "readonly": true
436
+ "default": "false"
455
437
  },
456
438
  {
457
439
  "kind": "field",
458
- "name": "isSexeReadOnly",
440
+ "name": "demographicsHasError",
459
441
  "type": {
460
442
  "text": "boolean"
461
443
  },
462
444
  "privacy": "private",
463
- "readonly": true
464
- },
465
- {
466
- "kind": "field",
467
- "name": "patientBirthDate",
468
- "type": {
469
- "text": "string"
470
- },
471
- "default": "\"\""
472
- },
473
- {
474
- "kind": "field",
475
- "name": "patientAgeValue",
476
- "type": {
477
- "text": "number | undefined"
478
- },
479
- "default": "undefined"
480
- },
481
- {
482
- "kind": "field",
483
- "name": "patientUnitAge",
484
- "type": {
485
- "text": "\"ans\" | \"mois\""
486
- },
487
- "default": "\"ans\""
488
- },
489
- {
490
- "kind": "field",
491
- "name": "patientAge",
492
- "type": {
493
- "text": "string"
494
- },
495
- "privacy": "private",
496
- "readonly": true
445
+ "default": "false"
497
446
  },
498
447
  {
499
448
  "kind": "field",
500
- "name": "creatinineByMg",
449
+ "name": "resetKey",
501
450
  "type": {
502
451
  "text": "number"
503
452
  },
453
+ "privacy": "private",
504
454
  "default": "0"
505
455
  },
506
456
  {
507
457
  "kind": "field",
508
- "name": "creatinineByUmol",
458
+ "name": "editionModalElement",
509
459
  "type": {
510
- "text": "number"
460
+ "text": "HTMLElement & { open: () => void; close: () => void }"
511
461
  },
512
- "default": "0"
462
+ "privacy": "private"
513
463
  },
514
464
  {
515
465
  "kind": "field",
516
- "name": "clairanceCreatinine",
466
+ "name": "demographicsForm",
517
467
  "type": {
518
- "text": "number"
468
+ "text": "PatientDemographicsForm"
519
469
  },
520
- "default": "0"
470
+ "privacy": "private"
521
471
  },
522
472
  {
523
473
  "kind": "field",
524
- "name": "dfg",
474
+ "name": "reproductiveForm",
525
475
  "type": {
526
- "text": "number"
476
+ "text": "PatientReproductiveForm"
527
477
  },
528
- "default": "0"
478
+ "privacy": "private"
529
479
  },
530
480
  {
531
481
  "kind": "field",
532
- "name": "defaultPatientSex",
482
+ "name": "pathologiesForm",
533
483
  "type": {
534
- "text": "{ value?: string; label?: string }"
484
+ "text": "PatientPathologiesForm"
535
485
  },
536
- "default": "{}"
486
+ "privacy": "private"
537
487
  },
538
488
  {
539
489
  "kind": "field",
540
- "name": "defaultHepaticStade",
490
+ "name": "allergiesForm",
541
491
  "type": {
542
- "text": "{ value?: string; label?: string }"
492
+ "text": "PatientAllergiesForm"
543
493
  },
544
- "default": "{}"
494
+ "privacy": "private"
545
495
  },
546
496
  {
547
497
  "kind": "field",
548
- "name": "isPregnancyDivVisible",
498
+ "name": "renalForm",
549
499
  "type": {
550
- "text": "boolean"
500
+ "text": "PatientRenalForm"
551
501
  },
552
- "default": "false"
502
+ "privacy": "private"
553
503
  },
554
504
  {
555
505
  "kind": "field",
556
- "name": "isPregnant",
506
+ "name": "hepaticForm",
557
507
  "type": {
558
- "text": "boolean"
508
+ "text": "PatientHepaticForm"
559
509
  },
560
- "default": "false"
510
+ "privacy": "private"
561
511
  },
562
512
  {
563
- "kind": "field",
564
- "name": "breastfeeding",
565
- "type": {
566
- "text": "boolean"
567
- },
568
- "default": "false"
513
+ "kind": "method",
514
+ "name": "open",
515
+ "privacy": "public",
516
+ "return": {
517
+ "type": {
518
+ "text": "void"
519
+ }
520
+ }
569
521
  },
570
522
  {
571
- "kind": "field",
572
- "name": "ageErrorMessageInput",
573
- "type": {
574
- "text": "string"
575
- },
576
- "default": "\"\""
523
+ "kind": "method",
524
+ "name": "handleCancel",
525
+ "privacy": "private",
526
+ "return": {
527
+ "type": {
528
+ "text": "void"
529
+ }
530
+ }
577
531
  },
578
532
  {
579
- "kind": "field",
580
- "name": "sizeErrorMessageInput",
581
- "type": {
582
- "text": "string"
533
+ "kind": "method",
534
+ "name": "handleDemographicsChange",
535
+ "privacy": "private",
536
+ "return": {
537
+ "type": {
538
+ "text": "void"
539
+ }
583
540
  },
584
- "default": "\"\""
541
+ "parameters": [
542
+ {
543
+ "name": "event",
544
+ "type": {
545
+ "text": "CustomEvent<DemographicsChangeEventDetail>"
546
+ }
547
+ }
548
+ ]
585
549
  },
586
550
  {
587
- "kind": "field",
588
- "name": "weightErrorMessageInput",
589
- "type": {
590
- "text": "string"
591
- },
592
- "default": "\"\""
593
- },
551
+ "kind": "method",
552
+ "name": "validateForm",
553
+ "privacy": "private",
554
+ "return": {
555
+ "type": {
556
+ "text": "void"
557
+ }
558
+ }
559
+ }
560
+ ],
561
+ "events": [
594
562
  {
595
- "kind": "field",
596
- "name": "pathologiesApiErrorMessage",
563
+ "name": "editPatientProfile",
597
564
  "type": {
598
- "text": "string"
599
- },
600
- "default": "\"\""
601
- },
565
+ "text": "CustomEvent"
566
+ }
567
+ }
568
+ ],
569
+ "attributes": [
602
570
  {
603
- "kind": "field",
604
- "name": "allergiesApiErrorMessage",
571
+ "name": "patient-profile",
605
572
  "type": {
606
- "text": "string"
573
+ "text": "Bundle | undefined"
607
574
  },
608
- "default": "\"\""
575
+ "fieldName": "patientProfile"
609
576
  },
610
577
  {
611
- "kind": "field",
612
- "name": "renalLackInformationErrorMessage",
578
+ "name": "api-url",
613
579
  "type": {
614
580
  "text": "string"
615
581
  },
616
- "default": "\"\""
617
- },
618
- {
619
- "kind": "field",
620
- "name": "pathologyOptions",
621
- "type": {
622
- "text": "ISelectOption[]"
623
- },
624
- "default": "[]"
625
- },
626
- {
627
- "kind": "field",
628
- "name": "allergyOptions",
629
- "type": {
630
- "text": "ISelectOption[]"
631
- },
632
- "default": "[]"
633
- },
634
- {
635
- "kind": "field",
636
- "name": "selectedPathologyOptions",
637
- "type": {
638
- "text": "ISelectOption[]"
639
- },
640
- "default": "[]"
641
- },
642
- {
643
- "kind": "field",
644
- "name": "selectedAllergyOptions",
645
- "type": {
646
- "text": "ISelectOption[]"
647
- },
648
- "default": "[]"
649
- },
650
- {
651
- "kind": "field",
652
- "name": "imc",
653
- "type": {
654
- "text": "number"
655
- },
656
- "default": "0"
657
- },
658
- {
659
- "kind": "field",
660
- "name": "resetKey",
661
- "type": {
662
- "text": "number"
663
- },
664
- "privacy": "private",
665
- "default": "0"
666
- },
667
- {
668
- "kind": "field",
669
- "name": "sizeInput",
670
- "type": {
671
- "text": "HTMLElement & { value: string }"
672
- },
673
- "privacy": "private"
674
- },
675
- {
676
- "kind": "field",
677
- "name": "ageInputText",
678
- "type": {
679
- "text": "HTMLElement & { value: string }"
680
- },
681
- "privacy": "private"
582
+ "default": "\"https://api-dev.claudebernard.fr\"",
583
+ "fieldName": "apiUrl"
682
584
  },
683
585
  {
684
- "kind": "field",
685
- "name": "birthDateInput",
586
+ "name": "api-key",
686
587
  "type": {
687
- "text": "HTMLElement & { value: string }"
588
+ "text": "string | undefined"
688
589
  },
689
- "privacy": "private"
590
+ "fieldName": "apiKey"
690
591
  },
691
592
  {
692
- "kind": "field",
693
- "name": "weightInput",
593
+ "name": "preferences",
694
594
  "type": {
695
- "text": "HTMLElement & { value: string }"
696
- },
697
- "privacy": "private"
698
- },
699
- {
700
- "kind": "field",
701
- "name": "creatinineUmolInput",
702
- "type": {
703
- "text": "HTMLElement & { value: string }"
704
- },
705
- "privacy": "private"
706
- },
707
- {
708
- "kind": "field",
709
- "name": "creatinineMgLInput",
710
- "type": {
711
- "text": "HTMLElement & { value: string }"
712
- },
713
- "privacy": "private"
714
- },
715
- {
716
- "kind": "field",
717
- "name": "clairanceCreatinineInput",
718
- "type": {
719
- "text": "HTMLElement & { value: string }"
720
- },
721
- "privacy": "private"
722
- },
723
- {
724
- "kind": "field",
725
- "name": "editionModalElement",
726
- "type": {
727
- "text": "HTMLElement & { open: () => void; close: () => void }"
728
- },
729
- "privacy": "private"
730
- },
731
- {
732
- "kind": "field",
733
- "name": "dfgInput",
734
- "type": {
735
- "text": "HTMLElement & { value: string }"
736
- },
737
- "privacy": "private"
738
- },
739
- {
740
- "kind": "field",
741
- "name": "genderSelect",
742
- "type": {
743
- "text": "HTMLElement & { value: string }"
744
- },
745
- "privacy": "private"
746
- },
747
- {
748
- "kind": "field",
749
- "name": "gestationalWeeksInput",
750
- "type": {
751
- "text": "HTMLElement & { value: string }"
752
- },
753
- "privacy": "private"
754
- },
755
- {
756
- "kind": "field",
757
- "name": "hepaticStadeSelect",
758
- "type": {
759
- "text": "HTMLElement & { value: string }"
760
- },
761
- "privacy": "private"
762
- },
763
- {
764
- "kind": "method",
765
- "name": "open",
766
- "privacy": "public",
767
- "return": {
768
- "type": {
769
- "text": "void"
770
- }
771
- }
772
- },
773
- {
774
- "kind": "method",
775
- "name": "modifyGender",
776
- "privacy": "private",
777
- "return": {
778
- "type": {
779
- "text": "void"
780
- }
781
- }
782
- },
783
- {
784
- "kind": "method",
785
- "name": "resetToProfileValues",
786
- "privacy": "private",
787
- "return": {
788
- "type": {
789
- "text": "void"
790
- }
791
- }
792
- },
793
- {
794
- "kind": "method",
795
- "name": "handleCancel",
796
- "privacy": "private",
797
- "return": {
798
- "type": {
799
- "text": "void"
800
- }
801
- }
802
- },
803
- {
804
- "kind": "method",
805
- "name": "getAgeErrorMessage",
806
- "privacy": "private",
807
- "return": {
808
- "type": {
809
- "text": "string"
810
- }
811
- },
812
- "parameters": [
813
- {
814
- "name": "age",
815
- "type": {
816
- "text": "number"
817
- }
818
- }
819
- ]
820
- },
821
- {
822
- "kind": "field",
823
- "name": "isPregnancyAge",
824
- "type": {
825
- "text": "boolean"
826
- },
827
- "privacy": "private",
828
- "readonly": true
829
- },
830
- {
831
- "kind": "method",
832
- "name": "verifyAgeInput",
833
- "privacy": "private",
834
- "return": {
835
- "type": {
836
- "text": "void"
837
- }
838
- }
839
- },
840
- {
841
- "kind": "method",
842
- "name": "verifySizeInput",
843
- "privacy": "private",
844
- "return": {
845
- "type": {
846
- "text": "void"
847
- }
848
- }
849
- },
850
- {
851
- "kind": "method",
852
- "name": "verifyWeightInput",
853
- "privacy": "private",
854
- "return": {
855
- "type": {
856
- "text": "void"
857
- }
858
- }
859
- },
860
- {
861
- "kind": "method",
862
- "name": "getPatientSexFromProfile",
863
- "privacy": "private"
864
- },
865
- {
866
- "kind": "method",
867
- "name": "getPatientHepaticStadeFromProfile",
868
- "privacy": "private"
869
- },
870
- {
871
- "kind": "method",
872
- "name": "handlePregnancy",
873
- "privacy": "private",
874
- "return": {
875
- "type": {
876
- "text": "void"
877
- }
878
- },
879
- "parameters": [
880
- {
881
- "name": "event",
882
- "type": {
883
- "text": "CustomEvent"
884
- }
885
- }
886
- ]
887
- },
888
- {
889
- "kind": "method",
890
- "name": "handleBreastfeeding",
891
- "privacy": "private",
892
- "return": {
893
- "type": {
894
- "text": "void"
895
- }
896
- },
897
- "parameters": [
898
- {
899
- "name": "event",
900
- "type": {
901
- "text": "CustomEvent"
902
- }
903
- }
904
- ]
905
- },
906
- {
907
- "kind": "method",
908
- "name": "handleRenalConversion",
909
- "privacy": "private",
910
- "return": {
911
- "type": {
912
- "text": "Promise<void>"
913
- }
914
- },
915
- "parameters": [
916
- {
917
- "name": "type",
918
- "type": {
919
- "text": "number"
920
- }
921
- },
922
- {
923
- "name": "value",
924
- "type": {
925
- "text": "number"
926
- }
927
- }
928
- ]
929
- },
930
- {
931
- "kind": "method",
932
- "name": "recalculateRenalValues",
933
- "privacy": "private",
934
- "return": {
935
- "type": {
936
- "text": "void"
937
- }
938
- }
939
- },
940
- {
941
- "kind": "method",
942
- "name": "apiReturntoSelectOption",
943
- "privacy": "private",
944
- "return": {
945
- "type": {
946
- "text": "ISelectOption"
947
- }
948
- },
949
- "parameters": [
950
- {
951
- "name": "pathology",
952
- "type": {
953
- "text": "IApiReturn"
954
- }
955
- }
956
- ]
957
- },
958
- {
959
- "kind": "method",
960
- "name": "searchPathologies",
961
- "privacy": "private",
962
- "return": {
963
- "type": {
964
- "text": "void"
965
- }
966
- },
967
- "parameters": [
968
- {
969
- "name": "event",
970
- "type": {
971
- "text": "CustomEvent"
972
- }
973
- }
974
- ]
975
- },
976
- {
977
- "kind": "method",
978
- "name": "updatePathologies",
979
- "privacy": "private",
980
- "return": {
981
- "type": {
982
- "text": "void"
983
- }
984
- },
985
- "parameters": [
986
- {
987
- "name": "event",
988
- "type": {
989
- "text": "CustomEvent"
990
- }
991
- }
992
- ]
993
- },
994
- {
995
- "kind": "method",
996
- "name": "searchAllergies",
997
- "privacy": "private",
998
- "return": {
999
- "type": {
1000
- "text": "void"
1001
- }
1002
- },
1003
- "parameters": [
1004
- {
1005
- "name": "event",
1006
- "type": {
1007
- "text": "CustomEvent"
1008
- }
1009
- }
1010
- ]
1011
- },
1012
- {
1013
- "kind": "method",
1014
- "name": "updateAllergies",
1015
- "privacy": "private",
1016
- "return": {
1017
- "type": {
1018
- "text": "void"
1019
- }
1020
- },
1021
- "parameters": [
1022
- {
1023
- "name": "event",
1024
- "type": {
1025
- "text": "CustomEvent"
1026
- }
1027
- }
1028
- ]
1029
- },
1030
- {
1031
- "kind": "method",
1032
- "name": "validateForm",
1033
- "privacy": "private",
1034
- "return": {
1035
- "type": {
1036
- "text": "void"
1037
- }
1038
- }
1039
- }
1040
- ],
1041
- "events": [
1042
- {
1043
- "name": "editPatientProfile",
1044
- "type": {
1045
- "text": "CustomEvent"
1046
- }
1047
- }
1048
- ],
1049
- "attributes": [
1050
- {
1051
- "name": "patient-profile",
1052
- "type": {
1053
- "text": "Bundle | undefined"
1054
- },
1055
- "fieldName": "patientProfile"
1056
- },
1057
- {
1058
- "name": "api-url",
1059
- "type": {
1060
- "text": "string"
1061
- },
1062
- "default": "\"https://api-dev.claudebernard.fr\"",
1063
- "fieldName": "apiUrl"
1064
- },
1065
- {
1066
- "name": "api-key",
1067
- "type": {
1068
- "text": "string | undefined"
1069
- },
1070
- "fieldName": "apiKey"
1071
- },
1072
- {
1073
- "name": "preferences",
1074
- "type": {
1075
- "text": "PatientProfilePreferences | undefined"
595
+ "text": "PatientProfilePreferences | undefined"
1076
596
  },
1077
597
  "fieldName": "preferences"
1078
598
  }
@@ -1248,6 +768,24 @@
1248
768
  }
1249
769
  ]
1250
770
  },
771
+ {
772
+ "kind": "javascript-module",
773
+ "path": "src/shared/interfaces/api-return.interface.ts",
774
+ "declarations": [],
775
+ "exports": []
776
+ },
777
+ {
778
+ "kind": "javascript-module",
779
+ "path": "src/shared/interfaces/patient.ts",
780
+ "declarations": [],
781
+ "exports": []
782
+ },
783
+ {
784
+ "kind": "javascript-module",
785
+ "path": "src/shared/interfaces/properties.ts",
786
+ "declarations": [],
787
+ "exports": []
788
+ },
1251
789
  {
1252
790
  "kind": "javascript-module",
1253
791
  "path": "src/shared/mocks/pathologies.mock.ts",
@@ -1312,24 +850,6 @@
1312
850
  }
1313
851
  ]
1314
852
  },
1315
- {
1316
- "kind": "javascript-module",
1317
- "path": "src/shared/interfaces/api-return.interface.ts",
1318
- "declarations": [],
1319
- "exports": []
1320
- },
1321
- {
1322
- "kind": "javascript-module",
1323
- "path": "src/shared/interfaces/patient.ts",
1324
- "declarations": [],
1325
- "exports": []
1326
- },
1327
- {
1328
- "kind": "javascript-module",
1329
- "path": "src/shared/interfaces/properties.ts",
1330
- "declarations": [],
1331
- "exports": []
1332
- },
1333
853
  {
1334
854
  "kind": "javascript-module",
1335
855
  "path": "src/shared/services/api-prescription.service.ts",
@@ -2804,162 +2324,1691 @@
2804
2324
  },
2805
2325
  {
2806
2326
  "kind": "js",
2807
- "name": "computeCreatinineFromClearance",
2327
+ "name": "computeCreatinineFromClearance",
2328
+ "declaration": {
2329
+ "name": "computeCreatinineFromClearance",
2330
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2331
+ }
2332
+ },
2333
+ {
2334
+ "kind": "js",
2335
+ "name": "getCreatinine",
2336
+ "declaration": {
2337
+ "name": "getCreatinine",
2338
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2339
+ }
2340
+ },
2341
+ {
2342
+ "kind": "js",
2343
+ "name": "setCreatinineBymgL",
2344
+ "declaration": {
2345
+ "name": "setCreatinineBymgL",
2346
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2347
+ }
2348
+ },
2349
+ {
2350
+ "kind": "js",
2351
+ "name": "setCreatinineByUmolL",
2352
+ "declaration": {
2353
+ "name": "setCreatinineByUmolL",
2354
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2355
+ }
2356
+ },
2357
+ {
2358
+ "kind": "js",
2359
+ "name": "getPatientHepaticInsufficiencyScore",
2360
+ "declaration": {
2361
+ "name": "getPatientHepaticInsufficiencyScore",
2362
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2363
+ }
2364
+ },
2365
+ {
2366
+ "kind": "js",
2367
+ "name": "getPatientHepaticInsufficiencyStade",
2368
+ "declaration": {
2369
+ "name": "getPatientHepaticInsufficiencyStade",
2370
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2371
+ }
2372
+ },
2373
+ {
2374
+ "kind": "js",
2375
+ "name": "setPatientHepaticInsufficiencyStatus",
2376
+ "declaration": {
2377
+ "name": "setPatientHepaticInsufficiencyStatus",
2378
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2379
+ }
2380
+ },
2381
+ {
2382
+ "kind": "js",
2383
+ "name": "deletePatientHepaticInsufficiencyStatus",
2384
+ "declaration": {
2385
+ "name": "deletePatientHepaticInsufficiencyStatus",
2386
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2387
+ }
2388
+ },
2389
+ {
2390
+ "kind": "js",
2391
+ "name": "getPatientConditions",
2392
+ "declaration": {
2393
+ "name": "getPatientConditions",
2394
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2395
+ }
2396
+ },
2397
+ {
2398
+ "kind": "js",
2399
+ "name": "getPatientConditionsWithCode",
2400
+ "declaration": {
2401
+ "name": "getPatientConditionsWithCode",
2402
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2403
+ }
2404
+ },
2405
+ {
2406
+ "kind": "js",
2407
+ "name": "setPatientConditions",
2408
+ "declaration": {
2409
+ "name": "setPatientConditions",
2410
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2411
+ }
2412
+ },
2413
+ {
2414
+ "kind": "js",
2415
+ "name": "getPatientAllergies",
2416
+ "declaration": {
2417
+ "name": "getPatientAllergies",
2418
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2419
+ }
2420
+ },
2421
+ {
2422
+ "kind": "js",
2423
+ "name": "getPatientAllergiesWithCode",
2424
+ "declaration": {
2425
+ "name": "getPatientAllergiesWithCode",
2426
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2427
+ }
2428
+ },
2429
+ {
2430
+ "kind": "js",
2431
+ "name": "setPatientAllergies",
2432
+ "declaration": {
2433
+ "name": "setPatientAllergies",
2434
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2435
+ }
2436
+ },
2437
+ {
2438
+ "kind": "js",
2439
+ "name": "getPatientAdverseEvents",
2440
+ "declaration": {
2441
+ "name": "getPatientAdverseEvents",
2442
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2443
+ }
2444
+ },
2445
+ {
2446
+ "kind": "js",
2447
+ "name": "getPatientDemographics",
2448
+ "declaration": {
2449
+ "name": "getPatientDemographics",
2450
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2451
+ }
2452
+ },
2453
+ {
2454
+ "kind": "js",
2455
+ "name": "childPughScore",
2456
+ "declaration": {
2457
+ "name": "childPughScore",
2458
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2459
+ }
2460
+ },
2461
+ {
2462
+ "kind": "js",
2463
+ "name": "calculateGFRFromCreatinine",
2808
2464
  "declaration": {
2809
- "name": "computeCreatinineFromClearance",
2465
+ "name": "calculateGFRFromCreatinine",
2810
2466
  "module": "src/shared/utils/patient-fhir-utils.ts"
2811
2467
  }
2812
2468
  },
2813
2469
  {
2814
2470
  "kind": "js",
2815
- "name": "getCreatinine",
2471
+ "name": "calculateCreatinineFromGFR",
2816
2472
  "declaration": {
2817
- "name": "getCreatinine",
2473
+ "name": "calculateCreatinineFromGFR",
2818
2474
  "module": "src/shared/utils/patient-fhir-utils.ts"
2819
2475
  }
2820
2476
  },
2821
2477
  {
2822
2478
  "kind": "js",
2823
- "name": "setCreatinineBymgL",
2479
+ "name": "getPatientMedicalInfo",
2824
2480
  "declaration": {
2825
- "name": "setCreatinineBymgL",
2481
+ "name": "getPatientMedicalInfo",
2826
2482
  "module": "src/shared/utils/patient-fhir-utils.ts"
2827
2483
  }
2828
- },
2484
+ }
2485
+ ]
2486
+ },
2487
+ {
2488
+ "kind": "javascript-module",
2489
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-allergies-form.ts",
2490
+ "declarations": [
2491
+ {
2492
+ "kind": "class",
2493
+ "description": "Sous-formulaire de la modale d'édition du profil patient : allergies, avec recherche\nvia l'API de molécules.",
2494
+ "name": "PatientAllergiesForm",
2495
+ "members": [
2496
+ {
2497
+ "kind": "field",
2498
+ "name": "searchErrorMessage",
2499
+ "type": {
2500
+ "text": "string"
2501
+ },
2502
+ "privacy": "protected",
2503
+ "readonly": true,
2504
+ "inheritedFrom": {
2505
+ "name": "PatientCodeSearchFormBase",
2506
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2507
+ }
2508
+ },
2509
+ {
2510
+ "kind": "method",
2511
+ "name": "extractInitialSelection",
2512
+ "privacy": "protected",
2513
+ "return": {
2514
+ "type": {
2515
+ "text": "ISelectOption[]"
2516
+ }
2517
+ },
2518
+ "parameters": [
2519
+ {
2520
+ "name": "patientProfile",
2521
+ "type": {
2522
+ "text": "Bundle | undefined"
2523
+ }
2524
+ }
2525
+ ],
2526
+ "inheritedFrom": {
2527
+ "name": "PatientCodeSearchFormBase",
2528
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2529
+ }
2530
+ },
2531
+ {
2532
+ "kind": "method",
2533
+ "name": "search",
2534
+ "privacy": "protected",
2535
+ "return": {
2536
+ "type": {
2537
+ "text": "Promise<ISelectOption[]>"
2538
+ }
2539
+ },
2540
+ "parameters": [
2541
+ {
2542
+ "name": "term",
2543
+ "type": {
2544
+ "text": "string"
2545
+ }
2546
+ }
2547
+ ],
2548
+ "inheritedFrom": {
2549
+ "name": "PatientCodeSearchFormBase",
2550
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2551
+ }
2552
+ },
2553
+ {
2554
+ "kind": "field",
2555
+ "name": "patientProfile",
2556
+ "type": {
2557
+ "text": "Bundle | undefined"
2558
+ },
2559
+ "attribute": "patient-profile",
2560
+ "inheritedFrom": {
2561
+ "name": "PatientCodeSearchFormBase",
2562
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2563
+ }
2564
+ },
2565
+ {
2566
+ "kind": "field",
2567
+ "name": "apiUrl",
2568
+ "type": {
2569
+ "text": "string"
2570
+ },
2571
+ "default": "\"https://api-dev.claudebernard.fr\"",
2572
+ "attribute": "api-url",
2573
+ "inheritedFrom": {
2574
+ "name": "PatientCodeSearchFormBase",
2575
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2576
+ }
2577
+ },
2578
+ {
2579
+ "kind": "field",
2580
+ "name": "options",
2581
+ "type": {
2582
+ "text": "ISelectOption[]"
2583
+ },
2584
+ "privacy": "protected",
2585
+ "default": "[]",
2586
+ "inheritedFrom": {
2587
+ "name": "PatientCodeSearchFormBase",
2588
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2589
+ }
2590
+ },
2591
+ {
2592
+ "kind": "field",
2593
+ "name": "selected",
2594
+ "type": {
2595
+ "text": "ISelectOption[]"
2596
+ },
2597
+ "privacy": "protected",
2598
+ "default": "[]",
2599
+ "inheritedFrom": {
2600
+ "name": "PatientCodeSearchFormBase",
2601
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2602
+ }
2603
+ },
2604
+ {
2605
+ "kind": "field",
2606
+ "name": "apiErrorMessage",
2607
+ "type": {
2608
+ "text": "string"
2609
+ },
2610
+ "privacy": "protected",
2611
+ "default": "\"\"",
2612
+ "inheritedFrom": {
2613
+ "name": "PatientCodeSearchFormBase",
2614
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2615
+ }
2616
+ },
2617
+ {
2618
+ "kind": "method",
2619
+ "name": "apiReturnToSelectOption",
2620
+ "privacy": "protected",
2621
+ "return": {
2622
+ "type": {
2623
+ "text": "ISelectOption"
2624
+ }
2625
+ },
2626
+ "parameters": [
2627
+ {
2628
+ "name": "item",
2629
+ "type": {
2630
+ "text": "IApiReturn"
2631
+ }
2632
+ }
2633
+ ],
2634
+ "inheritedFrom": {
2635
+ "name": "PatientCodeSearchFormBase",
2636
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2637
+ }
2638
+ },
2639
+ {
2640
+ "kind": "method",
2641
+ "name": "handleSearch",
2642
+ "privacy": "protected",
2643
+ "return": {
2644
+ "type": {
2645
+ "text": "void"
2646
+ }
2647
+ },
2648
+ "parameters": [
2649
+ {
2650
+ "name": "event",
2651
+ "type": {
2652
+ "text": "CustomEvent"
2653
+ }
2654
+ }
2655
+ ],
2656
+ "inheritedFrom": {
2657
+ "name": "PatientCodeSearchFormBase",
2658
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2659
+ }
2660
+ },
2661
+ {
2662
+ "kind": "method",
2663
+ "name": "handleUpdateSelection",
2664
+ "privacy": "protected",
2665
+ "return": {
2666
+ "type": {
2667
+ "text": "void"
2668
+ }
2669
+ },
2670
+ "parameters": [
2671
+ {
2672
+ "name": "event",
2673
+ "type": {
2674
+ "text": "CustomEvent"
2675
+ }
2676
+ }
2677
+ ],
2678
+ "inheritedFrom": {
2679
+ "name": "PatientCodeSearchFormBase",
2680
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2681
+ }
2682
+ },
2683
+ {
2684
+ "kind": "method",
2685
+ "name": "getValue",
2686
+ "privacy": "public",
2687
+ "return": {
2688
+ "type": {
2689
+ "text": "ISelectOption[]"
2690
+ }
2691
+ },
2692
+ "inheritedFrom": {
2693
+ "name": "PatientCodeSearchFormBase",
2694
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2695
+ }
2696
+ }
2697
+ ],
2698
+ "superclass": {
2699
+ "name": "PatientCodeSearchFormBase",
2700
+ "module": "/src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base"
2701
+ },
2702
+ "tagName": "bcb-patient-allergies-form",
2703
+ "customElement": true,
2704
+ "attributes": [
2705
+ {
2706
+ "name": "patient-profile",
2707
+ "type": {
2708
+ "text": "Bundle | undefined"
2709
+ },
2710
+ "fieldName": "patientProfile",
2711
+ "inheritedFrom": {
2712
+ "name": "PatientCodeSearchFormBase",
2713
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2714
+ }
2715
+ },
2716
+ {
2717
+ "name": "api-url",
2718
+ "type": {
2719
+ "text": "string"
2720
+ },
2721
+ "default": "\"https://api-dev.claudebernard.fr\"",
2722
+ "fieldName": "apiUrl",
2723
+ "inheritedFrom": {
2724
+ "name": "PatientCodeSearchFormBase",
2725
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2726
+ }
2727
+ }
2728
+ ]
2729
+ }
2730
+ ],
2731
+ "exports": [
2829
2732
  {
2830
2733
  "kind": "js",
2831
- "name": "setCreatinineByUmolL",
2734
+ "name": "PatientAllergiesForm",
2832
2735
  "declaration": {
2833
- "name": "setCreatinineByUmolL",
2834
- "module": "src/shared/utils/patient-fhir-utils.ts"
2736
+ "name": "PatientAllergiesForm",
2737
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-allergies-form.ts"
2835
2738
  }
2836
2739
  },
2740
+ {
2741
+ "kind": "custom-element-definition",
2742
+ "name": "bcb-patient-allergies-form",
2743
+ "declaration": {
2744
+ "name": "PatientAllergiesForm",
2745
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-allergies-form.ts"
2746
+ }
2747
+ }
2748
+ ]
2749
+ },
2750
+ {
2751
+ "kind": "javascript-module",
2752
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts",
2753
+ "declarations": [
2754
+ {
2755
+ "kind": "class",
2756
+ "description": "Base commune aux sous-formulaires de recherche/sélection de codes (pathologies, allergies) :\nfactorise la recherche via l'API, la gestion de la sélection multiple, et l'exposition\nde la valeur courante. Chaque sous-classe fournit l'extraction initiale depuis le\nprofil patient et la fonction de recherche à utiliser.",
2757
+ "name": "PatientCodeSearchFormBase",
2758
+ "members": [
2759
+ {
2760
+ "kind": "field",
2761
+ "name": "patientProfile",
2762
+ "type": {
2763
+ "text": "Bundle | undefined"
2764
+ },
2765
+ "attribute": "patient-profile"
2766
+ },
2767
+ {
2768
+ "kind": "field",
2769
+ "name": "apiUrl",
2770
+ "type": {
2771
+ "text": "string"
2772
+ },
2773
+ "default": "\"https://api-dev.claudebernard.fr\"",
2774
+ "attribute": "api-url"
2775
+ },
2776
+ {
2777
+ "kind": "field",
2778
+ "name": "options",
2779
+ "type": {
2780
+ "text": "ISelectOption[]"
2781
+ },
2782
+ "privacy": "protected",
2783
+ "default": "[]"
2784
+ },
2785
+ {
2786
+ "kind": "field",
2787
+ "name": "selected",
2788
+ "type": {
2789
+ "text": "ISelectOption[]"
2790
+ },
2791
+ "privacy": "protected",
2792
+ "default": "[]"
2793
+ },
2794
+ {
2795
+ "kind": "field",
2796
+ "name": "apiErrorMessage",
2797
+ "type": {
2798
+ "text": "string"
2799
+ },
2800
+ "privacy": "protected",
2801
+ "default": "\"\""
2802
+ },
2803
+ {
2804
+ "kind": "field",
2805
+ "name": "searchErrorMessage",
2806
+ "type": {
2807
+ "text": "string"
2808
+ },
2809
+ "privacy": "protected",
2810
+ "readonly": true
2811
+ },
2812
+ {
2813
+ "kind": "method",
2814
+ "name": "extractInitialSelection",
2815
+ "privacy": "protected",
2816
+ "return": {
2817
+ "type": {
2818
+ "text": "ISelectOption[]"
2819
+ }
2820
+ },
2821
+ "parameters": [
2822
+ {
2823
+ "name": "patientProfile",
2824
+ "type": {
2825
+ "text": "Bundle | undefined"
2826
+ }
2827
+ }
2828
+ ]
2829
+ },
2830
+ {
2831
+ "kind": "method",
2832
+ "name": "search",
2833
+ "privacy": "protected",
2834
+ "return": {
2835
+ "type": {
2836
+ "text": "Promise<ISelectOption[]>"
2837
+ }
2838
+ },
2839
+ "parameters": [
2840
+ {
2841
+ "name": "term",
2842
+ "type": {
2843
+ "text": "string"
2844
+ }
2845
+ }
2846
+ ]
2847
+ },
2848
+ {
2849
+ "kind": "method",
2850
+ "name": "apiReturnToSelectOption",
2851
+ "privacy": "protected",
2852
+ "return": {
2853
+ "type": {
2854
+ "text": "ISelectOption"
2855
+ }
2856
+ },
2857
+ "parameters": [
2858
+ {
2859
+ "name": "item",
2860
+ "type": {
2861
+ "text": "IApiReturn"
2862
+ }
2863
+ }
2864
+ ]
2865
+ },
2866
+ {
2867
+ "kind": "method",
2868
+ "name": "handleSearch",
2869
+ "privacy": "protected",
2870
+ "return": {
2871
+ "type": {
2872
+ "text": "void"
2873
+ }
2874
+ },
2875
+ "parameters": [
2876
+ {
2877
+ "name": "event",
2878
+ "type": {
2879
+ "text": "CustomEvent"
2880
+ }
2881
+ }
2882
+ ]
2883
+ },
2884
+ {
2885
+ "kind": "method",
2886
+ "name": "handleUpdateSelection",
2887
+ "privacy": "protected",
2888
+ "return": {
2889
+ "type": {
2890
+ "text": "void"
2891
+ }
2892
+ },
2893
+ "parameters": [
2894
+ {
2895
+ "name": "event",
2896
+ "type": {
2897
+ "text": "CustomEvent"
2898
+ }
2899
+ }
2900
+ ]
2901
+ },
2902
+ {
2903
+ "kind": "method",
2904
+ "name": "getValue",
2905
+ "privacy": "public",
2906
+ "return": {
2907
+ "type": {
2908
+ "text": "ISelectOption[]"
2909
+ }
2910
+ }
2911
+ }
2912
+ ],
2913
+ "attributes": [
2914
+ {
2915
+ "name": "patient-profile",
2916
+ "type": {
2917
+ "text": "Bundle | undefined"
2918
+ },
2919
+ "fieldName": "patientProfile"
2920
+ },
2921
+ {
2922
+ "name": "api-url",
2923
+ "type": {
2924
+ "text": "string"
2925
+ },
2926
+ "default": "\"https://api-dev.claudebernard.fr\"",
2927
+ "fieldName": "apiUrl"
2928
+ }
2929
+ ],
2930
+ "superclass": {
2931
+ "name": "LitElement",
2932
+ "package": "lit"
2933
+ },
2934
+ "customElement": true
2935
+ }
2936
+ ],
2937
+ "exports": [
2837
2938
  {
2838
2939
  "kind": "js",
2839
- "name": "getPatientHepaticInsufficiencyScore",
2940
+ "name": "PatientCodeSearchFormBase",
2840
2941
  "declaration": {
2841
- "name": "getPatientHepaticInsufficiencyScore",
2842
- "module": "src/shared/utils/patient-fhir-utils.ts"
2942
+ "name": "PatientCodeSearchFormBase",
2943
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
2843
2944
  }
2844
- },
2945
+ }
2946
+ ]
2947
+ },
2948
+ {
2949
+ "kind": "javascript-module",
2950
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-demographics-form.ts",
2951
+ "declarations": [
2845
2952
  {
2846
- "kind": "js",
2847
- "name": "getPatientHepaticInsufficiencyStade",
2848
- "declaration": {
2849
- "name": "getPatientHepaticInsufficiencyStade",
2850
- "module": "src/shared/utils/patient-fhir-utils.ts"
2851
- }
2852
- },
2953
+ "kind": "class",
2954
+ "description": "Sous-formulaire de la modale d'édition du profil patient : identité, sexe, date de\nnaissance/âge, taille, poids et IMC.\n\nÉmet un événement `demographics-change` à chaque modification impactant l'affichage\nde la section grossesse/allaitement (`isPregnancyEligible`) ou nécessitant un recalcul\nrénal (`triggerRenalRecalculation`), ainsi que l'état de validité courant (`hasError`).",
2955
+ "name": "PatientDemographicsForm",
2956
+ "members": [
2957
+ {
2958
+ "kind": "field",
2959
+ "name": "patientProfile",
2960
+ "type": {
2961
+ "text": "Bundle | undefined"
2962
+ },
2963
+ "attribute": "patient-profile"
2964
+ },
2965
+ {
2966
+ "kind": "field",
2967
+ "name": "preferences",
2968
+ "type": {
2969
+ "text": "PatientProfilePreferences | undefined"
2970
+ },
2971
+ "attribute": "preferences"
2972
+ },
2973
+ {
2974
+ "kind": "field",
2975
+ "name": "isAgeDisplay",
2976
+ "type": {
2977
+ "text": "boolean"
2978
+ },
2979
+ "privacy": "private",
2980
+ "readonly": true
2981
+ },
2982
+ {
2983
+ "kind": "field",
2984
+ "name": "isAgeReadOnly",
2985
+ "type": {
2986
+ "text": "boolean"
2987
+ },
2988
+ "privacy": "private",
2989
+ "readonly": true
2990
+ },
2991
+ {
2992
+ "kind": "field",
2993
+ "name": "isSexeDisplay",
2994
+ "type": {
2995
+ "text": "boolean"
2996
+ },
2997
+ "privacy": "private",
2998
+ "readonly": true
2999
+ },
3000
+ {
3001
+ "kind": "field",
3002
+ "name": "isSexeReadOnly",
3003
+ "type": {
3004
+ "text": "boolean"
3005
+ },
3006
+ "privacy": "private",
3007
+ "readonly": true
3008
+ },
3009
+ {
3010
+ "kind": "field",
3011
+ "name": "patientBirthDate",
3012
+ "type": {
3013
+ "text": "string"
3014
+ },
3015
+ "default": "\"\""
3016
+ },
3017
+ {
3018
+ "kind": "field",
3019
+ "name": "patientAgeValue",
3020
+ "type": {
3021
+ "text": "number | undefined"
3022
+ },
3023
+ "default": "undefined"
3024
+ },
3025
+ {
3026
+ "kind": "field",
3027
+ "name": "patientUnitAge",
3028
+ "type": {
3029
+ "text": "\"ans\" | \"mois\""
3030
+ },
3031
+ "default": "\"ans\""
3032
+ },
3033
+ {
3034
+ "kind": "field",
3035
+ "name": "patientAge",
3036
+ "type": {
3037
+ "text": "string"
3038
+ },
3039
+ "privacy": "private",
3040
+ "readonly": true
3041
+ },
3042
+ {
3043
+ "kind": "field",
3044
+ "name": "defaultPatientSex",
3045
+ "type": {
3046
+ "text": "{ value?: string; label?: string }"
3047
+ },
3048
+ "default": "{}"
3049
+ },
3050
+ {
3051
+ "kind": "field",
3052
+ "name": "ageErrorMessageInput",
3053
+ "type": {
3054
+ "text": "string"
3055
+ },
3056
+ "default": "\"\""
3057
+ },
3058
+ {
3059
+ "kind": "field",
3060
+ "name": "sizeErrorMessageInput",
3061
+ "type": {
3062
+ "text": "string"
3063
+ },
3064
+ "default": "\"\""
3065
+ },
3066
+ {
3067
+ "kind": "field",
3068
+ "name": "weightErrorMessageInput",
3069
+ "type": {
3070
+ "text": "string"
3071
+ },
3072
+ "default": "\"\""
3073
+ },
3074
+ {
3075
+ "kind": "field",
3076
+ "name": "imc",
3077
+ "type": {
3078
+ "text": "number"
3079
+ },
3080
+ "default": "0"
3081
+ },
3082
+ {
3083
+ "kind": "field",
3084
+ "name": "sizeInput",
3085
+ "type": {
3086
+ "text": "HTMLElement & { value: string }"
3087
+ },
3088
+ "privacy": "private"
3089
+ },
3090
+ {
3091
+ "kind": "field",
3092
+ "name": "ageInputText",
3093
+ "type": {
3094
+ "text": "HTMLElement & { value: string }"
3095
+ },
3096
+ "privacy": "private"
3097
+ },
3098
+ {
3099
+ "kind": "field",
3100
+ "name": "birthDateInput",
3101
+ "type": {
3102
+ "text": "HTMLElement & { value: string }"
3103
+ },
3104
+ "privacy": "private"
3105
+ },
3106
+ {
3107
+ "kind": "field",
3108
+ "name": "weightInput",
3109
+ "type": {
3110
+ "text": "HTMLElement & { value: string }"
3111
+ },
3112
+ "privacy": "private"
3113
+ },
3114
+ {
3115
+ "kind": "field",
3116
+ "name": "genderSelect",
3117
+ "type": {
3118
+ "text": "HTMLElement & { value: string }"
3119
+ },
3120
+ "privacy": "private"
3121
+ },
3122
+ {
3123
+ "kind": "field",
3124
+ "name": "isPregnancyAge",
3125
+ "type": {
3126
+ "text": "boolean"
3127
+ },
3128
+ "privacy": "private",
3129
+ "readonly": true
3130
+ },
3131
+ {
3132
+ "kind": "method",
3133
+ "name": "emitChange",
3134
+ "privacy": "private",
3135
+ "return": {
3136
+ "type": {
3137
+ "text": "void"
3138
+ }
3139
+ },
3140
+ "parameters": [
3141
+ {
3142
+ "name": "isPregnancyEligible",
3143
+ "type": {
3144
+ "text": "boolean"
3145
+ }
3146
+ },
3147
+ {
3148
+ "name": "triggerRenalRecalculation",
3149
+ "type": {
3150
+ "text": "boolean"
3151
+ }
3152
+ }
3153
+ ]
3154
+ },
3155
+ {
3156
+ "kind": "method",
3157
+ "name": "getPatientSexFromProfile",
3158
+ "privacy": "private"
3159
+ },
3160
+ {
3161
+ "kind": "method",
3162
+ "name": "resetFromProfile",
3163
+ "privacy": "private",
3164
+ "return": {
3165
+ "type": {
3166
+ "text": "void"
3167
+ }
3168
+ }
3169
+ },
3170
+ {
3171
+ "kind": "method",
3172
+ "name": "getAgeErrorMessage",
3173
+ "privacy": "private",
3174
+ "return": {
3175
+ "type": {
3176
+ "text": "string"
3177
+ }
3178
+ },
3179
+ "parameters": [
3180
+ {
3181
+ "name": "age",
3182
+ "type": {
3183
+ "text": "number"
3184
+ }
3185
+ }
3186
+ ]
3187
+ },
3188
+ {
3189
+ "kind": "method",
3190
+ "name": "modifyGender",
3191
+ "privacy": "private",
3192
+ "return": {
3193
+ "type": {
3194
+ "text": "void"
3195
+ }
3196
+ }
3197
+ },
3198
+ {
3199
+ "kind": "method",
3200
+ "name": "verifyAgeInput",
3201
+ "privacy": "private",
3202
+ "return": {
3203
+ "type": {
3204
+ "text": "void"
3205
+ }
3206
+ }
3207
+ },
3208
+ {
3209
+ "kind": "method",
3210
+ "name": "verifySizeInput",
3211
+ "privacy": "private",
3212
+ "return": {
3213
+ "type": {
3214
+ "text": "void"
3215
+ }
3216
+ }
3217
+ },
3218
+ {
3219
+ "kind": "method",
3220
+ "name": "verifyWeightInput",
3221
+ "privacy": "private",
3222
+ "return": {
3223
+ "type": {
3224
+ "text": "void"
3225
+ }
3226
+ }
3227
+ },
3228
+ {
3229
+ "kind": "method",
3230
+ "name": "getValue",
3231
+ "privacy": "public",
3232
+ "return": {
3233
+ "type": {
3234
+ "text": "PatientDemographicsValue"
3235
+ }
3236
+ }
3237
+ }
3238
+ ],
3239
+ "events": [
3240
+ {
3241
+ "name": "demographics-change",
3242
+ "type": {
3243
+ "text": "CustomEvent"
3244
+ }
3245
+ }
3246
+ ],
3247
+ "attributes": [
3248
+ {
3249
+ "name": "patient-profile",
3250
+ "type": {
3251
+ "text": "Bundle | undefined"
3252
+ },
3253
+ "fieldName": "patientProfile"
3254
+ },
3255
+ {
3256
+ "name": "preferences",
3257
+ "type": {
3258
+ "text": "PatientProfilePreferences | undefined"
3259
+ },
3260
+ "fieldName": "preferences"
3261
+ }
3262
+ ],
3263
+ "superclass": {
3264
+ "name": "LitElement",
3265
+ "package": "lit"
3266
+ },
3267
+ "tagName": "bcb-patient-demographics-form",
3268
+ "customElement": true
3269
+ }
3270
+ ],
3271
+ "exports": [
2853
3272
  {
2854
3273
  "kind": "js",
2855
- "name": "setPatientHepaticInsufficiencyStatus",
3274
+ "name": "PatientDemographicsForm",
2856
3275
  "declaration": {
2857
- "name": "setPatientHepaticInsufficiencyStatus",
2858
- "module": "src/shared/utils/patient-fhir-utils.ts"
3276
+ "name": "PatientDemographicsForm",
3277
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-demographics-form.ts"
2859
3278
  }
2860
3279
  },
2861
3280
  {
2862
- "kind": "js",
2863
- "name": "deletePatientHepaticInsufficiencyStatus",
3281
+ "kind": "custom-element-definition",
3282
+ "name": "bcb-patient-demographics-form",
2864
3283
  "declaration": {
2865
- "name": "deletePatientHepaticInsufficiencyStatus",
2866
- "module": "src/shared/utils/patient-fhir-utils.ts"
3284
+ "name": "PatientDemographicsForm",
3285
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-demographics-form.ts"
2867
3286
  }
2868
- },
3287
+ }
3288
+ ]
3289
+ },
3290
+ {
3291
+ "kind": "javascript-module",
3292
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-hepatic-form.ts",
3293
+ "declarations": [
2869
3294
  {
2870
- "kind": "js",
2871
- "name": "getPatientConditions",
2872
- "declaration": {
2873
- "name": "getPatientConditions",
2874
- "module": "src/shared/utils/patient-fhir-utils.ts"
2875
- }
2876
- },
3295
+ "kind": "class",
3296
+ "description": "Sous-formulaire de la modale d'édition du profil patient : stade d'insuffisance\nhépatique (Child-Pugh).",
3297
+ "name": "PatientHepaticForm",
3298
+ "members": [
3299
+ {
3300
+ "kind": "field",
3301
+ "name": "patientProfile",
3302
+ "type": {
3303
+ "text": "Bundle | undefined"
3304
+ },
3305
+ "attribute": "patient-profile"
3306
+ },
3307
+ {
3308
+ "kind": "field",
3309
+ "name": "defaultHepaticStade",
3310
+ "type": {
3311
+ "text": "{ value?: string; label?: string }"
3312
+ },
3313
+ "default": "{}"
3314
+ },
3315
+ {
3316
+ "kind": "field",
3317
+ "name": "hepaticStadeSelect",
3318
+ "type": {
3319
+ "text": "HTMLElement & { value: string }"
3320
+ },
3321
+ "privacy": "private"
3322
+ },
3323
+ {
3324
+ "kind": "method",
3325
+ "name": "getPatientHepaticStadeFromProfile",
3326
+ "privacy": "private"
3327
+ },
3328
+ {
3329
+ "kind": "method",
3330
+ "name": "getValue",
3331
+ "privacy": "public",
3332
+ "return": {
3333
+ "type": {
3334
+ "text": "PatientHepaticValue"
3335
+ }
3336
+ }
3337
+ }
3338
+ ],
3339
+ "attributes": [
3340
+ {
3341
+ "name": "patient-profile",
3342
+ "type": {
3343
+ "text": "Bundle | undefined"
3344
+ },
3345
+ "fieldName": "patientProfile"
3346
+ }
3347
+ ],
3348
+ "superclass": {
3349
+ "name": "LitElement",
3350
+ "package": "lit"
3351
+ },
3352
+ "tagName": "bcb-patient-hepatic-form",
3353
+ "customElement": true
3354
+ }
3355
+ ],
3356
+ "exports": [
2877
3357
  {
2878
3358
  "kind": "js",
2879
- "name": "getPatientConditionsWithCode",
3359
+ "name": "PatientHepaticForm",
2880
3360
  "declaration": {
2881
- "name": "getPatientConditionsWithCode",
2882
- "module": "src/shared/utils/patient-fhir-utils.ts"
3361
+ "name": "PatientHepaticForm",
3362
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-hepatic-form.ts"
2883
3363
  }
2884
3364
  },
2885
3365
  {
2886
- "kind": "js",
2887
- "name": "setPatientConditions",
3366
+ "kind": "custom-element-definition",
3367
+ "name": "bcb-patient-hepatic-form",
2888
3368
  "declaration": {
2889
- "name": "setPatientConditions",
2890
- "module": "src/shared/utils/patient-fhir-utils.ts"
3369
+ "name": "PatientHepaticForm",
3370
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-hepatic-form.ts"
2891
3371
  }
2892
- },
3372
+ }
3373
+ ]
3374
+ },
3375
+ {
3376
+ "kind": "javascript-module",
3377
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-pathologies-form.ts",
3378
+ "declarations": [
2893
3379
  {
2894
- "kind": "js",
2895
- "name": "getPatientAllergies",
2896
- "declaration": {
2897
- "name": "getPatientAllergies",
2898
- "module": "src/shared/utils/patient-fhir-utils.ts"
2899
- }
2900
- },
3380
+ "kind": "class",
3381
+ "description": "Sous-formulaire de la modale d'édition du profil patient : pathologies suivies,\navec recherche via l'API de pathologies (filtrée par `preferences.typePathology`).",
3382
+ "name": "PatientPathologiesForm",
3383
+ "members": [
3384
+ {
3385
+ "kind": "field",
3386
+ "name": "preferences",
3387
+ "type": {
3388
+ "text": "PatientProfilePreferences | undefined"
3389
+ },
3390
+ "attribute": "preferences"
3391
+ },
3392
+ {
3393
+ "kind": "field",
3394
+ "name": "searchErrorMessage",
3395
+ "type": {
3396
+ "text": "string"
3397
+ },
3398
+ "privacy": "protected",
3399
+ "readonly": true,
3400
+ "inheritedFrom": {
3401
+ "name": "PatientCodeSearchFormBase",
3402
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3403
+ }
3404
+ },
3405
+ {
3406
+ "kind": "method",
3407
+ "name": "extractInitialSelection",
3408
+ "privacy": "protected",
3409
+ "return": {
3410
+ "type": {
3411
+ "text": "ISelectOption[]"
3412
+ }
3413
+ },
3414
+ "parameters": [
3415
+ {
3416
+ "name": "patientProfile",
3417
+ "type": {
3418
+ "text": "Bundle | undefined"
3419
+ }
3420
+ }
3421
+ ],
3422
+ "inheritedFrom": {
3423
+ "name": "PatientCodeSearchFormBase",
3424
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3425
+ }
3426
+ },
3427
+ {
3428
+ "kind": "method",
3429
+ "name": "search",
3430
+ "privacy": "protected",
3431
+ "return": {
3432
+ "type": {
3433
+ "text": "Promise<ISelectOption[]>"
3434
+ }
3435
+ },
3436
+ "parameters": [
3437
+ {
3438
+ "name": "term",
3439
+ "type": {
3440
+ "text": "string"
3441
+ }
3442
+ }
3443
+ ],
3444
+ "inheritedFrom": {
3445
+ "name": "PatientCodeSearchFormBase",
3446
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3447
+ }
3448
+ },
3449
+ {
3450
+ "kind": "field",
3451
+ "name": "patientProfile",
3452
+ "type": {
3453
+ "text": "Bundle | undefined"
3454
+ },
3455
+ "attribute": "patient-profile",
3456
+ "inheritedFrom": {
3457
+ "name": "PatientCodeSearchFormBase",
3458
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3459
+ }
3460
+ },
3461
+ {
3462
+ "kind": "field",
3463
+ "name": "apiUrl",
3464
+ "type": {
3465
+ "text": "string"
3466
+ },
3467
+ "default": "\"https://api-dev.claudebernard.fr\"",
3468
+ "attribute": "api-url",
3469
+ "inheritedFrom": {
3470
+ "name": "PatientCodeSearchFormBase",
3471
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3472
+ }
3473
+ },
3474
+ {
3475
+ "kind": "field",
3476
+ "name": "options",
3477
+ "type": {
3478
+ "text": "ISelectOption[]"
3479
+ },
3480
+ "privacy": "protected",
3481
+ "default": "[]",
3482
+ "inheritedFrom": {
3483
+ "name": "PatientCodeSearchFormBase",
3484
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3485
+ }
3486
+ },
3487
+ {
3488
+ "kind": "field",
3489
+ "name": "selected",
3490
+ "type": {
3491
+ "text": "ISelectOption[]"
3492
+ },
3493
+ "privacy": "protected",
3494
+ "default": "[]",
3495
+ "inheritedFrom": {
3496
+ "name": "PatientCodeSearchFormBase",
3497
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3498
+ }
3499
+ },
3500
+ {
3501
+ "kind": "field",
3502
+ "name": "apiErrorMessage",
3503
+ "type": {
3504
+ "text": "string"
3505
+ },
3506
+ "privacy": "protected",
3507
+ "default": "\"\"",
3508
+ "inheritedFrom": {
3509
+ "name": "PatientCodeSearchFormBase",
3510
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3511
+ }
3512
+ },
3513
+ {
3514
+ "kind": "method",
3515
+ "name": "apiReturnToSelectOption",
3516
+ "privacy": "protected",
3517
+ "return": {
3518
+ "type": {
3519
+ "text": "ISelectOption"
3520
+ }
3521
+ },
3522
+ "parameters": [
3523
+ {
3524
+ "name": "item",
3525
+ "type": {
3526
+ "text": "IApiReturn"
3527
+ }
3528
+ }
3529
+ ],
3530
+ "inheritedFrom": {
3531
+ "name": "PatientCodeSearchFormBase",
3532
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3533
+ }
3534
+ },
3535
+ {
3536
+ "kind": "method",
3537
+ "name": "handleSearch",
3538
+ "privacy": "protected",
3539
+ "return": {
3540
+ "type": {
3541
+ "text": "void"
3542
+ }
3543
+ },
3544
+ "parameters": [
3545
+ {
3546
+ "name": "event",
3547
+ "type": {
3548
+ "text": "CustomEvent"
3549
+ }
3550
+ }
3551
+ ],
3552
+ "inheritedFrom": {
3553
+ "name": "PatientCodeSearchFormBase",
3554
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3555
+ }
3556
+ },
3557
+ {
3558
+ "kind": "method",
3559
+ "name": "handleUpdateSelection",
3560
+ "privacy": "protected",
3561
+ "return": {
3562
+ "type": {
3563
+ "text": "void"
3564
+ }
3565
+ },
3566
+ "parameters": [
3567
+ {
3568
+ "name": "event",
3569
+ "type": {
3570
+ "text": "CustomEvent"
3571
+ }
3572
+ }
3573
+ ],
3574
+ "inheritedFrom": {
3575
+ "name": "PatientCodeSearchFormBase",
3576
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3577
+ }
3578
+ },
3579
+ {
3580
+ "kind": "method",
3581
+ "name": "getValue",
3582
+ "privacy": "public",
3583
+ "return": {
3584
+ "type": {
3585
+ "text": "ISelectOption[]"
3586
+ }
3587
+ },
3588
+ "inheritedFrom": {
3589
+ "name": "PatientCodeSearchFormBase",
3590
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3591
+ }
3592
+ }
3593
+ ],
3594
+ "attributes": [
3595
+ {
3596
+ "name": "preferences",
3597
+ "type": {
3598
+ "text": "PatientProfilePreferences | undefined"
3599
+ },
3600
+ "fieldName": "preferences"
3601
+ },
3602
+ {
3603
+ "name": "patient-profile",
3604
+ "type": {
3605
+ "text": "Bundle | undefined"
3606
+ },
3607
+ "fieldName": "patientProfile",
3608
+ "inheritedFrom": {
3609
+ "name": "PatientCodeSearchFormBase",
3610
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3611
+ }
3612
+ },
3613
+ {
3614
+ "name": "api-url",
3615
+ "type": {
3616
+ "text": "string"
3617
+ },
3618
+ "default": "\"https://api-dev.claudebernard.fr\"",
3619
+ "fieldName": "apiUrl",
3620
+ "inheritedFrom": {
3621
+ "name": "PatientCodeSearchFormBase",
3622
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base.ts"
3623
+ }
3624
+ }
3625
+ ],
3626
+ "superclass": {
3627
+ "name": "PatientCodeSearchFormBase",
3628
+ "module": "/src/patient-profile/patient-profile-edition/forms/patient-code-search-form-base"
3629
+ },
3630
+ "tagName": "bcb-patient-pathologies-form",
3631
+ "customElement": true
3632
+ }
3633
+ ],
3634
+ "exports": [
2901
3635
  {
2902
3636
  "kind": "js",
2903
- "name": "getPatientAllergiesWithCode",
3637
+ "name": "PatientPathologiesForm",
2904
3638
  "declaration": {
2905
- "name": "getPatientAllergiesWithCode",
2906
- "module": "src/shared/utils/patient-fhir-utils.ts"
3639
+ "name": "PatientPathologiesForm",
3640
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-pathologies-form.ts"
2907
3641
  }
2908
3642
  },
2909
3643
  {
2910
- "kind": "js",
2911
- "name": "setPatientAllergies",
3644
+ "kind": "custom-element-definition",
3645
+ "name": "bcb-patient-pathologies-form",
2912
3646
  "declaration": {
2913
- "name": "setPatientAllergies",
2914
- "module": "src/shared/utils/patient-fhir-utils.ts"
3647
+ "name": "PatientPathologiesForm",
3648
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-pathologies-form.ts"
2915
3649
  }
2916
- },
3650
+ }
3651
+ ]
3652
+ },
3653
+ {
3654
+ "kind": "javascript-module",
3655
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-renal-form.ts",
3656
+ "declarations": [
2917
3657
  {
2918
- "kind": "js",
2919
- "name": "getPatientAdverseEvents",
2920
- "declaration": {
2921
- "name": "getPatientAdverseEvents",
2922
- "module": "src/shared/utils/patient-fhir-utils.ts"
2923
- }
2924
- },
3658
+ "kind": "class",
3659
+ "description": "Sous-formulaire de la modale d'édition du profil patient : insuffisance rénale\n(créatininémie, clairance, DFG), avec conversion croisée via l'API prescription.\n\nExpose `recalculate()`, appelée par le parent lorsque l'âge, le sexe ou le poids\nchangent dans `bcb-patient-demographics-form`, pour rejouer la conversion sur le\nchamp actuellement renseigné (comportement identique à l'ancien composant monolithique).",
3660
+ "name": "PatientRenalForm",
3661
+ "members": [
3662
+ {
3663
+ "kind": "field",
3664
+ "name": "patientProfile",
3665
+ "type": {
3666
+ "text": "Bundle | undefined"
3667
+ },
3668
+ "attribute": "patient-profile"
3669
+ },
3670
+ {
3671
+ "kind": "field",
3672
+ "name": "apiUrl",
3673
+ "type": {
3674
+ "text": "string"
3675
+ },
3676
+ "default": "\"https://api-dev.claudebernard.fr\"",
3677
+ "attribute": "api-url"
3678
+ },
3679
+ {
3680
+ "kind": "field",
3681
+ "name": "demographics",
3682
+ "type": {
3683
+ "text": "PatientDemographicsValue | undefined"
3684
+ },
3685
+ "attribute": "demographics"
3686
+ },
3687
+ {
3688
+ "kind": "field",
3689
+ "name": "creatinineByMg",
3690
+ "type": {
3691
+ "text": "number"
3692
+ },
3693
+ "default": "0"
3694
+ },
3695
+ {
3696
+ "kind": "field",
3697
+ "name": "creatinineByUmol",
3698
+ "type": {
3699
+ "text": "number"
3700
+ },
3701
+ "default": "0"
3702
+ },
3703
+ {
3704
+ "kind": "field",
3705
+ "name": "clairanceCreatinine",
3706
+ "type": {
3707
+ "text": "number"
3708
+ },
3709
+ "default": "0"
3710
+ },
3711
+ {
3712
+ "kind": "field",
3713
+ "name": "dfg",
3714
+ "type": {
3715
+ "text": "number"
3716
+ },
3717
+ "default": "0"
3718
+ },
3719
+ {
3720
+ "kind": "field",
3721
+ "name": "renalLackInformationErrorMessage",
3722
+ "type": {
3723
+ "text": "string"
3724
+ },
3725
+ "default": "\"\""
3726
+ },
3727
+ {
3728
+ "kind": "field",
3729
+ "name": "creatinineUmolInput",
3730
+ "type": {
3731
+ "text": "HTMLElement & { value: string }"
3732
+ },
3733
+ "privacy": "private"
3734
+ },
3735
+ {
3736
+ "kind": "field",
3737
+ "name": "creatinineMgLInput",
3738
+ "type": {
3739
+ "text": "HTMLElement & { value: string }"
3740
+ },
3741
+ "privacy": "private"
3742
+ },
3743
+ {
3744
+ "kind": "field",
3745
+ "name": "clairanceCreatinineInput",
3746
+ "type": {
3747
+ "text": "HTMLElement & { value: string }"
3748
+ },
3749
+ "privacy": "private"
3750
+ },
3751
+ {
3752
+ "kind": "field",
3753
+ "name": "dfgInput",
3754
+ "type": {
3755
+ "text": "HTMLElement & { value: string }"
3756
+ },
3757
+ "privacy": "private"
3758
+ },
3759
+ {
3760
+ "kind": "method",
3761
+ "name": "resetFromProfile",
3762
+ "privacy": "private",
3763
+ "return": {
3764
+ "type": {
3765
+ "text": "void"
3766
+ }
3767
+ }
3768
+ },
3769
+ {
3770
+ "kind": "method",
3771
+ "name": "buildConversionPatient",
3772
+ "privacy": "private",
3773
+ "return": {
3774
+ "type": {
3775
+ "text": "Bundle | undefined"
3776
+ }
3777
+ }
3778
+ },
3779
+ {
3780
+ "kind": "method",
3781
+ "name": "handleRenalConversion",
3782
+ "privacy": "private",
3783
+ "return": {
3784
+ "type": {
3785
+ "text": "Promise<void>"
3786
+ }
3787
+ },
3788
+ "parameters": [
3789
+ {
3790
+ "name": "type",
3791
+ "type": {
3792
+ "text": "number"
3793
+ }
3794
+ },
3795
+ {
3796
+ "name": "value",
3797
+ "type": {
3798
+ "text": "number"
3799
+ }
3800
+ }
3801
+ ]
3802
+ },
3803
+ {
3804
+ "kind": "method",
3805
+ "name": "recalculate",
3806
+ "privacy": "public",
3807
+ "return": {
3808
+ "type": {
3809
+ "text": "void"
3810
+ }
3811
+ }
3812
+ },
3813
+ {
3814
+ "kind": "method",
3815
+ "name": "getValue",
3816
+ "privacy": "public",
3817
+ "return": {
3818
+ "type": {
3819
+ "text": "PatientRenalValue"
3820
+ }
3821
+ }
3822
+ }
3823
+ ],
3824
+ "attributes": [
3825
+ {
3826
+ "name": "patient-profile",
3827
+ "type": {
3828
+ "text": "Bundle | undefined"
3829
+ },
3830
+ "fieldName": "patientProfile"
3831
+ },
3832
+ {
3833
+ "name": "api-url",
3834
+ "type": {
3835
+ "text": "string"
3836
+ },
3837
+ "default": "\"https://api-dev.claudebernard.fr\"",
3838
+ "fieldName": "apiUrl"
3839
+ },
3840
+ {
3841
+ "name": "demographics",
3842
+ "type": {
3843
+ "text": "PatientDemographicsValue | undefined"
3844
+ },
3845
+ "fieldName": "demographics"
3846
+ }
3847
+ ],
3848
+ "superclass": {
3849
+ "name": "LitElement",
3850
+ "package": "lit"
3851
+ },
3852
+ "tagName": "bcb-patient-renal-form",
3853
+ "customElement": true
3854
+ }
3855
+ ],
3856
+ "exports": [
2925
3857
  {
2926
3858
  "kind": "js",
2927
- "name": "getPatientDemographics",
3859
+ "name": "PatientRenalForm",
2928
3860
  "declaration": {
2929
- "name": "getPatientDemographics",
2930
- "module": "src/shared/utils/patient-fhir-utils.ts"
3861
+ "name": "PatientRenalForm",
3862
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-renal-form.ts"
2931
3863
  }
2932
3864
  },
2933
3865
  {
2934
- "kind": "js",
2935
- "name": "childPughScore",
3866
+ "kind": "custom-element-definition",
3867
+ "name": "bcb-patient-renal-form",
2936
3868
  "declaration": {
2937
- "name": "childPughScore",
2938
- "module": "src/shared/utils/patient-fhir-utils.ts"
3869
+ "name": "PatientRenalForm",
3870
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-renal-form.ts"
2939
3871
  }
2940
- },
3872
+ }
3873
+ ]
3874
+ },
3875
+ {
3876
+ "kind": "javascript-module",
3877
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-reproductive-form.ts",
3878
+ "declarations": [
2941
3879
  {
2942
- "kind": "js",
2943
- "name": "calculateGFRFromCreatinine",
2944
- "declaration": {
2945
- "name": "calculateGFRFromCreatinine",
2946
- "module": "src/shared/utils/patient-fhir-utils.ts"
2947
- }
2948
- },
3880
+ "kind": "class",
3881
+ "description": "Sous-formulaire de la modale d'édition du profil patient : grossesse et allaitement.\nSa visibilité est pilotée par le parent via la propriété `visible`\n(calculée à partir de l'âge et du sexe dans `bcb-patient-demographics-form`).",
3882
+ "name": "PatientReproductiveForm",
3883
+ "members": [
3884
+ {
3885
+ "kind": "field",
3886
+ "name": "patientProfile",
3887
+ "type": {
3888
+ "text": "Bundle | undefined"
3889
+ },
3890
+ "attribute": "patient-profile"
3891
+ },
3892
+ {
3893
+ "kind": "field",
3894
+ "name": "visible",
3895
+ "type": {
3896
+ "text": "boolean"
3897
+ },
3898
+ "default": "false",
3899
+ "attribute": "visible"
3900
+ },
3901
+ {
3902
+ "kind": "field",
3903
+ "name": "isPregnant",
3904
+ "type": {
3905
+ "text": "boolean"
3906
+ },
3907
+ "default": "false"
3908
+ },
3909
+ {
3910
+ "kind": "field",
3911
+ "name": "breastfeeding",
3912
+ "type": {
3913
+ "text": "boolean"
3914
+ },
3915
+ "default": "false"
3916
+ },
3917
+ {
3918
+ "kind": "field",
3919
+ "name": "gestationalWeeksInput",
3920
+ "type": {
3921
+ "text": "HTMLElement & { value: string }"
3922
+ },
3923
+ "privacy": "private"
3924
+ },
3925
+ {
3926
+ "kind": "method",
3927
+ "name": "handlePregnancy",
3928
+ "privacy": "private",
3929
+ "return": {
3930
+ "type": {
3931
+ "text": "void"
3932
+ }
3933
+ },
3934
+ "parameters": [
3935
+ {
3936
+ "name": "event",
3937
+ "type": {
3938
+ "text": "CustomEvent"
3939
+ }
3940
+ }
3941
+ ]
3942
+ },
3943
+ {
3944
+ "kind": "method",
3945
+ "name": "handleBreastfeeding",
3946
+ "privacy": "private",
3947
+ "return": {
3948
+ "type": {
3949
+ "text": "void"
3950
+ }
3951
+ },
3952
+ "parameters": [
3953
+ {
3954
+ "name": "event",
3955
+ "type": {
3956
+ "text": "CustomEvent"
3957
+ }
3958
+ }
3959
+ ]
3960
+ },
3961
+ {
3962
+ "kind": "method",
3963
+ "name": "getValue",
3964
+ "privacy": "public",
3965
+ "return": {
3966
+ "type": {
3967
+ "text": "PatientReproductiveValue"
3968
+ }
3969
+ }
3970
+ }
3971
+ ],
3972
+ "attributes": [
3973
+ {
3974
+ "name": "patient-profile",
3975
+ "type": {
3976
+ "text": "Bundle | undefined"
3977
+ },
3978
+ "fieldName": "patientProfile"
3979
+ },
3980
+ {
3981
+ "name": "visible",
3982
+ "type": {
3983
+ "text": "boolean"
3984
+ },
3985
+ "default": "false",
3986
+ "fieldName": "visible"
3987
+ }
3988
+ ],
3989
+ "superclass": {
3990
+ "name": "LitElement",
3991
+ "package": "lit"
3992
+ },
3993
+ "tagName": "bcb-patient-reproductive-form",
3994
+ "customElement": true
3995
+ }
3996
+ ],
3997
+ "exports": [
2949
3998
  {
2950
3999
  "kind": "js",
2951
- "name": "calculateCreatinineFromGFR",
4000
+ "name": "PatientReproductiveForm",
2952
4001
  "declaration": {
2953
- "name": "calculateCreatinineFromGFR",
2954
- "module": "src/shared/utils/patient-fhir-utils.ts"
4002
+ "name": "PatientReproductiveForm",
4003
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-reproductive-form.ts"
2955
4004
  }
2956
4005
  },
2957
4006
  {
2958
- "kind": "js",
2959
- "name": "getPatientMedicalInfo",
4007
+ "kind": "custom-element-definition",
4008
+ "name": "bcb-patient-reproductive-form",
2960
4009
  "declaration": {
2961
- "name": "getPatientMedicalInfo",
2962
- "module": "src/shared/utils/patient-fhir-utils.ts"
4010
+ "name": "PatientReproductiveForm",
4011
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-reproductive-form.ts"
2963
4012
  }
2964
4013
  }
2965
4014
  ]