From 72eb331ba2683eb677f283fd47aa51e27b71799d Mon Sep 17 00:00:00 2001 From: Jose Costa Teixeira Date: Wed, 23 Oct 2024 11:38:23 +0200 Subject: [PATCH] more cleanup --- input/fsh/byteflies/bp.fsh | 15 ---- input/fsh/byteflies/hr.fsh | 12 --- input/fsh/byteflies/weight.fsh | 17 ---- input/fsh/examples.fsh | 34 -------- input/fsh/models/fibricheck.fsh | 38 --------- input/fsh/models/patientmonitoring.fsh | 2 +- input/fsh/profiles.fsh | 96 --------------------- input/fsh/terminology.fsh | 112 ------------------------- input/includes/menu.xml | 2 + 9 files changed, 3 insertions(+), 325 deletions(-) delete mode 100644 input/fsh/byteflies/bp.fsh delete mode 100644 input/fsh/byteflies/hr.fsh delete mode 100644 input/fsh/byteflies/weight.fsh delete mode 100644 input/fsh/examples.fsh delete mode 100644 input/fsh/models/fibricheck.fsh delete mode 100644 input/fsh/profiles.fsh delete mode 100644 input/fsh/terminology.fsh diff --git a/input/fsh/byteflies/bp.fsh b/input/fsh/byteflies/bp.fsh deleted file mode 100644 index bbb357cc..00000000 --- a/input/fsh/byteflies/bp.fsh +++ /dev/null @@ -1,15 +0,0 @@ -Instance: tm-e678fa66-fa15-482b-a3a2-49fc5a071d33 -InstanceOf: $vitalsigns -Usage: #example -* status = #final -* category = $observation-category#vital-signs "Vital Signs" -* subject.reference = "FR_FL_3304" -* effectiveDateTime = "2023-08-18T07:05:19+00:00" -* code = $loinc#85354-9 -* component[0].code = $loinc#8480-6 "Systolic blood pressure" -* component[=].valueQuantity = 128 'mm[Hg]' "mmHg" -* component[+].code = $loinc#8462-4 "Diastolic blood pressure" -* component[=].valueQuantity = 71 'mm[Hg]' "mmHg" -* device.reference = "Bytelies - Vital Signs Service" - -// Findings: Added main code \ No newline at end of file diff --git a/input/fsh/byteflies/hr.fsh b/input/fsh/byteflies/hr.fsh deleted file mode 100644 index cff703c4..00000000 --- a/input/fsh/byteflies/hr.fsh +++ /dev/null @@ -1,12 +0,0 @@ -Instance: tm-e678fa66-fa15-482b-a3a2-49fc5a071d32 -InstanceOf: $vitalsigns -Usage: #example -* status = #final -* category = $observation-category#vital-signs "Vital Signs" -* subject.reference = "FR_FL_3304" -* effectiveDateTime = "2023-08-18T07:05:19+00:00" -* code = $loinc#8867-4 "Heart rate" -* valueQuantity = 67 '/min' "beats/minute" -* device.reference = "Byteflies - Vital Signs Service" - -// Findings: Use of Component is not needed and is not good for interoperability \ No newline at end of file diff --git a/input/fsh/byteflies/weight.fsh b/input/fsh/byteflies/weight.fsh deleted file mode 100644 index 66702fe1..00000000 --- a/input/fsh/byteflies/weight.fsh +++ /dev/null @@ -1,17 +0,0 @@ -Alias: $observation-category = http://terminology.hl7.org/CodeSystem/observation-category -Alias: $loinc = http://loinc.org -Alias: $vitalsigns = http://hl7.org/fhir/StructureDefinition/vitalsigns - -Instance: tm-e678fa66-fa15-482b-a3a2-49fc5a071d31 -InstanceOf: $vitalsigns -Usage: #example -* status = #final -* category = $observation-category#vital-signs "Vital Signs" -* code = $loinc#29463-7 "Body weight" -* subject.reference = "FR_FL_3304" -* effectiveDateTime = "2023-08-18T07:05:35+00:00" -* valueQuantity = 80.2 'kg' "kg" -* device.reference = "Bytelies - Vital Signs Service" - - -// Findings: Use of Component is not needed and is not good for interoperability \ No newline at end of file diff --git a/input/fsh/examples.fsh b/input/fsh/examples.fsh deleted file mode 100644 index cb3ce816..00000000 --- a/input/fsh/examples.fsh +++ /dev/null @@ -1,34 +0,0 @@ -Instance: ExampleHRMonitoringObs -InstanceOf: HRMonitoringObs -Usage: #example -* identifier.value = "1234567890" - -* subject = Reference(ExampleHRMonitoringPatient) -* component[hrValue].valueQuantity = 25 'ms' -* component[hrIndicator].valueCodeableConcept = FCHRFindingCS#25 -* component[symptoms].valueCodeableConcept = FCContextSymptomsCS#4 -* component[activityStatus].valueCodeableConcept = FCContextActivityCS#3 -* component[hrReport].valueCodeableConcept = #LowRisk -//* component[measurementAttempts].valueInteger = 2 -* device = Reference(ExampleSWDevice) -* code = #fibricheck -* effectiveDateTime = "2023-07-20T14:30:00Z" -* status = #final - - -Instance: ExampleHRMonitoringPatient -InstanceOf: HRMonitoringPatient -Usage: #example -* identifier[fibricheck-username].type = #username -* identifier[fibricheck-username].system = "http://somesystem/identifiertypes/username" -* identifier[fibricheck-username].value = "johndoe" -* identifier[fibricheck-userid].type = #userid -* identifier[fibricheck-userid].system = "http://somesystem/identifiertypes/userid" -* identifier[fibricheck-userid].value = "123456" - - -Instance: ExampleSWDevice -InstanceOf: SWDevice -Usage: #example -* version[software-version].type = urn:iso:std:iso:11073:10101#531975 -* version[software-version].value = "1.2.0" diff --git a/input/fsh/models/fibricheck.fsh b/input/fsh/models/fibricheck.fsh deleted file mode 100644 index 63936a03..00000000 --- a/input/fsh/models/fibricheck.fsh +++ /dev/null @@ -1,38 +0,0 @@ -Logical: FibricheckMeasurementModel -Id: FibricheckMeasurementModel -Title: "Fibricheck Measurement Logical Model" -Description: "The data structure for Fibricheck measurement events." - -* patient 1..1 BackboneElement "patient data" "patient data" - * fibricheckUserId 1..1 string "user id" "user id" - * nissNumber 1..1 string "Patient NISS Number" "Patient NISS Number" - * userName 1..1 HumanName "user name" "user name" - * userEmail 1..1 string "app version" "app version" - * dateOfBirth 1..1 date "Date of Birth" "Date of Birth" - -* status 1..1 code "Measurement status" "Measurement status" -* measurementTimeStamp 1..1 dateTime "Measurement timestamp" "Measurement timestamp" -* heartRhythm 0..1 BackboneElement "heart rhythm" "heart rhythm" - * hrindicator 0..1 code "the result of the finding and review" "the result of the finding and review" - * ^binding.valueSet = Canonical (FCHRIndicatorVS) - * ^binding.strength = #required - * hrReviewFinding 0..1 code "the finding after review" - * ^binding.valueSet = Canonical (FCHRFindingVS) - * ^binding.strength = #required - * rmssd 0..1 decimal "rmssd value" "root mean square of successive differences between normal heartbeats" -* context 0..1 BackboneElement "context during a finding" "context during a finding" - * symptoms 0..* code "symptoms" "symptoms" - * ^binding.valueSet = Canonical (FCContextSymptomsVS) - * ^binding.strength = #required - * activityStatus 0..1 code "activity status" "activity status" - * ^binding.valueSet = Canonical (FCContextActivityVS) - * ^binding.strength = #required - * chadsvasc 0..* code "previous chadsvasc questions and score" "previous chadsvasc questions and score" -* reports 0..1 BackboneElement "reports" "reports" - * eventReport 0..1 Attachment "event report" "event report" - * aggregatedReport 0..1 Attachment "Aggregated report" "Aggregated report" -* capture 0..1 BackboneElement "capture data" "capture data" - * measurementAttempts 1..1 integer "Measurement attempts" "Measurement attempts" - * appVersion 1..1 string "app version" "app version" - - diff --git a/input/fsh/models/patientmonitoring.fsh b/input/fsh/models/patientmonitoring.fsh index d3b592ac..64b48161 100644 --- a/input/fsh/models/patientmonitoring.fsh +++ b/input/fsh/models/patientmonitoring.fsh @@ -18,7 +18,7 @@ Description: "The data structure for Patient monitoring." * dateOfBirth 1..1 date "Date of Birth" "Date of Birth" -* device 0..1 BackboneElement "The device used to aquire or interpret the signals" +* device 0..1 BackboneElement "The device used to acquire or interpret the signals" * model 0..1 string "Model name" "Model name" * serialNumber 0..1 string "Serial number of the device" "Serial number of the device" * manufacturer 0..1 string "Name of the manufacturer" "Name of the manufacturer" diff --git a/input/fsh/profiles.fsh b/input/fsh/profiles.fsh deleted file mode 100644 index a5d5ca16..00000000 --- a/input/fsh/profiles.fsh +++ /dev/null @@ -1,96 +0,0 @@ -Profile: PatientMonitoringObservation -Parent: http://hl7.org/fhir/StructureDefinition/vitalsigns - -Profile: HRMonitoringObs -Parent: PatientMonitoringObservation - -* subject 1..1 -* subject only Reference(HRMonitoringPatient) - -* identifier 1..1 - -* component ^slicing.discriminator.type = #pattern -* component ^slicing.discriminator.path = "code" -* component ^slicing.rules = #open -* component ^slicing.description = "Observation components" - -* component contains hrValue 0..1 and hrIndicator 0..1 and hrReviewFinding 0..1 and symptoms 0..* and activityStatus 0..1 and hrReport 0..1 -// note that one of these may be upgraded to be the main observation value - -* component[hrValue] - * value[x] only Quantity - * code = #fibricheck-hr-value - -* component[hrIndicator] - * value[x] only CodeableConcept - * valueCodeableConcept from FCHRIndicatorVS - * code = #fibricheck-hr-indicator - -* component[hrReviewFinding] - * value[x] only CodeableConcept - * valueCodeableConcept from FCHRFindingVS - * code = #fibricheck-hr-review-finding - -* component[symptoms] - * value[x] only CodeableConcept - * valueCodeableConcept from FCContextSymptomsVS - * code = #fibricheck-symptoms - -* component[activityStatus] - * value[x] only CodeableConcept - * valueCodeableConcept from FCContextActivityVS - * code = #fibricheck-activity-status - -* component[hrReport] - * value[x] only CodeableConcept - * code = #fibricheck-report - -* code = #fibricheck -* effective[x] only dateTime -* effectiveDateTime 1..1 MS - - -Profile: MonitoringPatient -Parent: Patient - - -Profile: HRMonitoringPatient -Parent: MonitoringPatient - -* identifier MS - -* identifier ^slicing.discriminator.type = #value -* identifier ^slicing.discriminator.path = "system" -* identifier ^slicing.rules = #open -* identifier ^slicing.description = "Types of identifiers" -* identifier contains fibricheck-username 1..1 and fibricheck-userid 1..1 - -* identifier[fibricheck-userid] - * type = #userid - * system = "http://somesystem/identifiertypes/userid" - -* identifier[fibricheck-username] - * type = #username - * system = "http://somesystem/identifiertypes/username" - -// * identifier[fibricheck-userid] -// * type = #userid -// * system = "http://somesystem/identifiertypes/userid" - -// * identifier[fibricheck-username] -// * type = #username -// * system = "http://somesystem/identifiertypes/username" - - -Profile: SWDevice -Parent: Device - - -* version ^slicing.discriminator.type = #pattern -* version ^slicing.discriminator.path = "type" -* version ^slicing.rules = #open -* version ^slicing.description = "Types of versions" -* version contains software-version 1..1 - -* version[software-version].type = urn:iso:std:iso:11073:10101#531975 -* version[software-version].value MS \ No newline at end of file diff --git a/input/fsh/terminology.fsh b/input/fsh/terminology.fsh deleted file mode 100644 index c03480a0..00000000 --- a/input/fsh/terminology.fsh +++ /dev/null @@ -1,112 +0,0 @@ - - -CodeSystem: FCHRIndicatorCS -Id: FCHRIndicatorCS -Title: "HR Indicator Code System" -Description: "FCHRIndicator" -* ^experimental = false -* ^caseSensitive = true -* #normal "Normal" -* #warning "Warning" -* #urgent "Urgent" -* #quality "Quality" - - -ValueSet: FCHRIndicatorVS -Id: FCHRIndicatorVS -Title: "Heart Rate Indicator Value Set" -Description: "Codes representing the" -* include codes from system FCHRIndicatorCS -* ^experimental = false - - -CodeSystem: FCHRFindingCS -Id: FCHRFindingCS -Title: "HR Finding Code System" -Description: "FCHRFinding" -* ^experimental = false -* ^caseSensitive = true -* #1 "sinus_arrhythmia" -* #2 "extrasystoles_trig_episode" -* #3 "undiagnosable" -* #4 "extrasystoles_isolated" -* #5 "dubious_rhythm" -* #6 "extrasystoles" -* #7 "extrasystoles_trigeminy" -* #8 "tachy_episode" -* #9 "extrasystoles_frequent" -* #10 "phone_incompatible" -* #11 "extrasystoles_big_episode" -* #12 "increased_hrv" -* #13 "sinus" -* #14 "atrial_flutter" -* #15 "brady_episode" -* #16 "tachycardia" -* #17 "extrasystoles_bigminy" -* #18 "tachy_arrhytmia" -* #19 "pacemaker_rhythm" -* #20 "bradycardia" -* #21 "brady_arrhytmia" -* #22 "quality_to_low" -* #23 "atrial_fibrillation" -* #24 "other" -* #25 "no_diagnosis" - -ValueSet: FCHRFindingVS -Id: FCHRFindingVS -Title: "Heart Rate Finding Value Set" -Description: "Codes representing the" -* include codes from system FCHRFindingCS -* ^experimental = false - - -CodeSystem: FCContextSymptomsCS -Id: FCContextSymptomsCS -Title: "HR Context Symptoms Code System" -Description: "Context Symptoms" -* ^experimental = false -* ^caseSensitive = true -* #1 "no_symptoms" -* #2 "lightheaded" -* #3 "confused" -* #4 "fatigue" -* #5 "other" -* #6 "palpitations" -* #7 "chest_pains" -* #8 "shortness_of_breath" - - -ValueSet: FCContextSymptomsVS -Id: FCContextSymptomsVS -Title: "Context findings Value Set" -Description: "Codes representing the" -* include codes from system FCContextSymptomsCS -* ^experimental = false - - - -CodeSystem: FCContextActivityCS -Id: FCContextActivityCS -Title: "HR Context Activity Code System" -Description: "Context Activity" -* ^experimental = false -* ^caseSensitive = true -* #1 "activity" -* #2 "resting" -* #3 "sleeping" -* #4 "sitting" -* #5 "walking" -* #6 "working" -* #7 "exercising" -* #8 "other" -* #9 "standing" -* #10 "housekeeping" - - -ValueSet: FCContextActivityVS -Id: FCContextActivityVS -Title: "Context Activity Value Set" -Description: "Codes representing the" -* include codes from system FCContextActivityCS -* ^experimental = false - diff --git a/input/includes/menu.xml b/input/includes/menu.xml index 08a4f3e7..01acc95d 100644 --- a/input/includes/menu.xml +++ b/input/includes/menu.xml @@ -29,8 +29,10 @@ \ No newline at end of file