FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagejohnmoehrke.ORcoordination.example
Resource TypeStructureDefinition
IdStructureDefinition-Case.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/JohnMoehrke/ORcoordination/StructureDefinition-Case.html
URLhttp://johnmoehrke.github.io/ORcoordination/StructureDefinition/Case
Version0.1.0
Statusdraft
Date2026-03-27T16:45:53+00:00
NameCase
TitleCase Logical Model
Realmuv
DescriptionA conceptual model representing a case or episode of care. Captures the clinical and administrative details of a case without prescribing a specific workflow or FHIR resource.
Typehttp://johnmoehrke.github.io/ORcoordination/StructureDefinition/Case
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition Case

NameFlagsCard.TypeDescription & Constraintsdoco
.. Case 0..*BaseCase Logical Model
... caseId 1..1IdentifierUnique identifier for the case
... externalIds 0..*BackboneElementExternal identifiers from connected systems
.... ehrAppointmentId 0..1IdentifierAppointment identifier from the EHR
.... ehrProcedureId 0..1IdentifierProcedure/order identifier from the EHR
... patientId 1..1IdentifierIdentifier for the patient
... surgeonId 0..*IdentifierIdentifier for the primary surgeon
... facilityId 0..1IdentifierIdentifier for the facility
... scheduledTime 0..1dateTimeScheduled date/time for the case
... status 1..1BackboneElementCase readiness status details
.... readinessStatus 1..1codeReadiness state: NOT_READY | AT_RISK | READY | VERIFIED
.... readinessScore 0..1decimalNumeric readiness score
... vendorAssignment 0..*BackboneElementAssigned vendor and representative for the case
.... vendorId 0..1IdentifierIdentifier for the assigned vendor
.... repId 0..1IdentifierIdentifier for the assigned representative
.... confirmed 0..1booleanWhether assignment has been confirmed
.... confirmationTimestamp 0..1dateTimeWhen assignment confirmation occurred

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "Case",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://johnmoehrke.github.io/ORcoordination/StructureDefinition/Case",
  "version": "0.1.0",
  "name": "Case",
  "title": "Case Logical Model",
  "status": "draft",
  "date": "2026-03-27T16:45:53+00:00",
  "publisher": "John Moehrke (himself)",
  "contact": [
    {
      "name": "John Moehrke (himself)",
      "telecom": [
        {
          "system": "url",
          "value": "http://MoehrkeResearch.com"
        },
        {
          "system": "email",
          "value": "JohnMoehrke@gmail.com"
        }
      ]
    }
  ],
  "description": "A conceptual model representing a case or episode of care. Captures the clinical and administrative details of a case without prescribing a specific workflow or FHIR resource.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "http://johnmoehrke.github.io/ORcoordination/StructureDefinition/Case",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "Case",
        "path": "Case",
        "short": "Case Logical Model",
        "definition": "A conceptual model representing a case or episode of care. Captures the clinical and administrative details of a case without prescribing a specific workflow or FHIR resource.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "Case.caseId",
        "path": "Case.caseId",
        "short": "Unique identifier for the case",
        "definition": "Unique identifier for the case",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Case.caseId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.externalIds",
        "path": "Case.externalIds",
        "short": "External identifiers from connected systems",
        "definition": "External identifiers from connected systems",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Case.externalIds",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "Case.externalIds.id",
        "path": "Case.externalIds.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Case.externalIds.extension",
        "path": "Case.externalIds.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Case.externalIds.modifierExtension",
        "path": "Case.externalIds.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Case.externalIds.ehrAppointmentId",
        "path": "Case.externalIds.ehrAppointmentId",
        "short": "Appointment identifier from the EHR",
        "definition": "Appointment identifier from the EHR",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.externalIds.ehrAppointmentId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.externalIds.ehrProcedureId",
        "path": "Case.externalIds.ehrProcedureId",
        "short": "Procedure/order identifier from the EHR",
        "definition": "Procedure/order identifier from the EHR",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.externalIds.ehrProcedureId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.patientId",
        "path": "Case.patientId",
        "short": "Identifier for the patient",
        "definition": "Identifier for the patient",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Case.patientId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.surgeonId",
        "path": "Case.surgeonId",
        "short": "Identifier for the primary surgeon",
        "definition": "Identifier for the primary surgeon",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Case.surgeonId",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.facilityId",
        "path": "Case.facilityId",
        "short": "Identifier for the facility",
        "definition": "Identifier for the facility",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.facilityId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.scheduledTime",
        "path": "Case.scheduledTime",
        "short": "Scheduled date/time for the case",
        "definition": "Scheduled date/time for the case",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.scheduledTime",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Case.status",
        "path": "Case.status",
        "short": "Case readiness status details",
        "definition": "Case readiness status details",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Case.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "Case.status.id",
        "path": "Case.status.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Case.status.extension",
        "path": "Case.status.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Case.status.modifierExtension",
        "path": "Case.status.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Case.status.readinessStatus",
        "path": "Case.status.readinessStatus",
        "short": "Readiness state: NOT_READY | AT_RISK | READY | VERIFIED",
        "definition": "Readiness state: NOT_READY | AT_RISK | READY | VERIFIED",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Case.status.readinessStatus",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "Case.status.readinessScore",
        "path": "Case.status.readinessScore",
        "short": "Numeric readiness score",
        "definition": "Numeric readiness score",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.status.readinessScore",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment",
        "path": "Case.vendorAssignment",
        "short": "Assigned vendor and representative for the case",
        "definition": "Assigned vendor and representative for the case",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Case.vendorAssignment",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.id",
        "path": "Case.vendorAssignment.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.extension",
        "path": "Case.vendorAssignment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.modifierExtension",
        "path": "Case.vendorAssignment.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.vendorId",
        "path": "Case.vendorAssignment.vendorId",
        "short": "Identifier for the assigned vendor",
        "definition": "Identifier for the assigned vendor",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.vendorAssignment.vendorId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.repId",
        "path": "Case.vendorAssignment.repId",
        "short": "Identifier for the assigned representative",
        "definition": "Identifier for the assigned representative",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.vendorAssignment.repId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.confirmed",
        "path": "Case.vendorAssignment.confirmed",
        "short": "Whether assignment has been confirmed",
        "definition": "Whether assignment has been confirmed",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.vendorAssignment.confirmed",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.confirmationTimestamp",
        "path": "Case.vendorAssignment.confirmationTimestamp",
        "short": "When assignment confirmation occurred",
        "definition": "When assignment confirmation occurred",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Case.vendorAssignment.confirmationTimestamp",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Case",
        "path": "Case",
        "short": "Case Logical Model",
        "definition": "A conceptual model representing a case or episode of care. Captures the clinical and administrative details of a case without prescribing a specific workflow or FHIR resource."
      },
      {
        "id": "Case.caseId",
        "path": "Case.caseId",
        "short": "Unique identifier for the case",
        "definition": "Unique identifier for the case",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.externalIds",
        "path": "Case.externalIds",
        "short": "External identifiers from connected systems",
        "definition": "External identifiers from connected systems",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Case.externalIds.ehrAppointmentId",
        "path": "Case.externalIds.ehrAppointmentId",
        "short": "Appointment identifier from the EHR",
        "definition": "Appointment identifier from the EHR",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.externalIds.ehrProcedureId",
        "path": "Case.externalIds.ehrProcedureId",
        "short": "Procedure/order identifier from the EHR",
        "definition": "Procedure/order identifier from the EHR",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.patientId",
        "path": "Case.patientId",
        "short": "Identifier for the patient",
        "definition": "Identifier for the patient",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.surgeonId",
        "path": "Case.surgeonId",
        "short": "Identifier for the primary surgeon",
        "definition": "Identifier for the primary surgeon",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.facilityId",
        "path": "Case.facilityId",
        "short": "Identifier for the facility",
        "definition": "Identifier for the facility",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.scheduledTime",
        "path": "Case.scheduledTime",
        "short": "Scheduled date/time for the case",
        "definition": "Scheduled date/time for the case",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Case.status",
        "path": "Case.status",
        "short": "Case readiness status details",
        "definition": "Case readiness status details",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Case.status.readinessStatus",
        "path": "Case.status.readinessStatus",
        "short": "Readiness state: NOT_READY | AT_RISK | READY | VERIFIED",
        "definition": "Readiness state: NOT_READY | AT_RISK | READY | VERIFIED",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "Case.status.readinessScore",
        "path": "Case.status.readinessScore",
        "short": "Numeric readiness score",
        "definition": "Numeric readiness score",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment",
        "path": "Case.vendorAssignment",
        "short": "Assigned vendor and representative for the case",
        "definition": "Assigned vendor and representative for the case",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.vendorId",
        "path": "Case.vendorAssignment.vendorId",
        "short": "Identifier for the assigned vendor",
        "definition": "Identifier for the assigned vendor",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.repId",
        "path": "Case.vendorAssignment.repId",
        "short": "Identifier for the assigned representative",
        "definition": "Identifier for the assigned representative",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.confirmed",
        "path": "Case.vendorAssignment.confirmed",
        "short": "Whether assignment has been confirmed",
        "definition": "Whether assignment has been confirmed",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Case.vendorAssignment.confirmationTimestamp",
        "path": "Case.vendorAssignment.confirmationTimestamp",
        "short": "When assignment confirmation occurred",
        "definition": "When assignment confirmation occurred",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      }
    ]
  }
}