HIV Screening Clinical Guidelines Implementation Guide
0.1.0 - CI Build Unknown region code '840'

HIV Screening Clinical Guidelines Implementation Guide, published by National Association of Community Health Centers, Inc. (NACHC). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/hiv-cds/ and changes regularly. See the Directory of published versions

HIV Screening Recommendation

Functional Description

An implementation of the CDC HIV Screening Recommendation utilizing FHIR and CDS-Hooks Integration to establish Clinical Decision Support Workflows for HIV Screening.

Content

The following artifacts formalize the description of the logic and behavior defined by this recommendation.

ResourceTypeDescription
CDC HIV Screening Recommendation - Plan DefinitionPlan DefinitionClinical Decision Support Document that defines and exposes actions utilized for a CDS-Hooks request.
CDC HIV Screening Recommendation - LibraryLibraryCQL Library that provides the logic needed for the HIV Screening Recommendation.

Common Libraries

ResourceTypeDescription
FHIR HelpersLibraryCQL Library that provides common logic for modeling FHIR R4.
FHIR CommonLibraryA Shared library encapsulating valuable common terminologies and functions used in FHIR-based CQL artifacts.
NACHC CommonLibraryA Shared library encapsulating valuable common core functions for NACHC content.
HIV CommonLibraryA Shared library encapsulating valuable common functions for HIV Screening.
HIV ConceptsLibraryA Generated Logic library encapsulating necessary concepts and terminology for HIV Screening.
HIV Data ElementsLibraryA Generated Logic library encapsulating necessary concepts and data elements in relation for HIV Screening in context of the Patient.

Example Data / Requests

