@claudebernard/patient-profile-element 0.6.2 → 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.
@@ -149,7 +149,7 @@
149
149
  "type": {
150
150
  "text": "PatientProfilePreferences | undefined"
151
151
  },
152
- "default": "{ forms: { age: { display: true, readOnly: true }, sexe: { display: true, readOnly: true }, }, }",
152
+ "default": "{ forms: { age: { display: true, readOnly: false }, sexe: { display: true, readOnly: false }, }, }",
153
153
  "attribute": "preferences"
154
154
  },
155
155
  {
@@ -315,7 +315,7 @@
315
315
  "type": {
316
316
  "text": "PatientProfilePreferences | undefined"
317
317
  },
318
- "default": "{ forms: { age: { display: true, readOnly: true }, sexe: { display: true, readOnly: true }, }, }",
318
+ "default": "{ forms: { age: { display: true, readOnly: false }, sexe: { display: true, readOnly: false }, }, }",
319
319
  "fieldName": "preferences"
320
320
  }
321
321
  ],
@@ -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,625 +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": "patientAge",
468
- "type": {
469
- "text": "number"
470
- },
471
- "default": "0"
472
- },
473
- {
474
- "kind": "field",
475
- "name": "patientUnitAge",
476
- "type": {
477
- "text": "string"
478
- },
479
- "default": "\"ans\""
480
- },
481
- {
482
- "kind": "field",
483
- "name": "creatinineByMg",
484
- "type": {
485
- "text": "number"
486
- },
487
- "default": "0"
488
- },
489
- {
490
- "kind": "field",
491
- "name": "creatinineByUmol",
492
- "type": {
493
- "text": "number"
494
- },
495
- "default": "0"
496
- },
497
- {
498
- "kind": "field",
499
- "name": "clairanceCreatinine",
500
- "type": {
501
- "text": "number"
502
- },
503
- "default": "0"
445
+ "default": "false"
504
446
  },
505
447
  {
506
448
  "kind": "field",
507
- "name": "dfg",
449
+ "name": "resetKey",
508
450
  "type": {
509
451
  "text": "number"
510
452
  },
453
+ "privacy": "private",
511
454
  "default": "0"
512
455
  },
513
456
  {
514
457
  "kind": "field",
515
- "name": "defaultPatientUnitAge",
516
- "type": {
517
- "text": "{ value?: string; label?: string }"
518
- },
519
- "default": "{}"
520
- },
521
- {
522
- "kind": "field",
523
- "name": "defaultPatientSex",
524
- "type": {
525
- "text": "{ value?: string; label?: string }"
526
- },
527
- "default": "{}"
528
- },
529
- {
530
- "kind": "field",
531
- "name": "defaultHepaticStade",
532
- "type": {
533
- "text": "{ value?: string; label?: string }"
534
- },
535
- "default": "{}"
536
- },
537
- {
538
- "kind": "field",
539
- "name": "isPregnancyDivVisible",
540
- "type": {
541
- "text": "boolean"
542
- },
543
- "default": "false"
544
- },
545
- {
546
- "kind": "field",
547
- "name": "isPregnant",
548
- "type": {
549
- "text": "boolean"
550
- },
551
- "default": "false"
552
- },
553
- {
554
- "kind": "field",
555
- "name": "breastfeeding",
556
- "type": {
557
- "text": "boolean"
558
- },
559
- "default": "false"
560
- },
561
- {
562
- "kind": "field",
563
- "name": "ageErrorMessageInput",
564
- "type": {
565
- "text": "string"
566
- },
567
- "default": "\"\""
568
- },
569
- {
570
- "kind": "field",
571
- "name": "sizeErrorMessageInput",
458
+ "name": "editionModalElement",
572
459
  "type": {
573
- "text": "string"
460
+ "text": "HTMLElement & { open: () => void; close: () => void }"
574
461
  },
575
- "default": "\"\""
462
+ "privacy": "private"
576
463
  },
577
464
  {
578
465
  "kind": "field",
579
- "name": "weightErrorMessageInput",
466
+ "name": "demographicsForm",
580
467
  "type": {
581
- "text": "string"
468
+ "text": "PatientDemographicsForm"
582
469
  },
583
- "default": "\"\""
470
+ "privacy": "private"
584
471
  },
585
472
  {
586
473
  "kind": "field",
587
- "name": "pathologiesApiErrorMessage",
474
+ "name": "reproductiveForm",
588
475
  "type": {
589
- "text": "string"
476
+ "text": "PatientReproductiveForm"
590
477
  },
591
- "default": "\"\""
478
+ "privacy": "private"
592
479
  },
