{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.clevermed.com/StructureDefinition/Encounter-BNet-Preg-KeyEvents",
  "name": "Encounter-BNet-Preg-KeyEvents",
  "status": "active",
  "date": "2025-03-28T17:06:55.2872223Z",
  "publisher": "Clevermed Ltd.",
  "contact": [
    {
      "name": "Clevermed BadgerNet Spine FHIR Team",
      "telecom": [
        {
          "system": "email",
          "value": "support@clevermed.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "",
  "copyright": "(c) Clevermed Ltd.  Usage by permission and for BadgerNet Spine Platform integration only.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "short": "Fixed code for the class of the encounter",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "short": "Fixed code for the status of the encounter",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "short": "Reference back to root mother/pregnant person resource. The root patient resource should have an ID of $“Patient/{LogicalID}”",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "short": "Broad categorization of the service that is to be provided",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceType.coding.system",
        "path": "Encounter.serviceType.coding.system",
        "fixedUri": "https://fhir.clevermed.com/codesystem"
      },
      {
        "id": "Encounter.serviceType.coding.code",
        "path": "Encounter.serviceType.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Types of admitted locations",
          "valueSet": "https://simplifier.net/badgernet/ValueSet-BNet-Preg-KeyEventAdmittedType"
        }
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "short": "Refers to the time during which the patient was admitted",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.period.end",
        "path": "Encounter.period.end",
        "short": "Refers to the time during which the patient was discharged",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.reason.coding",
        "path": "Encounter.reason.coding",
        "short": "Reason for this admission encounter",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.reason.coding.coding.system",
        "path": "Encounter.reason.coding.coding.system",
        "fixedUri": "https://fhir.clevermed.com/codesystem"
      },
      {
        "id": "Encounter.reason.coding.coding.code",
        "path": "Encounter.reason.coding.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Main reasons for key events",
          "valueSet": "https://simplifier.net/badgernet/ValueSet-BNet-Preg-KeyEventMainReason"
        }
      },
      {
        "id": "Encounter.reason.coding.text",
        "path": "Encounter.reason.coding.text",
        "short": "String for 'other' value",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "short": "The organization (facility) responsible for this admission",
        "definition": "When sent, the active care location for the pregnancy record will automatically switch to the provided care location in this element, and an admission date time is sent.\n      <br>When a discharge date time is sent, the care location will be automatically changed back to the preceding active care location.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}