DescriptionBundleCDS Hooks RequestExpected Response
Patient that is Recommended for HIV Screening. Test Bundle
{
    "hookInstance": "test",
    "fhirServer": "http://localhost:8080/cqf-ruler-r4/fhir",
    "hook": "patient-view",
    "context": {
        "userId": "Practitioner/example",
        "patientId": "Patient/InclusionPatient"
    },
    "prefetch": {
        "item1": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Patient",
                "id": "InclusionPatient",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-patient"
                    ]
                },
                "extension": [{
                    "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexualorientation",
                    "extension": [{
                        "url": "Sexual Orientation",
                        "valueCodeableConcept": {
                            "coding": [{
                                "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                "code": "NACHC.A0.DE50",
                                "display": "Straight or heterosexual"
                            }, {
                                "system": "http://snomed.info/sct",
                                "code": "20430005",
                                "display": "Straight or heterosexual"
                            }]
                        }
                    }]
                }, {
                    "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/genderidentity",
                    "extension": [{
                        "url": "Gender Identity",
                        "valueCodeableConcept": {
                            "coding": [{
                                "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                "code": "NACHC.A0.DE56",
                                "display": "Male"
                            }, {
                                "system": "http://snomed.info/sct",
                                "code": "446151000124109",
                                "display": "Male"
                            }]
                        }
                    }]
                }],
                "identifier": [{
                    "use": "usual",
                    "type": {
                        "coding": [{
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                            "code": "MR"
                        }]
                    },
                    "system": "urn:oid:1.2.36.146.595.217.0.1",
                    "value": "12345",
                    "period": {
                        "start": "2001-05-06"
                    },
                    "assigner": {
                        "display": "Acme Healthcare"
                    }
                }],
                "active": true,
                "name": [{
                        "use": "official",
                        "family": "Chalmers",
                        "given": [
                            "Peter",
                            "James"
                        ]
                    },
                    {
                        "use": "usual",
                        "family": "Chalmers",
                        "given": [
                            "Jim"
                        ]
                    },
                    {
                        "use": "maiden",
                        "family": "Windsor",
                        "given": [
                            "Peter",
                            "James"
                        ],
                        "period": {
                            "end": "2002"
                        }
                    }
                ],
                "telecom": [{
                        "system": "phone",
                        "value": "(03) 5555 6473",
                        "use": "work",
                        "rank": 1
                    },
                    {
                        "system": "phone",
                        "value": "(03) 3410 5613",
                        "use": "mobile",
                        "rank": 2
                    },
                    {
                        "system": "phone",
                        "value": "(03) 5555 8834",
                        "use": "old",
                        "period": {
                            "end": "2014"
                        }
                    }
                ],
                "gender": "male",
                "birthDate": "1974-12-25",
                "deceasedBoolean": false,
                "address": [{
                    "use": "home",
                    "type": "both",
                    "text": "534 Erewhon St PeasantVille, Utah 84414",
                    "line": [
                        "534 Erewhon St"
                    ],
                    "city": "PleasantVille",
                    "district": "Rainbow",
                    "state": "UT",
                    "postalCode": "84414",
                    "period": {
                        "start": "1974-12-25"
                    }
                }],
                "contact": [{
                    "relationship": [{
                        "coding": [{
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0131",
                            "code": "N"
                        }]
                    }],
                    "name": {
                        "family": "du Marché",
                        "_family": {
                            "extension": [{
                                "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix",
                                "valueString": "VV"
                            }]
                        },
                        "given": [
                            "Bénédicte"
                        ]
                    },
                    "telecom": [{
                        "system": "phone",
                        "value": "+33 (237) 998327"
                    }],
                    "address": {
                        "use": "home",
                        "type": "both",
                        "line": [
                            "534 Erewhon St"
                        ],
                        "city": "PleasantVille",
                        "district": "Rainbow",
                        "state": "VT",
                        "postalCode": "3999",
                        "period": {
                            "start": "1974-12-25"
                        }
                    },
                    "gender": "female",
                    "period": {
                        "start": "2012"
                    }
                }],
                "generalPractitioner": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }],
                "managingOrganization": {
                    "reference": "Organization/example"
                }
            }
        },
        "item2": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Encounter",
                "id": "InclusionPatient-encounter-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/patient-encounter"
                    ]
                },
                "status": "in-progress",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "AMB",
                    "display": "ambulatory"
                },
                "type": [{
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.A0.DE2",
                        "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                    }, {
                        "system": "http://www.ama-assn.org/go/cpt",
                        "code": "99202",
                        "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                    }]
                }],
                "subject": {
                    "reference": "Patient/InclusionPatient"
                },
                "period": {
                    "start": "2021-05-10T12:00:00-07:00",
                    "end": "2021-05-10T13:20:00-07:00"
                }
            }
        },
        "item3": {
            "response": {
                "status": "200 OK"
            },
            "resource": null
        },
        "item4": {
            "response": {
                "status": "200 OK"
            },
            "resource": null
        }
    }
}
{
  "cards": [
    {
      "summary": "HIV Screening",
      "indicator": "info",
      "detail": "Peter Chalmers",
      "source": {
        "label": "Info for those with HIV",
        "url": "https://www.cdc.gov/hiv/guidelines/testing.html"
      }
    },
    {
      "summary": "HIV Screening Recommended due to patient never having been tested.",
      "indicator": "info",
      "detail": "CDC recommends that diagnostic HIV testing and opt-out HIV screening be a part of routine clinical care in all health-care settings while also preserving the patients option to decline HIV testing and ensuring a provider-patient relationship conducive to optimal clinical and preventive care.",
      "source": {},
      "selectionBehavior": "any",
      "suggestions": [
        {
          "label": "Recommend HIV Screening Test.",
          "actions": [
            {
              "type": "create",
              "description": "CDC recommends that diagnostic HIV testing and opt-out HIV screening be a part of routine clinical care in all health-care settings while also preserving the patients option to decline HIV testing and ensuring a provider-patient relationship conducive to optimal clinical and preventive care.",
              "resource": {
                "resourceType": "ServiceRequest",
                "status": "draft",
                "intent": "proposal",
                "code": {
                  "coding": [
                    {
                      "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                      "code": "NACHC.A2.DE218",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    },
                    {
                      "system": "http://snomed.info/sct",
                      "code": "31676001",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    }
                  ]
                },
                "subject": {
                  "reference": "Patient/InclusionPatient"
                },
                "asNeededBoolean": true
              }
            }
          ]
        }
      ]
    }
  ]
}
Patient that is Excluded from HIV Screening. Test Bundle
{
    "hookInstance": "test",
    "fhirServer": "http://localhost:8080/cqf-ruler-r4/fhir",
    "hook": "patient-view",
    "context": {
        "userId": "Practitioner/example",
        "patientId": "Patient/ExclusionPatient"
    },
    "prefetch": {
        "item1": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Patient",
                "id": "ExclusionPatient",
                "meta": {
                    "profile": ["http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-patient"]
                },
                "extension": [{
                    "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexualorientation",
                    "extension": [{
                        "url": "Sexual Orientation",
                        "valueCodeableConcept": {
                            "coding": [{
                                "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                "code": "NACHC.A0.DE49",
                                "display": "Lesbian, gay or homosexual"
                            }, {
                                "system": "http://snomed.info/sct",
                                "code": "38628009",
                                "display": "Lesbian, gay or homosexual"
                            }]
                        }
                    }]
                }, {
                    "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/genderidentity",
                    "extension": [{
                        "url": "Gender Identity",
                        "valueCodeableConcept": {
                            "coding": [{
                                "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                "code": "NACHC.A0.DE57",
                                "display": "Female"
                            }, {
                                "system": "http://snomed.info/sct",
                                "code": "446141000124107",
                                "display": "Female"
                            }]
                        }
                    }]
                }],
                "identifier": [{
                    "use": "usual",
                    "type": {
                        "coding": [{
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                            "code": "MR"
                        }]
                    },
                    "system": "urn:oid:1.2.36.146.595.217.0.1",
                    "value": "12345",
                    "period": {
                        "start": "2001-05-06"
                    },
                    "assigner": {
                        "display": "Acme Healthcare"
                    }
                }],
                "active": true,
                "name": [{
                    "use": "official",
                    "family": "Merryweather",
                    "given": ["Sally"]
                }],
                "gender": "female",
                "birthDate": "1994-11-22",
                "deceasedBoolean": false,
                "generalPractitioner": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }]
            }
        },
        "item2": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Encounter",
                "id": "ExclusionPatient-encounter-1",
                "meta": {
                    "profile": ["http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/patient-encounter"]
                },
                "status": "in-progress",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "AMB",
                    "display": "ambulatory"
                },
                "type": [{
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.A0.DE2",
                        "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                    }, {
                        "system": "http://www.ama-assn.org/go/cpt",
                        "code": "99202",
                        "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                    }]
                }],
                "subject": {
                    "reference": "Patient/ExclusionPatient"
                },
                "period": {
                    "start": "2021-05-10T14:00:00-07:00",
                    "end": "2021-05-10T15:20:00-07:00"
                }
            }
        },
        "item3": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Condition",
                "id": "ExclusionPatient-condition-hiv-1",
                "meta": {
                    "profile": ["http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-diagnosis"]
                },
                "clinicalStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                        "version": "0.5.0",
                        "code": "active",
                        "display": "Active"
                    }]
                },
                "verificationStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                        "version": "0.5.0",
                        "code": "confirmed",
                        "display": "Confirmed"
                    }]
                },
                "category": [{
                    "coding": [{
                        "system": "http://terminology.hl7.org/ValueSet/condition-category",
                        "version": "0.5.0",
                        "code": "encounter-diagnosis",
                        "display": "Encounter Diagnosis"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.A1.DE2",
                        "display": "Acquired hemolytic anemia co-occurrent with human immunodeficiency virus infection (disorder)"
                    }, {
                        "system": "http://snomed.info/sct",
                        "code": "713533000",
                        "display": "Acquired hemolytic anemia co-occurrent with human immunodeficiency virus infection (disorder)"
                    }]
                },
                "subject": {
                    "reference": "Patient/ExclusionPatient"
                },
                "onsetDateTime": "2014-01-10T14:00:00-07:00",
                "abatementDateTime": "2021-07-10T14:00:00-07:00"
            }
        },
        "item4": {
            "response": {
                "status": "200 OK"
            },
            "resource": null
        }
    }
}
{
  "cards": [
    {
      "summary": "HIV Screening",
      "indicator": "info",
      "detail": "Sally Merryweather",
      "source": {
        "label": "Info for those with HIV",
        "url": "https://www.cdc.gov/hiv/guidelines/testing.html"
      }
    },
    {
      "summary": "Exclusion from HIV Screening",
      "indicator": "info",
      "detail": "Patient was excluded from HIV Screening due to the patient already having been diagnosed with HIV.",
      "source": {}
    }
  ]
}
Patient that is at High Risk due to STDs. Test Bundle
{
    "hookInstance": "test",
    "fhirServer": "http://localhost:8080/cqf-ruler-r4/fhir",
    "hook": "patient-view",
    "context": {
        "userId": "Practitioner/example",
        "patientId": "Patient/HighRiskSTDPatient"
    },
    "prefetch": {
        "item1": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Patient",
                "id": "HighRiskSTDPatient",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-patient"
                    ]
                },
                "extension": [{
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexualorientation",
                        "extension": [{
                            "url": "Sexual Orientation",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE50",
                                        "display": "Straight or heterosexual"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "20430005",
                                        "display": "Straight or heterosexual"
                                    }
                                ]
                            }
                        }]
                    },
                    {
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/genderidentity",
                        "extension": [{
                            "url": "Gender Identity",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE56",
                                        "display": "Male"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "446151000124109",
                                        "display": "Male"
                                    }
                                ]
                            }
                        }]
                    }
                ],
                "identifier": [{
                    "use": "usual",
                    "type": {
                        "coding": [{
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                            "code": "MR"
                        }]
                    },
                    "system": "urn:oid:1.2.36.146.595.217.0.1",
                    "value": "12345",
                    "period": {
                        "start": "2001-05-06"
                    },
                    "assigner": {
                        "display": "Acme Healthcare"
                    }
                }],
                "active": true,
                "name": [{
                    "use": "official",
                    "family": "Jones",
                    "given": [
                        "John"
                    ]
                }],
                "gender": "male",
                "birthDate": "1982-08-08",
                "deceasedBoolean": false,
                "generalPractitioner": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }]
            }
        },
        "item2": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Encounter",
                "id": "HighRiskSTDPatient-encounter-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/patient-encounter"
                    ]
                },
                "status": "in-progress",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "AMB",
                    "display": "ambulatory"
                },
                "type": [{
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.A0.DE2",
                            "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                        },
                        {
                            "system": "http://www.ama-assn.org/go/cpt",
                            "code": "99202",
                            "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                        }
                    ]
                }],
                "subject": {
                    "reference": "Patient/HighRiskSTDPatient"
                },
                "period": {
                    "start": "2021-07-08T10:00:00-07:00",
                    "end": "2021-07-08T11:20:00-07:00"
                }
            }
        },
        "item3": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Condition",
                "id": "HighRiskSTDPatient-condition-hcv-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hepatitis-c-diagnosis"
                    ]
                },
                "clinicalStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                        "version": "0.5.0",
                        "code": "active",
                        "display": "Active"
                    }]
                },
                "verificationStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                        "version": "0.5.0",
                        "code": "confirmed",
                        "display": "Confirmed"
                    }]
                },
                "category": [{
                    "coding": [{
                        "system": "http://terminology.hl7.org/ValueSet/condition-category",
                        "version": "0.5.0",
                        "code": "encounter-diagnosis",
                        "display": "Encounter Diagnosis"
                    }]
                }],
                "code": {
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.B1.DE83",
                            "display": "Chronic lymphocytic cholangitis-cholangiohepatitis (disorder)"
                        },
                        {
                            "system": "http://snomed.info/sct",
                            "code": "9843006",
                            "display": "Chronic lymphocytic cholangitis-cholangiohepatitis (disorder)"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/HighRiskSTDPatient"
                },
                "onsetDateTime": "2020-07-10T14:00:00-07:00",
                "abatementDateTime": "2021-07-10T14:00:00-07:00"
            }
        },
        "item4": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Observation",
                "id": "HighRiskSTDPatient-observation-seeking-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/seeking-std-treatment"
                    ]
                },
                "status": "preliminary",
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.H1.DE9",
                        "display": "Seeking STD Treatment"
                    }]
                },
                "subject": {
                    "reference": "Patient/HighRiskSTDPatient"
                },
                "encounter": {
                    "reference": "Encounter/HighRiskSTDPatient-encounter-1"
                },
                "effectiveDateTime": "2021-07-08T10:20:00-07:00",
                "valueBoolean": true
            }
        },
        "item5": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Observation",
                "id": "HighRiskSTDPatient-observation-screening-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-test"
                    ]
                },
                "status": "final",
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.A2.DE1",
                        "display": "HIV Test"
                    }]
                },
                "subject": {
                    "reference": "Patient/HighRiskSTDPatient"
                },
                "encounter": {
                    "reference": "Encounter/HighRiskSTDPatient-encounter-1"
                },
                "effectiveDateTime": "2021-03-08T10:00:00-07:00",
                "performer": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }],
                "valueCodeableConcept": {
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.A2.DE215",
                            "display": "HIV proviral DNA [Presence] in Blood by Probe with amplification"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "2898779",
                            "display": "HIV proviral DNA [Presence] in Blood by Probe with amplification"
                        }
                    ]
                }
            }
        }
    }
}
{
  "cards": [
    {
      "summary": "HIV Screening",
      "indicator": "info",
      "detail": "John Jones",
      "source": {
        "label": "Info for those with HIV",
        "url": "https://www.cdc.gov/hiv/guidelines/testing.html"
      }
    },
    {
      "summary": "HIV Screening Recommended now due to patient interest.",
      "indicator": "info",
      "detail": "All patients seeking treatment for STDs, including all patients attending STD clinics, should be screened routinely for HIV during each visit for a new complaint, regardless of whether the patient is known or suspected to have specific behavior risks for HIV infection.",
      "source": {},
      "selectionBehavior": "any",
      "suggestions": [
        {
          "label": "Recommend HIV Screening Test.",
          "actions": [
            {
              "type": "create",
              "description": "All patients seeking treatment for STDs, including all patients attending STD clinics, should be screened routinely for HIV during each visit for a new complaint, regardless of whether the patient is known or suspected to have specific behavior risks for HIV infection.",
              "resource": {
                "resourceType": "ServiceRequest",
                "status": "draft",
                "intent": "proposal",
                "code": {
                  "coding": [
                    {
                      "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                      "code": "NACHC.A2.DE218",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    },
                    {
                      "system": "http://snomed.info/sct",
                      "code": "31676001",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    }
                  ]
                },
                "subject": {
                  "reference": "Patient/HighRiskSTDPatient"
                },
                "asNeededBoolean": true
              }
            }
          ]
        }
      ]
    }
  ]
}
Patient that is at High Risk due to Injection Drug Use. Test Bundle
{
    "hookInstance": "test",
    "fhirServer": "http://localhost:8080/cqf-ruler-r4/fhir",
    "hook": "patient-view",
    "context": {
        "userId": "Practitioner/example",
        "patientId": "Patient/HighRiskIDUPatient"
    },
    "prefetch": {
        "item1": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Patient",
                "id": "HighRiskIDUPatient",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-patient"
                    ]
                },
                "extension": [{
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexualorientation",
                        "extension": [{
                            "url": "Sexual Orientation",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE49",
                                        "display": "Lesbian, gay or homosexual"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "38628009",
                                        "display": "Lesbian, gay or homosexual"
                                    }
                                ]
                            }
                        }]
                    },
                    {
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/genderidentity",
                        "extension": [{
                            "url": "Gender Identity",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE57",
                                        "display": "Female"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "446141000124107",
                                        "display": "Female"
                                    }
                                ]
                            }
                        }]
                    }
                ],
                "identifier": [{
                    "use": "usual",
                    "type": {
                        "coding": [{
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                            "code": "MR"
                        }]
                    },
                    "system": "urn:oid:1.2.36.146.595.217.0.1",
                    "value": "12345",
                    "period": {
                        "start": "2001-05-06"
                    },
                    "assigner": {
                        "display": "Acme Healthcare"
                    }
                }],
                "active": true,
                "name": [{
                    "use": "official",
                    "family": "Madelyn",
                    "given": [
                        "Ashley"
                    ]
                }],
                "gender": "female",
                "birthDate": "2002-02-02",
                "deceasedBoolean": false,
                "generalPractitioner": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }]
            }
        },
        "item2": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Encounter",
                "id": "HighRiskIDUPatient-encounter-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/patient-encounter"
                    ]
                },
                "status": "in-progress",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "AMB",
                    "display": "ambulatory"
                },
                "type": [{
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.A0.DE2",
                            "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                        },
                        {
                            "system": "http://www.ama-assn.org/go/cpt",
                            "code": "99202",
                            "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                        }
                    ]
                }],
                "subject": {
                    "reference": "Patient/HighRiskIDUPatient"
                },
                "period": {
                    "start": "2021-07-08T08:00:00-07:00",
                    "end": "2021-07-08T09:20:00-07:00"
                }
            }
        },
        "item3": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Condition",
                "id": "HighRiskIDUPatient-condition-hcv-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hepatitis-c-diagnosis"
                    ]
                },
                "clinicalStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                        "version": "0.5.0",
                        "code": "active",
                        "display": "Active"
                    }]
                },
                "verificationStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                        "version": "0.5.0",
                        "code": "confirmed",
                        "display": "Confirmed"
                    }]
                },
                "category": [{
                    "coding": [{
                        "system": "http://terminology.hl7.org/ValueSet/condition-category",
                        "version": "0.5.0",
                        "code": "encounter-diagnosis",
                        "display": "Encounter Diagnosis"
                    }]
                }],
                "code": {
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.F1.DE16",
                            "display": "Streptococcal sepsis"
                        },
                        {
                            "system": "http://hl7.org/fhir/sid/icd-10",
                            "code": "A40",
                            "display": "Streptococcal sepsis"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/HighRiskIDUPatient"
                },
                "onsetDateTime": "2018-07-10T14:00:00-07:00"
            }
        },
        "item4": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Observation",
                "id": "HighRiskIDUPatient-observation-screening-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-test"
                    ]
                },
                "status": "final",
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.A2.DE1",
                        "display": "HIV Test"
                    }]
                },
                "subject": {
                    "reference": "Patient/HighRiskIDUPatient"
                },
                "encounter": {
                    "reference": "Encounter/HighRiskIDUPatient-encounter-1"
                },
                "effectiveDateTime": "2021-03-08T10:00:00-07:00",
                "performer": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }],
                "valueCodeableConcept": {
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.A2.DE215",
                            "display": "HIV proviral DNA [Presence] in Blood by Probe with amplification"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "2898779",
                            "display": "HIV proviral DNA [Presence] in Blood by Probe with amplification"
                        }
                    ]
                }
            }
        }
    }
}
{
  "cards": [
    {
      "summary": "HIV Screening",
      "indicator": "info",
      "detail": "Ashley Madelyn",
      "source": {
        "label": "Info for those with HIV",
        "url": "https://www.cdc.gov/hiv/guidelines/testing.html"
      }
    },
    {
      "summary": "HIV Screening Recommended due to patient being at High Risk for HIV and over three months have passed since previous screening.",
      "indicator": "critical",
      "detail": "Health-care providers should subsequently test all persons likely to be at high risk for HIV at least every 3 months. Persons likely to be at high risk include persons with problems related to drug abuse, injection-drug users and their sex partners, persons who exchange sex for money or drugs, sex partners of HIV-infected persons, and MSM or heterosexual persons who themselves or whose sex partners have had more than one sex partner since their most recent HIV test.",
      "source": {},
      "selectionBehavior": "any",
      "suggestions": [
        {
          "label": "Recommend HIV Screening Test.",
          "actions": [
            {
              "type": "create",
              "description": "Health-care providers should subsequently test all persons likely to be at high risk for HIV at least every 3 months. Persons likely to be at high risk include persons with problems related to drug abuse, injection-drug users and their sex partners, persons who exchange sex for money or drugs, sex partners of HIV-infected persons, and MSM or heterosexual persons who themselves or whose sex partners have had more than one sex partner since their most recent HIV test.",
              "resource": {
                "resourceType": "ServiceRequest",
                "status": "draft",
                "intent": "proposal",
                "code": {
                  "coding": [
                    {
                      "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                      "code": "NACHC.A2.DE218",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    },
                    {
                      "system": "http://snomed.info/sct",
                      "code": "31676001",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    }
                  ]
                },
                "subject": {
                  "reference": "Patient/HighRiskIDUPatient"
                },
                "asNeededBoolean": true
              }
            }
          ]
        }
      ]
    }
  ]
}
Patient that is Pregnant in the Third Trimester while also being High Risk. Test Bundle
{
    "hookInstance": "test",
    "fhirServer": "http://localhost:8080/cqf-ruler-r4/fhir",
    "hook": "patient-view",
    "context": {
        "userId": "Practitioner/example",
        "patientId": "Patient/HighRiskPregnantPatient"
    },
    "prefetch": {
        "item1": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Patient",
                "id": "HighRiskPregnantPatient",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-patient"
                    ]
                },
                "extension": [{
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexualorientation",
                        "extension": [{
                            "url": "Sexual Orientation",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE50",
                                        "display": "Straight or heterosexual"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "20430005",
                                        "display": "Straight or heterosexual"
                                    }
                                ]
                            }
                        }]
                    },
                    {
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/genderidentity",
                        "extension": [{
                            "url": "Gender Identity",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE57",
                                        "display": "Female"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "446141000124107",
                                        "display": "Female"
                                    }
                                ]
                            }
                        }]
                    }
                ],
                "identifier": [{
                    "use": "usual",
                    "type": {
                        "coding": [{
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                            "code": "MR"
                        }]
                    },
                    "system": "urn:oid:1.2.36.146.595.217.0.1",
                    "value": "12345",
                    "period": {
                        "start": "2001-05-06"
                    },
                    "assigner": {
                        "display": "Acme Healthcare"
                    }
                }],
                "active": true,
                "name": [{
                    "use": "official",
                    "family": "Coraline",
                    "given": [
                        "Beatrix"
                    ]
                }],
                "gender": "female",
                "birthDate": "1989-01-12",
                "deceasedBoolean": false,
                "generalPractitioner": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }]
            }
        },
        "item2": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Encounter",
                "id": "HighRiskPregnantPatient-encounter-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/third-trimester-encounters"
                    ]
                },
                "status": "in-progress",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "AMB",
                    "display": "ambulatory"
                },
                "type": [{
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.F2.DE39",
                            "display": "Encounter for supervision of normal first pregnancy, third trimester"
                        },
                        {
                            "system": "http://hl7.org/fhir/sid/icd-10",
                            "code": "Z34.03",
                            "display": "Encounter for supervision of normal first pregnancy, third trimester"
                        }
                    ]
                }],
                "subject": {
                    "reference": "Patient/HighRiskPregnantPatient"
                },
                "period": {
                    "start": "2021-07-30T10:00:00-07:00",
                    "end": "2021-07-30T11:20:00-07:00"
                }
            }
        },
        "item3": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Condition",
                "id": "HighRiskPregnantPatient-condition-pregnant-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/pregnancy-conditions"
                    ]
                },
                "clinicalStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                        "version": "0.5.0",
                        "code": "active",
                        "display": "Active"
                    }]
                },
                "verificationStatus": {
                    "coding": [{
                        "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                        "version": "0.5.0",
                        "code": "confirmed",
                        "display": "Confirmed"
                    }]
                },
                "category": [{
                    "coding": [{
                        "system": "http://terminology.hl7.org/ValueSet/condition-category",
                        "version": "0.5.0",
                        "code": "encounter-diagnosis",
                        "display": "Encounter Diagnosis"
                    }]
                }],
                "code": {
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.F2.DE1132",
                            "display": "Obstetrical tetanus"
                        },
                        {
                            "system": "http://hl7.org/fhir/sid/icd-10",
                            "code": "A34",
                            "display": "Obstetrical tetanus"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/HighRiskPregnantPatient"
                },
                "onsetDateTime": "2021-01-10T12:00:00-07:00"
            }
        },
        "item4": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Observation",
                "id": "HighRiskPregnantPatient-observation-multiple-2",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexual-activity-number-of-partners"
                    ]
                },
                "status": "preliminary",
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.H1.DE15",
                        "display": "Sexual Activity - Number of Partners"
                    }]
                },
                "subject": {
                    "reference": "Patient/HighRiskPregnantPatient"
                },
                "encounter": {
                    "reference": "Encounter/HighRiskSTDPatient-encounter-1"
                },
                "effectiveDateTime": "2021-07-30T10:30:00-07:00",
                "valueBoolean": true
            },
            "item5": {
                "response": {
                    "status": "200 OK"
                },
                "resource": {
                    "resourceType": "Observation",
                    "id": "HighRiskPregnantPatient-observation-screening-1",
                    "meta": {
                        "profile": [
                            "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-test"
                        ]
                    },
                    "status": "final",
                    "code": {
                        "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.A2.DE1",
                            "display": "HIV Test"
                        }]
                    },
                    "subject": {
                        "reference": "Patient/HighRiskPregnantPatient"
                    },
                    "effectiveDateTime": "2021-02-08T10:20:00-07:00",
                    "valueCodeableConcept": {
                        "coding": [{
                                "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                "code": "NACHC.A2.DE215",
                                "display": "HIV proviral DNA [Presence] in Blood by Probe with amplification"
                            },
                            {
                                "system": "http://loinc.org",
                                "code": "2898779",
                                "display": "HIV proviral DNA [Presence] in Blood by Probe with amplification"
                            }
                        ]
                    }
                }
            }
        }
    }
}
{
  "cards": [
    {
      "summary": "HIV Screening",
      "indicator": "info",
      "detail": "Beatrix Coraline",
      "source": {
        "label": "Info for those with HIV",
        "url": "https://www.cdc.gov/hiv/guidelines/testing.html"
      }
    },
    {
      "summary": "HIV Screening Recommended due to patient being at high risk of HIV during third trimester of pregnancy.",
      "indicator": "critical",
      "detail": "A second HIV test during the third trimester for women in settings with elevated HIV incidence (\u003e17 cases per 100,000 person-years) is cost-effective and might result in substantial reductions in mother-to-child HIV transmission.",
      "source": {},
      "selectionBehavior": "any",
      "suggestions": [
        {
          "label": "Recommend HIV Screening Test.",
          "actions": [
            {
              "type": "create",
              "description": "A second HIV test during the third trimester for women in settings with elevated HIV incidence (\u003e17 cases per 100,000 person-years) is cost-effective and might result in substantial reductions in mother-to-child HIV transmission.",
              "resource": {
                "resourceType": "ServiceRequest",
                "status": "draft",
                "intent": "proposal",
                "code": {
                  "coding": [
                    {
                      "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                      "code": "NACHC.A2.DE218",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    },
                    {
                      "system": "http://snomed.info/sct",
                      "code": "31676001",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    }
                  ]
                },
                "subject": {
                  "reference": "Patient/HighRiskPregnantPatient"
                },
                "asNeededBoolean": true
              }
            }
          ]
        }
      ]
    }
  ]
}
Patient that is a Sexually Active MSM. Test Bundle
{
    "hookInstance": "test",
    "fhirServer": "http://localhost:8080/cqf-ruler-r4/fhir",
    "hook": "patient-view",
    "context": {
        "userId": "Practitioner/example",
        "patientId": "Patient/MSMPatient"
    },
    "prefetch": {
        "item1": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Patient",
                "id": "MSMPatient",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-patient"
                    ]
                },
                "extension": [{
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexualorientation",
                        "extension": [{
                            "url": "Sexual Orientation",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE51",
                                        "display": "Bisexual"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "42035005",
                                        "display": "Bisexual"
                                    }
                                ]
                            }
                        }]
                    },
                    {
                        "url": "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/genderidentity",
                        "extension": [{
                            "url": "Gender Identity",
                            "valueCodeableConcept": {
                                "coding": [{
                                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                                        "code": "NACHC.A0.DE59",
                                        "display": "Male-to-Female (MTF)/Transgender Female/Trans Woman"
                                    },
                                    {
                                        "system": "http://snomed.info/sct",
                                        "code": "407376001",
                                        "display": "Male-to-Female (MTF)/Transgender Female/Trans Woman"
                                    }
                                ]
                            }
                        }]
                    }
                ],
                "identifier": [{
                    "use": "usual",
                    "type": {
                        "coding": [{
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                            "code": "MR"
                        }]
                    },
                    "system": "urn:oid:1.2.36.146.595.217.0.1",
                    "value": "12345",
                    "period": {
                        "start": "2001-05-06"
                    },
                    "assigner": {
                        "display": "Acme Healthcare"
                    }
                }],
                "active": true,
                "name": [{
                    "use": "official",
                    "family": "Kotic",
                    "given": [
                        "Joe"
                    ]
                }],
                "gender": "male",
                "birthDate": "1972-06-09",
                "deceasedBoolean": false,
                "generalPractitioner": [{
                    "reference": "PractitionerRole/hiv-practitionerrole-example"
                }]
            }
        },
        "item2": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Encounter",
                "id": "MSMPatient-encounter-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/patient-encounter"
                    ]
                },
                "status": "in-progress",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "AMB",
                    "display": "ambulatory"
                },
                "type": [{
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.A0.DE2",
                            "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                        },
                        {
                            "system": "http://www.ama-assn.org/go/cpt",
                            "code": "99202",
                            "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires a medically appropriate history and/or examination and straightforward medical decision making. When using time for code selection, 15-29 minutes of total time is spent on the date of the encounter."
                        }
                    ]
                }],
                "subject": {
                    "reference": "Patient/MSMPatient"
                },
                "period": {
                    "start": "2021-07-31T10:00:00-07:00",
                    "end": "2021-07-31T11:20:00-07:00"
                }
            }
        },
        "item3": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Observation",
                "id": "MSMPatient-observation-msm-2",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexual-activity-men"
                    ]
                },
                "status": "preliminary",
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.H1.DE13",
                        "display": "Sexual Activity - Men"
                    }]
                },
                "subject": {
                    "reference": "Patient/MSMPatient"
                },
                "encounter": {
                    "reference": "Encounter/MSMPatient-encounter-1"
                },
                "effectiveDateTime": "2021-07-31T10:30:00-07:00",
                "valueBoolean": true
            }
        },
        "item4": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Observation",
                "id": "MSMPatient-observation-screening-1",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/hiv-test"
                    ]
                },
                "status": "final",
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.A2.DE1",
                        "display": "HIV Test"
                    }]
                },
                "subject": {
                    "reference": "Patient/MSMPatient"
                },
                "effectiveDateTime": "2020-06-08T10:20:00-07:00",
                "valueCodeableConcept": {
                    "coding": [{
                            "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                            "code": "NACHC.A2.DE200",
                            "display": "HIV 1 RNA [Presence] in Serum or Plasma by NAA with probe detection"
                        },
                        {
                            "system": "http://loinc.org",
                            "code": "25835-0",
                            "display": "HIV 1 RNA [Presence] in Serum or Plasma by NAA with probe detection"
                        }
                    ]
                }
            }
        },
        "item5": {
            "response": {
                "status": "200 OK"
            },
            "resource": {
                "resourceType": "Observation",
                "id": "MSMPatient-observation-multiple-3",
                "meta": {
                    "profile": [
                        "http://fhir.org/guides/nachc/hiv-cds/StructureDefinition/sexual-activity-partners-number-of-partners"
                    ]
                },
                "status": "preliminary",
                "code": {
                    "coding": [{
                        "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                        "code": "NACHC.H1.DE18",
                        "display": "Sexual Activity - Partners Number of Partners"
                    }]
                },
                "subject": {
                    "reference": "Patient/MSMPatient"
                },
                "encounter": {
                    "reference": "Encounter/MSMPatient-encounter-1"
                },
                "effectiveDateTime": "2021-07-31T10:30:00-07:00",
                "valueBoolean": true
            }
        }
    }
}
{
  "cards": [
    {
      "summary": "HIV Screening",
      "indicator": "info",
      "detail": "Joe Kotic",
      "source": {
        "label": "Info for those with HIV",
        "url": "https://www.cdc.gov/hiv/guidelines/testing.html"
      }
    },
    {
      "summary": "Annual HIV Screening Recommended due to patient being a sexually active MSM without HIV and has had multiple sex partners.",
      "indicator": "warning",
      "detail": "Among young (aged 18--24 years) men who have sex with men (MSM) surveyed during 2004--2005 in five U.S. cities, 14% were infected with HIV; 79% of these HIV-infected MSM were unaware of their infection.",
      "source": {},
      "selectionBehavior": "any",
      "suggestions": [
        {
          "label": "Recommend HIV Screening Test.",
          "actions": [
            {
              "type": "create",
              "description": "Among young (aged 18--24 years) men who have sex with men (MSM) surveyed during 2004--2005 in five U.S. cities, 14% were infected with HIV; 79% of these HIV-infected MSM were unaware of their infection.",
              "resource": {
                "resourceType": "ServiceRequest",
                "status": "draft",
                "intent": "proposal",
                "code": {
                  "coding": [
                    {
                      "system": "http://fhir.org/guides/nachc/hiv-cds/CodeSystem/hiv-custom",
                      "code": "NACHC.A2.DE218",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    },
                    {
                      "system": "http://snomed.info/sct",
                      "code": "31676001",
                      "display": "Human immunodeficiency virus antigen test (procedure)"
                    }
                  ]
                },
                "subject": {
                  "reference": "Patient/MSMPatient"
                },
                "asNeededBoolean": true
              }
            }
          ]
        }
      ]
    }
  ]
}