593
480
  {
594
481
  "kind": "field",
595
- "name": "allergiesApiErrorMessage",
482
+ "name": "pathologiesForm",
596
483
  "type": {
597
- "text": "string"
484
+ "text": "PatientPathologiesForm"
598
485
  },
599
- "default": "\"\""
486
+ "privacy": "private"
600
487
  },
601
488
  {
602
489
  "kind": "field",
603
- "name": "renalLackInformationErrorMessage",
490
+ "name": "allergiesForm",
604
491
  "type": {
605
- "text": "string"
492
+ "text": "PatientAllergiesForm"
606
493
  },
607
- "default": "\"\""
494
+ "privacy": "private"
608
495
  },
609
496
  {
610
497
  "kind": "field",
611
- "name": "pathologyOptions",
498
+ "name": "renalForm",
612
499
  "type": {
613
- "text": "ISelectOption[]"
500
+ "text": "PatientRenalForm"
614
501
  },
615
- "default": "[]"
502
+ "privacy": "private"
616
503
  },
617
504
  {
618
505
  "kind": "field",
619
- "name": "allergyOptions",
506
+ "name": "hepaticForm",
620
507
  "type": {
621
- "text": "ISelectOption[]"
508
+ "text": "PatientHepaticForm"
622
509
  },
623
- "default": "[]"
510
+ "privacy": "private"
624
511
  },
625
512
  {
626
- "kind": "field",
627
- "name": "selectedPathologyOptions",
628
- "type": {
629
- "text": "ISelectOption[]"
630
- },
631
- "default": "[]"
513
+ "kind": "method",
514
+ "name": "open",
515
+ "privacy": "public",
516
+ "return": {
517
+ "type": {
518
+ "text": "void"
519
+ }
520
+ }
632
521
  },
633
522
  {
634
- "kind": "field",
635
- "name": "selectedAllergyOptions",
636
- "type": {
637
- "text": "ISelectOption[]"
638
- },
639
- "default": "[]"
523
+ "kind": "method",
524
+ "name": "handleCancel",
525
+ "privacy": "private",
526
+ "return": {
527
+ "type": {
528
+ "text": "void"
529
+ }
530
+ }
640
531
  },
