{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-29T11:55:58.71+00:00"
  },
  "url": "https://simplifier.net/genomicsfhirprofiles/genomics-condition-1",
  "name": "Genomics-Condition-1",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.info/sct",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.identifier.value",
        "path": "Condition.identifier.value",
        "min": 1
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionCategory"
            }
          ],
          "strength": "extensible"
        }
      },
      {
        "id": "Condition.category.coding.code",
        "path": "Condition.category.coding.code",
        "min": 1
      },
      {
        "id": "Condition.severity.coding.code",
        "path": "Condition.severity.coding.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.bodySite.coding.code",
        "path": "Condition.bodySite.coding.code",
        "min": 1
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          }
        ]
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Condition.onset[x]:onsetAge",
        "path": "Condition.onsetAge",
        "sliceName": "onsetAge",
        "min": 1,
        "type": [
          {
            "code": "Age"
          }
        ],
        "fixedAge": {
          "unit": "years",
          "system": "https://unitsofmeasure.org",
          "code": "a"
        }
      },
      {
        "id": "Condition.onset[x]:onsetAge.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Condition.onsetAge.unit",
        "fixedString": "years"
      },
      {
        "id": "Condition.onset[x]:onsetAge.system",
        "path": "Condition.onsetAge.system",
        "fixedUri": "https://unitsofmeasure.org"
      },
      {
        "id": "Condition.onset[x]:onsetAge.code",
        "path": "Condition.onsetAge.code",
        "fixedCode": "a"
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Age"
          },
          {
            "code": "Period"
          },
          {
            "code": "Range"
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
          }
        ]
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
          }
        ]
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "*"
      },
      {
        "id": "Condition.stage.summary.coding.code",
        "path": "Condition.stage.summary.coding.code",
        "min": 1
      },
      {
        "id": "Condition.stage.type.coding.code",
        "path": "Condition.stage.type.coding.code",
        "min": 1
      }
    ]
  }
}