@claudebernard/patient-profile-element 0.4.0 → 0.4.2
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.
- package/dist/custom-elements.json +149 -1
- package/dist/patient-profile.d.ts +4 -3
- package/dist/patient-profile.es.js +353 -153
- package/package.json +9 -6
|
@@ -13,12 +13,33 @@
|
|
|
13
13
|
"text": "WebComponentsStory<any, any>"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"kind": "variable",
|
|
18
|
+
"name": "MalePatient",
|
|
19
|
+
"type": {
|
|
20
|
+
"text": "WebComponentsStory<any, any>"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"kind": "variable",
|
|
25
|
+
"name": "YoungPatient",
|
|
26
|
+
"type": {
|
|
27
|
+
"text": "WebComponentsStory<any, any>"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
16
30
|
{
|
|
17
31
|
"kind": "variable",
|
|
18
32
|
"name": "WithoutEditButton",
|
|
19
33
|
"type": {
|
|
20
34
|
"text": "WebComponentsStory<any, any>"
|
|
21
35
|
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"kind": "variable",
|
|
39
|
+
"name": "PatientProfileEmpty",
|
|
40
|
+
"type": {
|
|
41
|
+
"text": "WebComponentsStory<any, any>"
|
|
42
|
+
}
|
|
22
43
|
}
|
|
23
44
|
],
|
|
24
45
|
"exports": [
|
|
@@ -30,6 +51,22 @@
|
|
|
30
51
|
"module": "src/patient-profile/patient-profile.stories.ts"
|
|
31
52
|
}
|
|
32
53
|
},
|
|
54
|
+
{
|
|
55
|
+
"kind": "js",
|
|
56
|
+
"name": "MalePatient",
|
|
57
|
+
"declaration": {
|
|
58
|
+
"name": "MalePatient",
|
|
59
|
+
"module": "src/patient-profile/patient-profile.stories.ts"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"kind": "js",
|
|
64
|
+
"name": "YoungPatient",
|
|
65
|
+
"declaration": {
|
|
66
|
+
"name": "YoungPatient",
|
|
67
|
+
"module": "src/patient-profile/patient-profile.stories.ts"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
33
70
|
{
|
|
34
71
|
"kind": "js",
|
|
35
72
|
"name": "WithoutEditButton",
|
|
@@ -37,6 +74,14 @@
|
|
|
37
74
|
"name": "WithoutEditButton",
|
|
38
75
|
"module": "src/patient-profile/patient-profile.stories.ts"
|
|
39
76
|
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"kind": "js",
|
|
80
|
+
"name": "PatientProfileEmpty",
|
|
81
|
+
"declaration": {
|
|
82
|
+
"name": "PatientProfileEmpty",
|
|
83
|
+
"module": "src/patient-profile/patient-profile.stories.ts"
|
|
84
|
+
}
|
|
40
85
|
}
|
|
41
86
|
]
|
|
42
87
|
},
|
|
@@ -500,6 +545,22 @@
|
|
|
500
545
|
},
|
|
501
546
|
"default": "\"\""
|
|
502
547
|
},
|
|
548
|
+
{
|
|
549
|
+
"kind": "field",
|
|
550
|
+
"name": "renalLackInformationErrorMessage",
|
|
551
|
+
"type": {
|
|
552
|
+
"text": "string"
|
|
553
|
+
},
|
|
554
|
+
"default": "\"\""
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"kind": "field",
|
|
558
|
+
"name": "childPughErrorMessage",
|
|
559
|
+
"type": {
|
|
560
|
+
"text": "string"
|
|
561
|
+
},
|
|
562
|
+
"default": "\"\""
|
|
563
|
+
},
|
|
503
564
|
{
|
|
504
565
|
"kind": "field",
|
|
505
566
|
"name": "pathologyOptions",
|
|
@@ -750,6 +811,16 @@
|
|
|
750
811
|
}
|
|
751
812
|
]
|
|
752
813
|
},
|
|
814
|
+
{
|
|
815
|
+
"kind": "method",
|
|
816
|
+
"name": "recalculateRenalValues",
|
|
817
|
+
"privacy": "private",
|
|
818
|
+
"return": {
|
|
819
|
+
"type": {
|
|
820
|
+
"text": "void"
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
},
|
|
753
824
|
{
|
|
754
825
|
"kind": "method",
|
|
755
826
|
"name": "setFormWithCreatinineUmol",
|
|
@@ -1182,7 +1253,15 @@
|
|
|
1182
1253
|
"type": {
|
|
1183
1254
|
"text": "Bundle"
|
|
1184
1255
|
},
|
|
1185
|
-
"default": "{\n resourceType: \"Bundle\",\n id: \"patient-complete\",\n type: \"document\",\n entry: [\n {\n resource: {\n resourceType: \"Composition\", // On a Bundle of type document, the first entry must be a Composition\n id: \"composition-complete\",\n status: \"final\",\n type: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"34133-9\",\n display: \"Summary of episode note\",\n },\n ],\n },\n subject: [{ reference: \"Patient/patient-complete\" }],\n date: \"2025-09-02\",\n title: \"Patient complete composition\",\n author: [{ reference: \"Practitioner/dr-martin\" }],\n },\n },\n {\n resource: {\n resourceType: \"Patient\",\n id: \"patient-complete\",\n gender: \"female\", // sex at birth\n birthDate: \"1984-01-01\", // birthDate used to calculate age\n name: [\n {\n family: \"Dupont\",\n given: [\"Marie\"],\n },\n ],\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-gestational-age\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"18185-9\",\n display: \"Gestational age\", // Most used Loinc code for gestational age / number of weeks of amenorrhea\n },\n ],\n text: \"Âge gestationnel\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 20,\n unit: \"weeks\",\n system: \"http://unitsofmeasure.org\",\n code: \"wk\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine-clearance\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2164-2\",\n display: \"Creatinine renal clearance in 24 hour Urine and Serum or Plasma\", // Most used Loinc code for creatinine clearance\n },\n ],\n text: \"Clairance de la créatinine\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 71,\n unit: \"mL/min\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"15051-6\",\n display: \"Creatinine [Moles/volume] in Serum or Plasma\", // LOINC code for serum creatinine in μmol/L\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 121,\n unit: \"μmol/L\",\n system: \"http://unitsofmeasure.org\",\n code: \"umol/L\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2160-0\",\n display: \"Creatinine [Mass/volume] in Serum or Plasma\", // Most used Loinc code for serum creatinine\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 1.4,\n unit: \"mg/dL\",\n system: \"http://unitsofmeasure.org\",\n code: \"mg/dL\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-dfg\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"48642-3\",\n // eslint-disable-next-line @stylistic/max-len\n display: \"Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (MDRD)/1.73 sq M\",\n },\n ],\n text: \"DFG\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 45,\n unit: \"mL/min/1.73.m2\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min/1.73.m2\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-child-pugh-score\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"98152-2\",\n display: \"Total score [Child-Pugh]\",\n },\n ],\n text: \"Score total Child-Pugh\",\n },\n subject: {\n \"reference\": \"Patient/patient-complete\",\n },\n valueQuantity: {\n value: 7,\n unit: \"score\",\n system: \"http://unitsofmeasure.org\",\n code: \"{score}\",\n },\n valueCodeableConcept: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"710066005\",\n display: \"Child-Pugh score class B\",\n },\n ],\n text: \"Stade B\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-weight\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"29463-7\",\n display: \"Body weight\", // Most used Loinc code for body weight\n },\n ],\n text: \"Poids corporel\",\n },\n subject: {\n reference: \"Patient/patient-complete\",\n },\n valueQuantity: {\n value: 84,\n unit: \"kg\",\n system: \"http://unitsofmeasure.org\",\n code: \"kg\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-height\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"8302-2\",\n display: \"Body height\", // Most used Loinc code for body height\n },\n ],\n text: \"Taille corporelle\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 170,\n unit: \"cm\",\n system: \"http://unitsofmeasure.org\",\n code: \"cm\",\n },\n },\n },\n {\n resource: {\n resourceType: \"AdverseEvent\", // Resource used to specify adverse events like drug side effects the patient is experiencing\n id: \"adverseevent-amoxicillin-rash\",\n actuality: \"actual\",\n subject: { reference: \"Patient/patient-complete\" },\n status: \"unknown\",\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"271807003\",\n display: \"Rash\",\n },\n ],\n text: \"Éruption cutanée\",\n },\n suspectEntity: [ // Link to the medication request that supposedly or certainly caused the adverse event\n {\n instanceReference: {\n reference: \"MedicationRequest/req-cardensiel\",\n },\n causality: {\n assessmentMethod: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess\",\n code: \"certain\",\n display: \"Certain\",\n },\n ],\n },\n },\n },\n ],\n seriousness: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-seriousness\",\n code: \"non-serious\",\n display: \"Non-serious\",\n },\n ],\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-pregnancy-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"82810-3\",\n display: \"Pregnancy status\", // Most used Loinc code for pregnancy status\n },\n ],\n text: \"Statut de grossesse\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently pregnant (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"77386006\",\n display: \"Pregnant\",\n },\n ],\n text: \"Grossesse\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-breastfeeding-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"63895-7\",\n display: \"Breastfeeding status\", // Most used Loinc code for breastfeeding status\n },\n ],\n text: \"Statut d'allaitement\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently breastfeeding (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"69840006\",\n display: \"Breastfeeding\",\n },\n ],\n text: \"Allaitement\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Condition\", // Resources of type Condition are used to specify pathologies\n id: \"hepatic-insufficiency\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"59927004\",\n display: \"Hepatic failure\",\n },\n ],\n text: \"Insuffisance hépatique\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723189000\",\n display: \"Insuffisance rénale aigüe\",\n },\n ],\n text: \"Insuffisance rénale aigüe\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723188000\",\n display: \"Insuffisance hépatique modérée\",\n },\n ],\n text: \"Insuffisance hépatique modérée\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-followed-pathology\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"84114007\",\n display: \"Insuffisance cardiaque\",\n },\n ],\n text: \"Insuffisance cardiaque\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"AllergyIntolerance\", // Resource used to specify allergies or intolerances the patient has\n id: \"allergy-paracetamol\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"293584003\",\n display: \"Allergie au paracétamol\",\n },\n ],\n text: \"Allergie au paracétamol\",\n },\n patient: { reference: \"Patient/patient-complete\" },\n },\n },\n ],\n}"
|
|
1256
|
+
"default": "{\n resourceType: \"Bundle\",\n id: \"patient-complete\",\n type: \"document\",\n entry: [\n {\n fullUrl: \"Composition/2a480f2a-27eb-43d6-943e-576588f9087e\",\n resource: {\n resourceType: \"Composition\", // On a Bundle of type document, the first entry must be a Composition\n id: \"2a480f2a-27eb-43d6-943e-576588f9087e\",\n status: \"final\",\n type: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"34133-9\",\n display: \"Summary of episode note\",\n },\n ],\n },\n subject: [{ reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" }],\n date: \"2025-09-02\",\n title: \"Patient complete composition\",\n author: [{ reference: \"Practitioner/dr-martin\" }],\n },\n },\n {\n fullUrl: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\",\n resource: {\n resourceType: \"Patient\",\n id: \"f5181376-2137-4724-8797-c57a453f7d1a\",\n gender: \"female\", // sex at birth\n birthDate: \"1984-01-01\", // birthDate used to calculate age\n name: [\n {\n family: \"Dupont\",\n given: [\"Marie\"],\n },\n ],\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-gestational-age\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"18185-9\",\n display: \"Gestational age\", // Most used Loinc code for gestational age / number of weeks of amenorrhea\n },\n ],\n text: \"Âge gestationnel\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 20,\n unit: \"weeks\",\n system: \"http://unitsofmeasure.org\",\n code: \"wk\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine-clearance\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2164-2\",\n display: \"Creatinine renal clearance in 24 hour Urine and Serum or Plasma\", // Most used Loinc code for creatinine clearance\n },\n ],\n text: \"Clairance de la créatinine\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 71,\n unit: \"mL/min\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"15051-6\",\n display: \"Creatinine [Moles/volume] in Serum or Plasma\", // LOINC code for serum creatinine in μmol/L\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 121,\n unit: \"μmol/L\",\n system: \"http://unitsofmeasure.org\",\n code: \"umol/L\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2160-0\",\n display: \"Creatinine [Mass/volume] in Serum or Plasma\", // Most used Loinc code for serum creatinine\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 1.4,\n unit: \"mg/dL\",\n system: \"http://unitsofmeasure.org\",\n code: \"mg/dL\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-dfg\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"48642-3\",\n \n display: \"Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (MDRD)/1.73 sq M\",\n },\n ],\n text: \"DFG\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 45,\n unit: \"mL/min/1.73.m2\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min/1.73.m2\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-child-pugh-score\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"98152-2\",\n display: \"Total score [Child-Pugh]\",\n },\n ],\n text: \"Score total Child-Pugh\",\n },\n subject: {\n \"reference\": \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\",\n },\n valueQuantity: {\n value: 7,\n unit: \"score\",\n system: \"http://unitsofmeasure.org\",\n code: \"{score}\",\n },\n valueCodeableConcept: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"710066005\",\n display: \"Child-Pugh score class B\",\n },\n ],\n text: \"Stade B\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-weight\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"29463-7\",\n display: \"Body weight\", // Most used Loinc code for body weight\n },\n ],\n text: \"Poids corporel\",\n },\n subject: {\n reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\",\n },\n valueQuantity: {\n value: 84,\n unit: \"kg\",\n system: \"http://unitsofmeasure.org\",\n code: \"kg\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-height\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"8302-2\",\n display: \"Body height\", // Most used Loinc code for body height\n },\n ],\n text: \"Taille corporelle\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 170,\n unit: \"cm\",\n system: \"http://unitsofmeasure.org\",\n code: \"cm\",\n },\n },\n },\n {\n resource: {\n resourceType: \"AdverseEvent\", // Resource used to specify adverse events like drug side effects the patient is experiencing\n id: \"adverseevent-amoxicillin-rash\",\n actuality: \"actual\",\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n status: \"unknown\",\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"271807003\",\n display: \"Rash\",\n },\n ],\n text: \"Éruption cutanée\",\n },\n suspectEntity: [ // Link to the medication request that supposedly or certainly caused the adverse event\n {\n instanceReference: {\n reference: \"MedicationRequest/req-cardensiel\",\n },\n causality: {\n assessmentMethod: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess\",\n code: \"certain\",\n display: \"Certain\",\n },\n ],\n },\n },\n },\n ],\n seriousness: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-seriousness\",\n code: \"non-serious\",\n display: \"Non-serious\",\n },\n ],\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-pregnancy-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"82810-3\",\n display: \"Pregnancy status\", // Most used Loinc code for pregnancy status\n },\n ],\n text: \"Statut de grossesse\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently pregnant (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"77386006\",\n display: \"Pregnant\",\n },\n ],\n text: \"Grossesse\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-breastfeeding-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"63895-7\",\n display: \"Breastfeeding status\", // Most used Loinc code for breastfeeding status\n },\n ],\n text: \"Statut d'allaitement\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently breastfeeding (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"69840006\",\n display: \"Breastfeeding\",\n },\n ],\n text: \"Allaitement\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Condition\", // Resources of type Condition are used to specify pathologies\n id: \"hepatic-insufficiency\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"59927004\",\n display: \"Hepatic failure\",\n },\n ],\n text: \"Insuffisance hépatique\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723189000\",\n display: \"Insuffisance rénale aigüe\",\n },\n ],\n text: \"Insuffisance rénale aigüe\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723188000\",\n display: \"Insuffisance hépatique modérée\",\n },\n ],\n text: \"Insuffisance hépatique modérée\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-followed-pathology\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"84114007\",\n display: \"Insuffisance cardiaque\",\n },\n ],\n text: \"Insuffisance cardiaque\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"AllergyIntolerance\", // Resource used to specify allergies or intolerances the patient has\n id: \"allergy-paracetamol\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"293584003\",\n display: \"Allergie au paracétamol\",\n },\n ],\n text: \"Allergie au paracétamol\",\n },\n patient: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n ],\n}"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "variable",
|
|
1260
|
+
"name": "patientProfileEmpty",
|
|
1261
|
+
"type": {
|
|
1262
|
+
"text": "object"
|
|
1263
|
+
},
|
|
1264
|
+
"default": "{}"
|
|
1186
1265
|
}
|
|
1187
1266
|
],
|
|
1188
1267
|
"exports": [
|
|
@@ -1193,6 +1272,14 @@
|
|
|
1193
1272
|
"name": "patientComplete",
|
|
1194
1273
|
"module": "src/shared/mocks/patient-profile.mock.ts"
|
|
1195
1274
|
}
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"kind": "js",
|
|
1278
|
+
"name": "patientProfileEmpty",
|
|
1279
|
+
"declaration": {
|
|
1280
|
+
"name": "patientProfileEmpty",
|
|
1281
|
+
"module": "src/shared/mocks/patient-profile.mock.ts"
|
|
1282
|
+
}
|
|
1196
1283
|
}
|
|
1197
1284
|
]
|
|
1198
1285
|
},
|
|
@@ -1476,6 +1563,43 @@
|
|
|
1476
1563
|
"kind": "javascript-module",
|
|
1477
1564
|
"path": "src/shared/utils/patient-fhir-utils.ts",
|
|
1478
1565
|
"declarations": [
|
|
1566
|
+
{
|
|
1567
|
+
"kind": "function",
|
|
1568
|
+
"name": "generateUUID",
|
|
1569
|
+
"return": {
|
|
1570
|
+
"type": {
|
|
1571
|
+
"text": "string"
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
"description": "Génère un UUID v4 aléatoire"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"kind": "function",
|
|
1578
|
+
"name": "getPatientFullUrl",
|
|
1579
|
+
"return": {
|
|
1580
|
+
"type": {
|
|
1581
|
+
"text": "string"
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
"parameters": [
|
|
1585
|
+
{
|
|
1586
|
+
"name": "bundle",
|
|
1587
|
+
"type": {
|
|
1588
|
+
"text": "Bundle"
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
],
|
|
1592
|
+
"description": "Retourne le fullUrl de la ressource Patient dans le bundle.\nSi aucun fullUrl n'est défini sur l'entry, construit \"Patient/{id}\"."
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"kind": "function",
|
|
1596
|
+
"name": "setInitialPatientProfile",
|
|
1597
|
+
"return": {
|
|
1598
|
+
"type": {
|
|
1599
|
+
"text": "Bundle"
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1479
1603
|
{
|
|
1480
1604
|
"kind": "function",
|
|
1481
1605
|
"name": "getPatientGender",
|
|
@@ -2384,6 +2508,30 @@
|
|
|
2384
2508
|
}
|
|
2385
2509
|
],
|
|
2386
2510
|
"exports": [
|
|
2511
|
+
{
|
|
2512
|
+
"kind": "js",
|
|
2513
|
+
"name": "generateUUID",
|
|
2514
|
+
"declaration": {
|
|
2515
|
+
"name": "generateUUID",
|
|
2516
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2517
|
+
}
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
"kind": "js",
|
|
2521
|
+
"name": "getPatientFullUrl",
|
|
2522
|
+
"declaration": {
|
|
2523
|
+
"name": "getPatientFullUrl",
|
|
2524
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2525
|
+
}
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"kind": "js",
|
|
2529
|
+
"name": "setInitialPatientProfile",
|
|
2530
|
+
"declaration": {
|
|
2531
|
+
"name": "setInitialPatientProfile",
|
|
2532
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2387
2535
|
{
|
|
2388
2536
|
"kind": "js",
|
|
2389
2537
|
"name": "getPatientGender",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Bundle } from 'fhir/r5';
|
|
2
2
|
import { CSSResult } from 'lit';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
|
+
import { nothing } from 'lit';
|
|
4
5
|
import { TemplateResult } from 'lit';
|
|
5
6
|
|
|
6
7
|
export declare class PatientProfile extends LitElement {
|
|
@@ -14,13 +15,13 @@ export declare class PatientProfile extends LitElement {
|
|
|
14
15
|
private editionModalElement;
|
|
15
16
|
handleMoreInformation(): void;
|
|
16
17
|
displayRenalInsufficiencyStatus(): symbol | TemplateResult<1>;
|
|
17
|
-
displayCreatininemieSection(): TemplateResult<1
|
|
18
|
+
displayCreatininemieSection(): TemplateResult<1> | typeof nothing;
|
|
18
19
|
private displayHepaticInsufficiencySection;
|
|
19
20
|
private truncateLabel;
|
|
20
21
|
private displayPregnancy;
|
|
21
22
|
private displayBreastfeeding;
|
|
22
|
-
displayPathologies(): TemplateResult<1
|
|
23
|
-
displayAllergies(): TemplateResult<1
|
|
23
|
+
displayPathologies(): TemplateResult<1> | typeof nothing;
|
|
24
|
+
displayAllergies(): TemplateResult<1> | typeof nothing;
|
|
24
25
|
openEditionModal(): void;
|
|
25
26
|
private editProfilePatient;
|
|
26
27
|
private getPatientAge;
|