641
532
  {
642
- "kind": "field",
643
- "name": "imc",
644
- "type": {
645
- "text": "number"
533
+ "kind": "method",
534
+ "name": "handleDemographicsChange",
535
+ "privacy": "private",
536
+ "return": {
537
+ "type": {
538
+ "text": "void"
539
+ }
646
540
  },
647
- "default": "0"
541
+ "parameters": [
542
+ {
543
+ "name": "event",
544
+ "type": {
545
+ "text": "CustomEvent<DemographicsChangeEventDetail>"
546
+ }
547
+ }
548
+ ]
648
549
  },
649
550
  {
650
- "kind": "field",
651
- "name": "resetKey",
652
- "type": {
653
- "text": "number"
654
- },
551
+ "kind": "method",
552
+ "name": "validateForm",
655
553
  "privacy": "private",
656
- "default": "0"
657
- },
554
+ "return": {
555
+ "type": {
556
+ "text": "void"
557
+ }
558
+ }
559
+ }
560
+ ],
561
+ "events": [
658
562
  {
659
- "kind": "field",
660
- "name": "sizeInput",
563
+ "name": "editPatientProfile",
661
564
  "type": {
662
- "text": "HTMLElement & { value: string }"
663
- },
664
- "privacy": "private"
665
- },
565
+ "text": "CustomEvent"
566
+ }
567
+ }
568
+ ],
569
+ "attributes": [
666
570
  {
667
- "kind": "field",
668
- "name": "ageInput",
571
+ "name": "patient-profile",
669
572
  "type": {
670
- "text": "HTMLElement & { value: string }"
573
+ "text": "Bundle | undefined"
671
574
  },
672
- "privacy": "private"
575
+ "fieldName": "patientProfile"
673
576
  },
674
577
  {
675
- "kind": "field",
676
- "name": "weightInput",
578
+ "name": "api-url",
677
579
  "type": {
678
- "text": "HTMLElement & { value: string }"
580
+ "text": "string"
679
581
  },
680
- "privacy": "private"
582
+ "default": "\"https://api-dev.claudebernard.fr\"",
583
+ "fieldName": "apiUrl"
681
584
  },
682
585
  {
683
- "kind": "field",
684
- "name": "creatinineUmolInput",
586
+ "name": "api-key",
685
587
  "type": {
686
- "text": "HTMLElement & { value: string }"
588
+ "text": "string | undefined"
687
589
  },
688
- "privacy": "private"
590
+ "fieldName": "apiKey"
689
591
  },
690
592
  {
691
- "kind": "field",
692
- "name": "creatinineMgLInput",
593
+ "name": "preferences",
693
594
  "type": {
694
- "text": "HTMLElement & { value: string }"
695
- },
696
- "privacy": "private"
697
- },
698
- {
699
- "kind": "field",
700
- "name": "clairanceCreatinineInput",
701
- "type": {
702
- "text": "HTMLElement & { value: string }"
703
- },
704
- "privacy": "private"
705
- },
706
- {
707
- "kind": "field",
708
- "name": "editionModalElement",
709
- "type": {
710
- "text": "HTMLElement & { open: () => void; close: () => void }"
711
- },
712
- "privacy": "private"
713
- },
714
- {
715
- "kind": "field",
716
- "name": "dfgInput",
717
- "type": {
718
- "text": "HTMLElement & { value: string }"
719
- },
720
- "privacy": "private"
721
- },
722
- {
723
- "kind": "field",
724
- "name": "genderSelect",
725
- "type": {
726
- "text": "HTMLElement & { value: string }"
727
- },
728
- "privacy": "private"
729
- },
730
- {
731
- "kind": "field",
732
- "name": "gestationalWeeksInput",
733
- "type": {
734
- "text": "HTMLElement & { value: string }"
735
- },
736
- "privacy": "private"
737
- },
738
- {
739
- "kind": "field",
740
- "name": "hepaticStadeSelect",
741
- "type": {
742
- "text": "HTMLElement & { value: string }"
743
- },
744
- "privacy": "private"
745
- },
746
- {
747
- "kind": "field",
748
- "name": "ageUnitSelect",
749
- "type": {
750
- "text": "HTMLElement & { value: string }"
751
- },
752
- "privacy": "private"
753
- },
754
- {
755
- "kind": "method",
756
- "name": "open",
757
- "privacy": "public",
758
- "return": {
759
- "type": {
760
- "text": "void"
761
- }
762
- }
763
- },
764
- {
765
- "kind": "method",
766
- "name": "modifyGender",
767
- "privacy": "private",
768
- "return": {
769
- "type": {
770
- "text": "void"
771
- }
772
- }
773
- },
774
- {
775
- "kind": "method",
776
- "name": "resetToProfileValues",
777
- "privacy": "private",
778
- "return": {
779
- "type": {
780
- "text": "void"
781
- }
782
- }
783
- },
784
- {
785
- "kind": "method",
786
- "name": "handleCancel",
787
- "privacy": "private",
788
- "return": {
789
- "type": {
790
- "text": "void"
791
- }
792
- }
793
- },
794
- {
795
- "kind": "method",
796
- "name": "verifyAgeInput",
797
- "privacy": "private",
798
- "return": {
799
- "type": {
800
- "text": "void"
801
- }
802
- }
803
- },
804
- {
805
- "kind": "method",
806
- "name": "handleAgeUnit",
807
- "privacy": "private",
808
- "return": {
809
- "type": {
810
- "text": "void"
811
- }
812
- }
813
- },
814
- {
815
- "kind": "method",
816
- "name": "verifySizeInput",
817
- "privacy": "private",
818
- "return": {
819
- "type": {
820
- "text": "void"
821
- }
822
- }
823
- },
824
- {
825
- "kind": "method",
826
- "name": "verifyWeightInput",
827
- "privacy": "private",
828
- "return": {
829
- "type": {
830
- "text": "void"
831
- }
832
- }
833
- },
834
- {
835
- "kind": "method",
836
- "name": "getPatientSexFromProfile",
837
- "privacy": "private"
838
- },
839
- {
840
- "kind": "method",
841
- "name": "getPatientHepaticStadeFromProfile",
842
- "privacy": "private"
843
- },
844
- {
845
- "kind": "method",
846
- "name": "handlePregnancy",
847
- "privacy": "private",
848
- "return": {
849
- "type": {
850
- "text": "void"
851
- }
852
- },
853
- "parameters": [
854
- {
855
- "name": "event",
856
- "type": {
857
- "text": "CustomEvent"
858
- }
859
- }
860
- ]
861
- },
862
- {
863
- "kind": "method",
864
- "name": "handleBreastfeeding",
865
- "privacy": "private",
866
- "return": {
867
- "type": {
868
- "text": "void"
869
- }
870
- },
871
- "parameters": [
872
- {
873
- "name": "event",
874
- "type": {
875
- "text": "CustomEvent"
876
- }
877
- }
878
- ]
879
- },
880
- {
881
- "kind": "method",
882
- "name": "handleRenalConversion",
883
- "privacy": "private",
884
- "return": {
885
- "type": {
886
- "text": "Promise<void>"
887
- }
888
- },
889
- "parameters": [
890
- {
891
- "name": "type",
892
- "type": {
893
- "text": "number"
894
- }
895
- },
896
- {
897
- "name": "value",
898
- "type": {
899
- "text": "number"
900
- }
901
- }
902
- ]
903
- },
904
- {
905
- "kind": "method",
906
- "name": "recalculateRenalValues",
907
- "privacy": "private",
908
- "return": {
909
- "type": {
910
- "text": "void"
911
- }
912
- }
913
- },
914
- {
915
- "kind": "method",
916
- "name": "apiReturntoSelectOption",
917
- "privacy": "private",
918
- "return": {
919
- "type": {
920
- "text": "ISelectOption"
921
- }
922
- },
923
- "parameters": [
924
- {
925
- "name": "pathology",
926
- "type": {
927
- "text": "IApiReturn"
928
- }
929
- }
930
- ]
931
- },
932
- {
933
- "kind": "method",
934
- "name": "searchPathologies",
935
- "privacy": "private",
936
- "return": {
937
- "type": {
938
- "text": "void"
939
- }
940
- },
941
- "parameters": [
942
- {
943
- "name": "event",
944
- "type": {
945
- "text": "CustomEvent"
946
- }
947
- }
948
- ]
949
- },
950
- {
951
- "kind": "method",
952
- "name": "updatePathologies",
953
- "privacy": "private",
954
- "return": {
955
- "type": {
956
- "text": "void"
957
- }
958
- },
959
- "parameters": [
960
- {
961
- "name": "event",
962
- "type": {
963
- "text": "CustomEvent"
964
- }
965
- }
966
- ]
967
- },
968
- {
969
- "kind": "method",
970
- "name": "searchAllergies",
971
- "privacy": "private",
972
- "return": {
973
- "type": {
974
- "text": "void"
975
- }
976
- },
977
- "parameters": [
978
- {
979
- "name": "event",
980
- "type": {
981
- "text": "CustomEvent"
982
- }
983
- }
984
- ]
985
- },
986
- {
987
- "kind": "method",
988
- "name": "updateAllergies",
989
- "privacy": "private",
990
- "return": {
991
- "type": {
992
- "text": "void"
993
- }
994
- },
995
- "parameters": [
996
- {
997
- "name": "event",
998
- "type": {
999
- "text": "CustomEvent"
1000
- }
1001
- }
1002
- ]
1003
- },
1004
- {
1005
- "kind": "method",
1006
- "name": "validateForm",
1007
- "privacy": "private",
1008
- "return": {
1009
- "type": {
1010
- "text": "void"
1011
- }
1012
- }
1013
- }
1014
- ],
1015
- "events": [
1016
- {
1017
- "name": "editPatientProfile",
1018
- "type": {
1019
- "text": "CustomEvent"
1020
- }
1021
- }
1022
- ],
1023
- "attributes": [
1024
- {
1025
- "name": "patient-profile",
1026
- "type": {
1027
- "text": "Bundle | undefined"
1028
- },
1029
- "fieldName": "patientProfile"
1030
- },
1031
- {
1032
- "name": "api-url",
1033
- "type": {
1034
- "text": "string"
1035
- },
1036
- "default": "\"https://api-dev.claudebernard.fr\"",
1037
- "fieldName": "apiUrl"
1038
- },
1039
- {
1040
- "name": "api-key",
1041
- "type": {
1042
- "text": "string | undefined"
1043
- },
1044
- "fieldName": "apiKey"
1045
- },
1046
- {
1047
- "name": "preferences",
1048
- "type": {
1049
- "text": "PatientProfilePreferences | undefined"
595
+ "text": "PatientProfilePreferences | undefined"
1050
596
  },
1051
597
  "fieldName": "preferences"
1052
598
  }
@@ -1097,14 +643,6 @@
1097
643
  "text": "{ value: string, label: string }[]"
1098
644
  },
