Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -177,26 +177,26 @@ def create_assessment(patient_id: str, code: str, value: str) -> DiagnosticRepor
|
|
177 |
report.effectiveDateTime = FHIRDate("2023-02-21")
|
178 |
|
179 |
return report
|
180 |
-
|
181 |
-
def create_rule() -> Library:
|
182 |
-
"""
|
183 |
-
Creates and returns a FHIR Library resource representing a rule.
|
184 |
-
"""
|
185 |
-
rule = Library()
|
186 |
-
rule.status = "draft"
|
187 |
-
rule.type = CodeableConcept()
|
188 |
-
rule.type.coding = [Coding()]
|
189 |
-
rule.type.coding[0].system = "http://terminology.hl7.org/CodeSystem/library-type"
|
190 |
-
rule.type.coding[0].code = "logic-library"
|
191 |
-
rule.type.coding[0].display = "Logic Library"
|
192 |
-
rule.content = [Attachment()]
|
193 |
-
rule.content[0].contentType = "text/cql"
|
194 |
-
rule.content[0].data = "some cql code here"
|
195 |
-
rule.relatedArtifact = [RelatedArtifact()]
|
196 |
-
rule.relatedArtifact[0].type = "depends-on"
|
197 |
-
rule.relatedArtifact[0].resource = {"reference": "Library/example-library"}
|
198 |
-
|
199 |
-
return rule
|
200 |
|
201 |
def create_referral_request(patient_id: str, reason: str, specialty: str, provider_name: str) -> ReferralRequest:
|
202 |
"""
|
|
|
177 |
report.effectiveDateTime = FHIRDate("2023-02-21")
|
178 |
|
179 |
return report
|
180 |
+
#
|
181 |
+
#def create_rule() -> Library:
|
182 |
+
# """
|
183 |
+
# Creates and returns a FHIR Library resource representing a rule.
|
184 |
+
# """
|
185 |
+
# rule = Library()
|
186 |
+
# rule.status = "draft"
|
187 |
+
# rule.type = CodeableConcept()
|
188 |
+
# rule.type.coding = [Coding()]
|
189 |
+
# rule.type.coding[0].system = "http://terminology.hl7.org/CodeSystem/library-type"
|
190 |
+
# rule.type.coding[0].code = "logic-library"
|
191 |
+
# rule.type.coding[0].display = "Logic Library"
|
192 |
+
# rule.content = [Attachment()]
|
193 |
+
# rule.content[0].contentType = "text/cql"
|
194 |
+
# rule.content[0].data = "some cql code here"
|
195 |
+
# rule.relatedArtifact = [RelatedArtifact()]
|
196 |
+
# rule.relatedArtifact[0].type = "depends-on"
|
197 |
+
# rule.relatedArtifact[0].resource = {"reference": "Library/example-library"}
|
198 |
+
|
199 |
+
# return rule
|
200 |
|
201 |
def create_referral_request(patient_id: str, reason: str, specialty: str, provider_name: str) -> ReferralRequest:
|
202 |
"""
|