{
  "resourceType": "StructureDefinition",
  "display": "occurredFollowing",
  "constrainedType": "Extension",
  "base": "http://hl7.org/fhir/StructureDefinition/Extension",
  "id": "spark310",
  "meta": {
    "versionId": "spark310",
    "lastUpdated": "2015-10-02T12:22:08.413+00:00"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing",
  "name": "Precedent for this Condition",
  "status": "draft",
  "date": "2015-02-21",
  "publisher": "Health Level Seven, Inc. - FHIR WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "HL7"
        }
      ]
    }
  ],
  "description": "Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.",
  "fhirVersion": "1.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    }
  ],
  "kind": "datatype",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Condition"
  ],
  "snapshot": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Precedent for this Condition",
        "definition": "Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".typeCode"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Extension",
        "short": "Precedent for this Condition",
        "definition": "Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".typeCode"
          }
        ]
      },
      {
        "name": "code",
        "path": "Extension.extension",
        "short": "Relationship target by means of a predefined code",
        "definition": "Code that identifies the target of this relationship. The code takes the place of a detailed instance target.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".target[classCode=OBS, moodCode=EVN].code"
          }
        ]
      },
      {
        "name": "extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "code"
      },
      {
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "example",
          "description": "Codes that describe activities or observations that occurred prior to the condition.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/condition-predecessor"
          }
        }
      },
      {
        "name": "detail",
        "path": "Extension.extension",
        "short": "Relationship target resource",
        "definition": "Target of the relationship.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".target[classCode=OBS, moodCode=EVN]"
          }
        ]
      },
      {
        "name": "extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "detail"
      },
      {
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Procedure"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Immunization"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
          }
        ]
      },
      {
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing"
      },
      {
        "path": "Extension.value[x]",
        "min": 0,
        "max": "0"
      }
    ]
  }
}