1099
645
  "default": "[ { value: \"A\", label: \"Stade A\" }, { value: \"B\", label: \"Stade B\" }, { value: \"C\", label: \"Stade C\" }, ]"
1100
- },
1101
- {
1102
- "kind": "variable",
1103
- "name": "ageOptions",
1104
- "type": {
1105
- "text": "{ value: string, label: string }[]"
1106
- },
1107
- "default": "[ { value: \"ans\", label: \"Ans\" }, { value: \"mois\", label: \"Mois\" }, ]"
1108
646
  }
1109
647
  ],
1110
648
  "exports": [
@@ -1123,14 +661,6 @@
1123
661
  "name": "hepaticStadeOptions",
1124
662
  "module": "src/shared/constants/edition-options.ts"
1125
663
  }
1126
- },
1127
- {
1128
- "kind": "js",
1129
- "name": "ageOptions",
1130
- "declaration": {
1131
- "name": "ageOptions",
1132
- "module": "src/shared/constants/edition-options.ts"
1133
- }
1134
664
  }
1135
665
  ]
1136
666
  },
@@ -1238,6 +768,24 @@
1238
768
  }
1239
769
  ]
1240
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
+ },
1241
789
  {
1242
790
  "kind": "javascript-module",
1243
791
  "path": "src/shared/mocks/pathologies.mock.ts",
@@ -1302,24 +850,6 @@
1302
850
  }
