{
  "resourceType": "StructureDefinition",
  "id": "b2c2b722-b5d3-4e12-bc78-48ab21804f08",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-08-25T21:10:30.8358395+00:00"
  },
  "url": "http://fhir.healthbc.org/StructureDefinition/ca-bc-careconnect-condition",
  "version": "1.0",
  "name": "ca-bc-careconnect-condition",
  "status": "active",
  "date": "2021-10-20T20:19:20.4282549+00:00",
  "fhirVersion": "3.0.2",
  "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.id",
        "path": "Condition.id",
        "min": 1
      },
      {
        "id": "Condition.meta",
        "path": "Condition.meta",
        "max": "0"
      },
      {
        "id": "Condition.implicitRules",
        "path": "Condition.implicitRules",
        "max": "0"
      },
      {
        "id": "Condition.language",
        "path": "Condition.language",
        "max": "0"
      },
      {
        "id": "Condition.text",
        "path": "Condition.text",
        "max": "0"
      },
      {
        "id": "Condition.extension",
        "path": "Condition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Condition.extension:reportedByCode",
        "path": "Condition.extension",
        "sliceName": "reportedByCode",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir.healthbc.org/StructureDefinition/ca-bc-careconnect-reported-by-code-extension"
          }
        ]
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "max": "0"
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "max": "0"
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "max": "0"
      },
      {
        "id": "Condition.category.id",
        "path": "Condition.category.id",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.id",
        "path": "Condition.category.coding.id",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.version",
        "path": "Condition.category.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.code",
        "path": "Condition.category.coding.code",
        "fixedCode": "MedicationProfile"
      },
      {
        "id": "Condition.category.coding.display",
        "path": "Condition.category.coding.display",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.userSelected",
        "path": "Condition.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.category.text",
        "path": "Condition.category.text",
        "max": "0"
      },
      {
        "id": "Condition.severity.id",
        "path": "Condition.severity.id",
        "max": "0"
      },
      {
        "id": "Condition.severity.coding",
        "path": "Condition.severity.coding",
        "max": "0"
      },
      {
        "id": "Condition.code.id",
        "path": "Condition.code.id",
        "max": "0"
      },
      {
        "id": "Condition.code.coding.id",
        "path": "Condition.code.coding.id",
        "max": "0"
      },
      {
        "id": "Condition.code.coding.version",
        "path": "Condition.code.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.code.coding.userSelected",
        "path": "Condition.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "max": "0"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Condition.subject.id",
        "path": "Condition.subject.id",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier",
        "path": "Condition.subject.identifier",
        "max": "0"
      },
      {
        "id": "Condition.subject.display",
        "path": "Condition.subject.display",
        "max": "0"
      },
      {
        "id": "Condition.context",
        "path": "Condition.context",
        "max": "0"
      },
      {
        "id": "Condition.onset[x]:onsetPeriod",
        "path": "Condition.onsetPeriod",
        "sliceName": "onsetPeriod",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Condition.onset[x]:onsetPeriod.id",
        "path": "Condition.onsetPeriod.id",
        "max": "0"
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "max": "0"
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "max": "0"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      },
      {
        "id": "Condition.note.id",
        "path": "Condition.note.id",
        "max": "0"
      },
      {
        "id": "Condition.note.author[x]:authorReference",
        "path": "Condition.note.authorReference",
        "sliceName": "authorReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Condition.note.author[x]:authorReference.id",
        "path": "Condition.note.authorReference.id",
        "max": "0"
      },
      {
        "id": "Condition.note.author[x]:authorReference.identifier.id",
        "path": "Condition.note.authorReference.identifier.id",
        "max": "0"
      },
      {
        "id": "Condition.note.author[x]:authorReference.identifier.use",
        "path": "Condition.note.authorReference.identifier.use",
        "max": "0"
      },
      {
        "id": "Condition.note.author[x]:authorReference.identifier.type",
        "path": "Condition.note.authorReference.identifier.type",
        "max": "0"
      },
      {
        "id": "Condition.note.author[x]:authorReference.identifier.period",
        "path": "Condition.note.authorReference.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.note.author[x]:authorReference.identifier.assigner",
        "path": "Condition.note.authorReference.identifier.assigner",
        "max": "0"
      }
    ]
  }
}