0.1.0 - ci-build
CAREWareFHIRDataDictionary - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
PDI Column: mdc_start_date
FHIR Element: Medication.status
CWFP Implementation:
column mdc_start_date {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if not status.StringValue contains 'active'{
found ''
}
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult MedStart = resource.authoredOn
if MedStart.Found {
found MedStart
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: mdc_start_date
FHIR Element: Medication.status
CWFP Implementation:
column mdc_start_date {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if not status.StringValue contains 'active'{
found ''
}
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult MedStart = resource.authoredOn
if MedStart.Found {
found MedStart
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: mdc_start_date
FHIR Element: Medication.status
CWFP Implementation:
column mdc_start_date {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if not status.StringValue contains 'active'{
found ''
}
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult MedStart = resource.authoredOn
if MedStart.Found {
found MedStart
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: mdc_pk
FHIR Element: Medication.status
CWFP Implementation:
column mdc_pk {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if status.StringValue contains 'active'{
findResult startDate = resource.authoredOn
if startDate.Found{
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult MedStart = resource.id
found MedStart
}
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: mdc_end_date
FHIR Element: Medication.authoredOn
CWFP Implementation:
column mdc_end_date {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if status.StringValue contains 'active'{
findResult startDate = resource.authoredOn
if startDate.Found{
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult enddate = resource.dispenseRequest.validityPeriod.end
found enddate
}
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: mdc_instructions
FHIR Element: Medication.authoredOn
CWFP Implementation:
column mdc_instructions {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if status.StringValue contains 'active'{
findResult startDate = resource.authoredOn
if startDate.Found{
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult instructions = resource.dosageInstruction[0]patientInstruction
found instructions
}
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: mdc_cs_#_def_code
FHIR Element: Medication.authoredOn
CWFP Implementation:
column mdc_cs_#_def_code {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if status.StringValue contains 'active'{
findResult startDate = resource.authoredOn
if startDate.Found{
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
found def
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: mdc_cs_#
FHIR Element: Medication.authoredOn
CWFP Implementation:
column mdc_cs_# {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if status.StringValue contains 'active'{
findResult startDate = resource.authoredOn
if startDate.Found{
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult cs =resource.medicationReference.reference.code.coding[findAllSystems]system
found cs
}
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}
PDI Column: match_id
FHIR Element: Medication.authoredOn
CWFP Implementation:
column match_id {
note This establishes the start date of the med.
findResult status = resource.status
if status.Found{
if status.StringValue contains 'active'{
findResult startDate = resource.authoredOn
if startDate.Found{
findResult def = resource.medicationReference.reference.code.coding[findAllSystems]code
if def.Found{
findResult id = resource.subject.reference.id
found id
}
}
}
}
}
Other CWFP Query:
forEachObj findAllSystems {
note this section of code will get run for each element in the array it is assigned to
findResult sys = system
findResult cd = code
if sys.StringValue.ToLower contains 'rxnorm' {
if cd.StringValue = '1597388' {
found sys
}
}
}