1303
851
  ]
1304
852
  },
1305
- {
1306
- "kind": "javascript-module",
1307
- "path": "src/shared/interfaces/api-return.interface.ts",
1308
- "declarations": [],
1309
- "exports": []
1310
- },
1311
- {
1312
- "kind": "javascript-module",
1313
- "path": "src/shared/interfaces/patient.ts",
1314
- "declarations": [],
1315
- "exports": []
1316
- },
1317
- {
1318
- "kind": "javascript-module",
1319
- "path": "src/shared/interfaces/properties.ts",
1320
- "declarations": [],
1321
- "exports": []
1322
- },
1323
853
  {
1324
854
  "kind": "javascript-module",
1325
855
  "path": "src/shared/services/api-prescription.service.ts",
@@ -1448,6 +978,33 @@
1448
978
  "kind": "javascript-module",
1449
979
  "path": "src/shared/utils/formula-utils.ts",
1450
980
  "declarations": [
981
+ {
982
+ "kind": "function",
983
+ "name": "calculateAgeFromBirthDate",
984
+ "return": {
985
+ "type": {
986
+ "text": ""
987
+ }
988
+ },
989
+ "parameters": [
990
+ {
991
+ "name": "birthDate",
992
+ "type": {
993
+ "text": "Date"
994
+ },
995
+ "description": "Date de naissance du patient"
996
+ },
997
+ {
998
+ "name": "referenceDate",
999
+ "default": "new Date()",
1000
+ "type": {
1001
+ "text": "Date"
1002
+ },
1003
+ "description": "Date de référence pour le calcul (aujourd'hui par défaut)"
1004
+ }
1005
+ ],
1006
+ "description": "Calcule l'âge d'un patient et son unité (années ou mois) à partir de sa date de naissance.\nEn dessous de 24 mois, l'âge est exprimé en mois."
1007
+ },
1451
1008
  {
1452
1009
  "kind": "function",
1453
1010
  "name": "calculateBMI",
@@ -1592,6 +1149,14 @@
1592
1149
  }
1593
1150
  ],
1594
1151
  "exports": [
1152
+ {
1153
+ "kind": "js",
1154
+ "name": "calculateAgeFromBirthDate",
1155
+ "declaration": {
1156
+ "name": "calculateAgeFromBirthDate",
1157
+ "module": "src/shared/utils/formula-utils.ts"
1158
+ }
1159
+ },
1595
1160
  {
1596
1161
  "kind": "js",
1597
1162
  "name": "calculateBMI",
@@ -1799,21 +1364,14 @@
1799
1364
  "description": "Bundle Patient FHIR"
1800
1365
  },
1801
1366
  {
1802
- "name": "age",
1803
- "type": {
1804
- "text": "number"
1805
- },
1806
- "description": "Nouvel âge du patient"
1807
- },
1808
- {
1809
- "name": "ageUnit",
1367
+ "name": "birthdate",
1810
1368
  "type": {
1811
1369
  "text": "string"
1812
1370
  },
1813
- "description": "Unité de l'âge (ex: \"ans\", \"mois\")"
1371
+ "description": "Nouvelle date de naissance du patient"
1814
1372
  }
1815
1373
  ],
1816
- "description": "Modifie l'âge du patient dans la ressource Patient du Bundle FHIR"
1374
+ "description": "Modifie la date de naissance du patient dans la ressource Patient du Bundle FHIR"
1817
1375
  },
