{
  "resourceType": "StructureDefinition",
  "display": "relatedCondition",
  "constrainedType": "Extension",
  "base": "http://hl7.org/fhir/StructureDefinition/Extension",
  "id": "spark338",
  "meta": {
    "versionId": "spark338",
    "lastUpdated": "2015-10-02T12:23:57.349+00:00"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition",
  "name": "Other associated conditions",
  "status": "draft",
  "date": "2015-02-21",
  "publisher": "Health Level Seven, Inc. - FHIR WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "HL7"
        }
      ]
    }
  ],
  "description": "The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.",
  "fhirVersion": "1.0.1",
  "kind": "datatype",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Encounter"
  ],
  "snapshot": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Other associated conditions",
        "definition": "The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Extension",
        "short": "Other associated conditions",
        "definition": "The conditions considered and cared for within this encounter. This includes items such as reason for visit, admission diagnosis, discharge diagnosis, chief complaint. Do not use reason or indication in the Action class to specify encounter-related diagnoses.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "name": "condition",
        "path": "Extension.extension",
        "short": "A condition related to this encounter",
        "definition": "The reference to conditions related to this encounter, aside from the primary condition.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "name": "extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "condition"
      },
      {
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ]
      },
      {
        "name": "role",
        "path": "Extension.extension",
        "short": "The role of the condition",
        "definition": "The role of the condition within this encounter, e.g. chief complaint, admission diagnosis, discharge diagnosis, comorbidity.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "name": "extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "role"
      },
      {
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/encounter-relatedCondition"
      },
      {
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ]
      }
    ]
  }
}