Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for validation #53

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions synthea/qpp_qicore.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: QI Core - 130 minimal and QPP
name: QI Core - QPP
applicability: true

customValueSets:
Expand Down Expand Up @@ -119,14 +119,16 @@ actions:
profiles:
- http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest
fields:
- location: DeviceRequest.code.reference
- location: DeviceRequest.codeReference.reference
value: $findRef([Device])
- location: DeviceRequest.authoredOn
value: $getField([Device.manufactureDate]) # manufacture time is set 3 weeks before device model's start, so this is close enough
- location: DeviceRequest.status
value: completed
- location: DeviceRequest.intent
value: order
- location: DeviceRequest.subject.reference
value: $findRef([Patient])
# Creating one AdverseEvent per patient
- resourceType: AdverseEvent
based_on:
Expand All @@ -136,6 +138,10 @@ actions:
fields:
- location: AdverseEvent.event.coding
value: $randomCode([http://hl7.org/fhir/ValueSet/adverse-event-type]) # may change in future to use a smaller subset of the ValueSet
- location: AdverseEvent.subject.reference
value: $findRef([Patient])
- location: AdverseEvent.actuality
value: $randomCode([http://hl7.org/fhir/ValueSet/adverse-event-actuality,code])
# Creating one Communication per patient
- resourceType: Communication
based_on:
Expand Down Expand Up @@ -177,3 +183,6 @@ actions:
value: $randomCode([http://hl7.org/fhir/ValueSet/task-code]) # randomize based on values available
- location: Task.executionPeriod
value: $getField([Procedure.performed])
- location: Task.intent
value: $randomCode([http://hl7.org/fhir/ValueSet/task-intent,code])

Loading