1818
1376
  {
1819
1377
  "kind": "function",
@@ -2569,25 +2127,6 @@
2569
2127
  }
2570
2128
  ],
2571
2129
  "description": "Extrait les informations médicales complètes du patient"
2572
- },
2573
- {
2574
- "kind": "function",
2575
- "name": "getPatientInfo",
2576
- "return": {
2577
- "type": {
2578
- "text": ""
2579
- }
2580
- },
2581
- "parameters": [
2582
- {
2583
- "name": "bundle",
2584
- "type": {
2585
- "text": "Bundle | undefined"
2586
- },
2587
- "description": "Bundle FHIR"
2588
- }
2589
- ],
2590
- "description": "Extrait toutes les informations du patient (démographiques + médicales)"
2591
2130
  }
2592
2131
  ],
2593
2132
  "exports": [
@@ -2761,194 +2300,1715 @@
2761
2300
  },
2762
2301
  {
2763
2302
  "kind": "js",
2764
- "name": "getPatientRenalInsufficiencyStatus",
2303
+ "name": "getPatientRenalInsufficiencyStatus",
2304
+ "declaration": {
2305
+ "name": "getPatientRenalInsufficiencyStatus",
2306
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2307
+ }
2308
+ },
2309
+ {
2310
+ "kind": "js",
2311
+ "name": "setPatientClearance",
2312
+ "declaration": {
2313
+ "name": "setPatientClearance",
2314
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2315
+ }
2316
+ },
2317
+ {
2318
+ "kind": "js",
2319
+ "name": "setPatientGFRByBSA",
2320
+ "declaration": {
2321
+ "name": "setPatientGFRByBSA",
2322
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2323
+ }
2324
+ },
2325
+ {
2326
+ "kind": "js",
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",
2765
2416
  "declaration": {
2766
- "name": "getPatientRenalInsufficiencyStatus",
2417
+ "name": "getPatientAllergies",
2767
2418
  "module": "src/shared/utils/patient-fhir-utils.ts"
2768
2419
  }
2769
2420
  },
2770
2421
  {
2771
2422
  "kind": "js",
2772
- "name": "setPatientClearance",
2423
+ "name": "getPatientAllergiesWithCode",
2773
2424
  "declaration": {
2774
- "name": "setPatientClearance",
2425
+ "name": "getPatientAllergiesWithCode",
2775
2426
  "module": "src/shared/utils/patient-fhir-utils.ts"
2776
2427
  }
2777
2428
  },
2778
2429
  {
2779
2430
  "kind": "js",
2780
- "name": "setPatientGFRByBSA",
2431
+ "name": "setPatientAllergies",
2781
2432
  "declaration": {
2782
- "name": "setPatientGFRByBSA",
2433
+ "name": "setPatientAllergies",
2783
2434
  "module": "src/shared/utils/patient-fhir-utils.ts"
2784
2435
  }
2785
2436
  },
2786
2437
  {
2787
2438
  "kind": "js",
2788
- "name": "computeCreatinineFromClearance",
2439
+ "name": "getPatientAdverseEvents",
2789
2440
  "declaration": {
2790
- "name": "computeCreatinineFromClearance",
2441
+ "name": "getPatientAdverseEvents",
2791
2442
  "module": "src/shared/utils/patient-fhir-utils.ts"
2792
2443
  }
2793
2444
  },
2794
2445
  {
2795
2446
  "kind": "js",
2796
- "name": "getCreatinine",
2447
+ "name": "getPatientDemographics",
2797
2448
  "declaration": {
2798
- "name": "getCreatinine",
2449
+ "name": "getPatientDemographics",
2799
2450
  "module": "src/shared/utils/patient-fhir-utils.ts"
2800
2451
  }
2801
2452
  },
2802
2453
  {
2803
2454
  "kind": "js",
2804
- "name": "setCreatinineBymgL",
2455
+ "name": "childPughScore",
2805
2456
  "declaration": {
2806
- "name": "setCreatinineBymgL",
2457
+ "name": "childPughScore",
2807
2458
  "module": "src/shared/utils/patient-fhir-utils.ts"
2808
2459
  }
2809
2460
  },
