{
  "resourceType": "StructureDefinition",
  "id": "profile-DwFamilyMemberHistory",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2024-05-03T21:14:05.6825598+00:00"
  },
  "url": "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwFamilyMemberHistory",
  "version": "2.0.0",
  "name": "DwFamilyMemberHistory",
  "status": "draft",
  "date": "2026-05-29",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "FamilyMemberHistory",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "FamilyMemberHistory.identifier",
        "path": "FamilyMemberHistory.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "FamilyMemberHistory.status",
        "path": "FamilyMemberHistory.status",
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.patient",
        "path": "FamilyMemberHistory.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.date",
        "path": "FamilyMemberHistory.date",
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.relationship",
        "path": "FamilyMemberHistory.relationship",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/familymemberrelationshipcode"
        }
      },
      {
        "id": "FamilyMemberHistory.relationship.coding",
        "path": "FamilyMemberHistory.relationship.coding",
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.relationship.text",
        "path": "FamilyMemberHistory.relationship.text",
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.deceased[x]",
        "path": "FamilyMemberHistory.deceased[x]",
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.note",
        "path": "FamilyMemberHistory.note",
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.condition",
        "path": "FamilyMemberHistory.condition",
        "mustSupport": true
      },
      {
        "id": "FamilyMemberHistory.condition.code",
        "path": "FamilyMemberHistory.condition.code",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://www.telus.com/health/fhir/dwemrextract/ValueSet/combined-condition-codes"
        }
      },
      {
        "id": "FamilyMemberHistory.condition.code.coding",
        "path": "FamilyMemberHistory.condition.code.coding",
        "code": [
          {
            "system": "http://hl7.org/fhir/sid/icd9"
          },
          {
            "system": "http://snomed.info/sct"
          },
          {
            "system": "http://hl7.org/fhir/sid/icd-9-cm"
          }
        ]
      },
      {
        "id": "FamilyMemberHistory.condition.outcome",
        "path": "FamilyMemberHistory.condition.outcome",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."
      },
      {
        "id": "FamilyMemberHistory.condition.onset[x]",
        "path": "FamilyMemberHistory.condition.onset[x]",
        "mustSupport": true
      }
    ]
  }
}