{
  "resourceType" : "Encounter",
  "id" : "encounter-ptf-example",
  "meta" : {
    "source" : "http://va.gov/fhir/sid/sta3n/512",
    "profile" : ["http://va.gov/fhir/StructureDefinition/EncounterPTFEncounter"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter encounter-ptf-example</b></p><a name=\"encounter-ptf-example\"> </a><a name=\"hcencounter-ptf-example\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Information Source: <a href=\"http://va.gov/fhir/sid/sta3n/512\">http://va.gov/fhir/sid/sta3n/512</a></p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-EncounterPTFEncounter.html\">Encounter: PTF Encounter</a></p></div><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-v3-ActCode.html#v3-ActCode-IMP\">ActCode: IMP</a> (inpatient encounter)</p><p><b>subject</b>: <a href=\"http://example.com/Patient/example\">http://example.com/Patient/example</a></p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Individual</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType PPRF}\">P</span></td><td><a href=\"#hcencounter-ptf-example/contained-role-example\">PractitionerRole Internal Medicine Physician</a></td></tr></table><p><b>reasonCode</b>: <span title=\"Codes:{http://hl7.org/fhir/sid/icd-10-cm I50.33}\">Acute on chronic diastolic (congestive) heart failure</span></p><blockquote><p><b>diagnosis</b></p><p><b>condition</b>: ?rref?</p><p><b>use</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0359 1}, {http://va.gov/fhir/CodeSystem/9000010.07-.12 P}\">PRIMARY</span></p></blockquote><blockquote><p><b>diagnosis</b></p><p><b>condition</b>: ?rref?</p><p><b>use</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0359 2}, {http://va.gov/fhir/CodeSystem/9000010.07-.12 S}\">SECONDARY</span></p></blockquote><h3>Locations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Location</b></td></tr><tr><td style=\"display: none\">*</td><td>PP MRI (Identifier: <code>http://va.gov/fhir/sid/sta3n/520/44-.001</code>/11317)</td></tr></table><p><b>serviceProvider</b>: Perry Point VAMC (Identifier: <code>http://va.gov/fhir/sid/vista/4-99</code>/512A5)</p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole #contained-role-example</b></p><a name=\"encounter-ptf-example/contained-role-example\"> </a><a name=\"hcencounter-ptf-example/contained-role-example\"> </a><p><b>practitioner</b>: DOE, JANE A (Identifier: <code>http://va.gov/fhir/sid/512/200</code>/10731)</p><p><b>code</b>: <span title=\"Codes:{http://nucc.org/provider-taxonomy 207R00000X}\">Internal Medicine Physician</span></p></blockquote></div>"
  },
  "contained" : [{
    "resourceType" : "PractitionerRole",
    "id" : "contained-role-example",
    "practitioner" : {
      "identifier" : {
        "system" : "http://va.gov/fhir/sid/512/200",
        "value" : "10731"
      },
      "display" : "DOE, JANE A"
    },
    "code" : [{
      "coding" : [{
        "system" : "http://nucc.org/provider-taxonomy",
        "code" : "207R00000X",
        "display" : "Internal Medicine Physician"
      }],
      "text" : "Internal Medicine Physician"
    }]
  }],
  "status" : "finished",
  "class" : {
    "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
    "code" : "IMP",
    "display" : "inpatient encounter"
  },
  "subject" : {
    "reference" : "http://example.com/Patient/example"
  },
  "participant" : [{
    "type" : [{
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
        "code" : "PPRF",
        "display" : "primary performer"
      }],
      "text" : "P"
    }],
    "individual" : {
      "reference" : "#contained-role-example"
    }
  }],
  "reasonCode" : [{
    "coding" : [{
      "system" : "http://hl7.org/fhir/sid/icd-10-cm",
      "code" : "I50.33",
      "display" : "Acute on chronic diastolic (congestive) heart failure"
    }],
    "text" : "Acute on chronic diastolic (congestive) heart failure"
  }],
  "diagnosis" : [{
    "condition" : {
      "extension" : [{
        "extension" : [{
          "url" : "concept",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://hl7.org/fhir/sid/icd-10-cm",
              "code" : "I50.33",
              "display" : "Acute on chronic diastolic (congestive) heart failure"
            }],
            "text" : "Acute on chronic diastolic (congestive) heart failure"
          }
        }],
        "url" : "http://va.gov/fhir/5.0/StructureDefinition/extension-Encounter.diagnosis.condition"
      }]
    },
    "use" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v2-0359",
        "code" : "1",
        "display" : "The primary diagnosis"
      },
      {
        "system" : "http://va.gov/fhir/CodeSystem/9000010.07-.12",
        "code" : "P",
        "display" : "PRIMARY"
      }],
      "text" : "PRIMARY"
    }
  },
  {
    "condition" : {
      "extension" : [{
        "extension" : [{
          "url" : "concept",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://hl7.org/fhir/sid/icd-10-cm",
              "code" : "J90",
              "display" : "Pleural effusion, not elsewhere classified"
            }],
            "text" : "Pleural effusion, not elsewhere classified"
          }
        }],
        "url" : "http://va.gov/fhir/5.0/StructureDefinition/extension-Encounter.diagnosis.condition"
      }]
    },
    "use" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v2-0359",
        "code" : "2",
        "display" : "For secondary diagnosis"
      },
      {
        "system" : "http://va.gov/fhir/CodeSystem/9000010.07-.12",
        "code" : "S",
        "display" : "SECONDARY"
      }],
      "text" : "SECONDARY"
    }
  }],
  "location" : [{
    "location" : {
      "identifier" : {
        "system" : "http://va.gov/fhir/sid/sta3n/520/44-.001",
        "value" : "11317"
      },
      "display" : "PP MRI"
    }
  }],
  "serviceProvider" : {
    "identifier" : {
      "system" : "http://va.gov/fhir/sid/vista/4-99",
      "value" : "512A5"
    },
    "display" : "Perry Point VAMC"
  }
}