2810
2461
  {
2811
2462
  "kind": "js",
2812
- "name": "setCreatinineByUmolL",
2463
+ "name": "calculateGFRFromCreatinine",
2813
2464
  "declaration": {
2814
- "name": "setCreatinineByUmolL",
2465
+ "name": "calculateGFRFromCreatinine",
2815
2466
  "module": "src/shared/utils/patient-fhir-utils.ts"
2816
2467
  }
2817
2468
  },
2818
2469
  {
2819
2470
  "kind": "js",
2820
- "name": "getPatientHepaticInsufficiencyScore",
2471
+ "name": "calculateCreatinineFromGFR",
2821
2472
  "declaration": {
2822
- "name": "getPatientHepaticInsufficiencyScore",
2473
+ "name": "calculateCreatinineFromGFR",
2823
2474
  "module": "src/shared/utils/patient-fhir-utils.ts"
2824
2475
  }
2825
2476
  },
2826
2477
  {
2827
2478
  "kind": "js",
2828
- "name": "getPatientHepaticInsufficiencyStade",
2479
+ "name": "getPatientMedicalInfo",
2829
2480
  "declaration": {
2830
- "name": "getPatientHepaticInsufficiencyStade",
2481
+ "name": "getPatientMedicalInfo",
2831
2482
  "module": "src/shared/utils/patient-fhir-utils.ts"
2832
2483
  }
2833
- },
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": [
2834
2732
  {
2835
2733
  "kind": "js",
2836
- "name": "setPatientHepaticInsufficiencyStatus",
2734
+ "name": "PatientAllergiesForm",
2837
2735
  "declaration": {
2838
- "name": "setPatientHepaticInsufficiencyStatus",
2839
- "module": "src/shared/utils/patient-fhir-utils.ts"
2736
+ "name": "PatientAllergiesForm",
2737
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-allergies-form.ts"
2840
2738
  }
2841
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": [
2842
2938
  {
2843
2939
  "kind": "js",
2844
- "name": "deletePatientHepaticInsufficiencyStatus",
2940
+ "name": "PatientCodeSearchFormBase",
2845
2941
  "declaration": {
2846
- "name": "deletePatientHepaticInsufficiencyStatus",
2847
- "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"
2848
2944
  }
2849
- },
2945
+ }
2946
+ ]
2947
+ },
2948
+ {
2949
+ "kind": "javascript-module",
2950
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-demographics-form.ts",
2951
+ "declarations": [
2850
2952
  {
2851
- "kind": "js",
2852
- "name": "getPatientConditions",
2853
- "declaration": {
2854
- "name": "getPatientConditions",
2855
- "module": "src/shared/utils/patient-fhir-utils.ts"
2856
- }
2857
- },
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": [
2858
3272
  {
2859
3273
  "kind": "js",
2860
- "name": "getPatientConditionsWithCode",
3274
+ "name": "PatientDemographicsForm",
2861
3275
  "declaration": {
2862
- "name": "getPatientConditionsWithCode",
2863
- "module": "src/shared/utils/patient-fhir-utils.ts"
3276
+ "name": "PatientDemographicsForm",
3277
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-demographics-form.ts"
2864
3278
  }
2865
3279
  },
2866
3280
  {
2867
- "kind": "js",
2868
- "name": "setPatientConditions",
3281
+ "kind": "custom-element-definition",
3282
+ "name": "bcb-patient-demographics-form",
2869
3283
  "declaration": {
2870
- "name": "setPatientConditions",
2871
- "module": "src/shared/utils/patient-fhir-utils.ts"
3284
+ "name": "PatientDemographicsForm",
3285
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-demographics-form.ts"
2872
3286
  }
2873
- },
3287
+ }
3288
+ ]
3289
+ },
3290
+ {
3291
+ "kind": "javascript-module",
3292
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-hepatic-form.ts",
3293
+ "declarations": [
2874
3294
  {
2875
- "kind": "js",
2876
- "name": "getPatientAllergies",
2877
- "declaration": {
2878
- "name": "getPatientAllergies",
2879
- "module": "src/shared/utils/patient-fhir-utils.ts"
2880
- }
2881
- },
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": [
2882
3357
  {
2883
3358
  "kind": "js",
2884
- "name": "getPatientAllergiesWithCode",
3359
+ "name": "PatientHepaticForm",
2885
3360
  "declaration": {
2886
- "name": "getPatientAllergiesWithCode",
2887
- "module": "src/shared/utils/patient-fhir-utils.ts"
3361
+ "name": "PatientHepaticForm",
3362
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-hepatic-form.ts"
2888
3363
  }
2889
3364
  },
2890
3365
  {
2891
- "kind": "js",
2892
- "name": "setPatientAllergies",
3366
+ "kind": "custom-element-definition",
3367
+ "name": "bcb-patient-hepatic-form",
2893
3368
  "declaration": {
2894
- "name": "setPatientAllergies",
2895
- "module": "src/shared/utils/patient-fhir-utils.ts"
3369
+ "name": "PatientHepaticForm",
3370
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-hepatic-form.ts"
2896
3371
  }
2897
- },
3372
+ }
3373
+ ]
3374
+ },
3375
+ {
3376
+ "kind": "javascript-module",
3377
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-pathologies-form.ts",
3378
+ "declarations": [
3379
+ {
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": [
2898
3635
  {
2899
3636
  "kind": "js",
2900
- "name": "getPatientAdverseEvents",
3637
+ "name": "PatientPathologiesForm",
2901
3638
  "declaration": {
2902
- "name": "getPatientAdverseEvents",
2903
- "module": "src/shared/utils/patient-fhir-utils.ts"
3639
+ "name": "PatientPathologiesForm",
3640
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-pathologies-form.ts"
2904
3641
  }
2905
3642
  },
2906
3643
  {
2907
- "kind": "js",
2908
- "name": "getPatientDemographics",
3644
+ "kind": "custom-element-definition",
3645
+ "name": "bcb-patient-pathologies-form",
2909
3646
  "declaration": {
2910
- "name": "getPatientDemographics",
2911
- "module": "src/shared/utils/patient-fhir-utils.ts"
3647
+ "name": "PatientPathologiesForm",
3648
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-pathologies-form.ts"
2912
3649
  }
2913
- },
3650
+ }
3651
+ ]
3652
+ },
3653
+ {
3654
+ "kind": "javascript-module",
3655
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-renal-form.ts",
3656
+ "declarations": [
3657
+ {
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": [
2914
3857
  {
2915
3858
  "kind": "js",
2916
- "name": "childPughScore",
3859
+ "name": "PatientRenalForm",
2917
3860
  "declaration": {
2918
- "name": "childPughScore",
2919
- "module": "src/shared/utils/patient-fhir-utils.ts"
3861
+ "name": "PatientRenalForm",
3862
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-renal-form.ts"
2920
3863
  }
2921
3864
  },
2922
3865
  {
2923
- "kind": "js",
2924
- "name": "calculateGFRFromCreatinine",
3866
+ "kind": "custom-element-definition",
3867
+ "name": "bcb-patient-renal-form",
2925
3868
  "declaration": {
2926
- "name": "calculateGFRFromCreatinine",
2927
- "module": "src/shared/utils/patient-fhir-utils.ts"
3869
+ "name": "PatientRenalForm",
3870
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-renal-form.ts"
2928
3871
  }
2929
- },
3872
+ }
3873
+ ]
3874
+ },
3875
+ {
3876
+ "kind": "javascript-module",
3877
+ "path": "src/patient-profile/patient-profile-edition/forms/patient-reproductive-form.ts",
3878
+ "declarations": [
2930
3879
  {
2931
- "kind": "js",
2932
- "name": "calculateCreatinineFromGFR",
2933
- "declaration": {
2934
- "name": "calculateCreatinineFromGFR",
2935
- "module": "src/shared/utils/patient-fhir-utils.ts"
2936
- }
2937
- },
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": [
2938
3998
  {
2939
3999
  "kind": "js",
2940
- "name": "getPatientMedicalInfo",
4000
+ "name": "PatientReproductiveForm",
2941
4001
  "declaration": {
2942
- "name": "getPatientMedicalInfo",
2943
- "module": "src/shared/utils/patient-fhir-utils.ts"
4002
+ "name": "PatientReproductiveForm",
4003
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-reproductive-form.ts"
2944
4004
  }
2945
4005
  },
2946
4006
  {
2947
- "kind": "js",
2948
- "name": "getPatientInfo",
4007
+ "kind": "custom-element-definition",
4008
+ "name": "bcb-patient-reproductive-form",
2949
4009
  "declaration": {
2950
- "name": "getPatientInfo",
2951
- "module": "src/shared/utils/patient-fhir-utils.ts"
4010
+ "name": "PatientReproductiveForm",
4011
+ "module": "src/patient-profile/patient-profile-edition/forms/patient-reproductive-form.ts"
2952
4012
  }
2953
4013
  }
2954
4014
  ]