| Package | hl7.v2plus | 
| Resource Type | StructureDefinition | 
| Id | OSP | 
| FHIR Version | R5 | 
| Source | http://somewhere.org/fhir/uv/v2plus/https://build.fhir.org/ig/HL7/v2ig/StructureDefinition-OSP.html | 
| URL | http://hl7.org/v2/StructureDefinition/OSP | 
| Version | 0.0.0 | 
| Status | active | 
| Date | 2025-08-11T19:32:53+00:00 | 
| Name | OSP | 
| Title | HL7 v2 OSP Data Type | 
| Authority | hl7 | 
| Description | *Note:* Replaces the CM data type used in section 6.5.11.8 UB2-8, as of v 2.5. Use case: The patient was admitted for minor surgery (1/6/03) and discharged the following day (1/7/03). Complications ensured and the patient was readmitted the following day (1/8/03). When the claim for 1/8/03 is filed, the prior stay dates (1/6/03-1/7/03) must be reported (per the Health Plan) using Occurrence Span Code and Dates 71 - Prior Stay Date. Example: |71&Prior Stay Date&NUBC^20030106^20030107| | 
| Type | http://hl7.org/v2/StructureDefinition/OSP | 
| Kind | logical | 
No resources found
| StructureDefinition | |
| CNE | HL7 v2 CNE Data Type | 
| DT | HL7 v2 DT Data Type | 
| complex-data-type | HL7 v2 Complex Data Type | 
| ValueSet | |
| v2-0351 | hl7VS-occurrenceSpan | 
Note: links and images are rebased to the (stated) source
Generated Narrative: StructureDefinition OSP
Profile: HL7 v2 Complex Data Type Profile
| Name | Flags | Card. | Type | Description & Constraints | 
|---|---|---|---|---|
![]()  | 0..* | V2ComplexDataType | occurrence span code and date | |
![]() ![]()  | 1..1 | CNE | Occurrence Span Code Binding: hl7VS-occurrenceSpan (required)  | |
![]() ![]()  | 0..1 | date | Occurrence Span Start Date | |
![]() ![]()  | 0..1 | date | Occurrence Span Stop Date | |
{
  "resourceType": "StructureDefinition",
  "id": "OSP",
  "meta": {
    "profile": [
      "http://hl7.org/v2/StructureDefinition/complex-data-type-profile"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "informative",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://somewhere.org/fhir/uv/v2plus/ImplementationGuide/hl7.other.uv.v2plus"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/v2/StructureDefinition/OSP",
  "version": "0.0.0",
  "name": "OSP",
  "title": "HL7 v2 OSP Data Type",
  "status": "active",
  "date": "2025-08-11T19:32:53+00:00",
  "publisher": "HL7 International",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/Special/committees/v2mgmt"
        }
      ]
    }
  ],
  "description": "*Note:* Replaces the CM data type used in section 6.5.11.8 UB2-8, as of v 2.5.\n\nUse case: The patient was admitted for minor surgery (1/6/03) and discharged the following day (1/7/03). Complications ensured and the patient was readmitted the following day (1/8/03). When the claim for 1/8/03 is filed, the prior stay dates (1/6/03-1/7/03) must be reported (per the Health Plan) using Occurrence Span Code and Dates 71 - Prior Stay Date. Example:\n\n|71&Prior Stay Date&NUBC^20030106^20030107|",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://hl7.org/v2/StructureDefinition/OSP",
  "baseDefinition": "http://hl7.org/v2/StructureDefinition/complex-data-type",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "0.0.0"
      }
    ],
    "element": [
      {
        "id": "OSP",
        "path": "OSP",
        "short": "occurrence span code and date",
        "definition": "Definition: A code and the related dates that identify an event that relates to the payment of the claim. For example, Prior Stay Dates which is the from/through dates given by the patient of any hospital stay that ended within 60 days of this hospital or SNF admission.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "OSP.1",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          }
        ],
        "path": "OSP.1",
        "short": "Occurrence Span Code",
        "min": 1,
        "max": "1",
        "base": {
          "path": "OSP.1",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/CNE"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0351"
        }
      },
      {
        "id": "OSP.2",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "C"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 8
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "OSP.2",
        "short": "Occurrence Span Start Date",
        "min": 0,
        "max": "1",
        "base": {
          "path": "OSP.2",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/DT"
          }
        ]
      },
      {
        "id": "OSP.3",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "C"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 8
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "OSP.3",
        "short": "Occurrence Span Stop Date",
        "min": 0,
        "max": "1",
        "base": {
          "path": "OSP.3",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/DT"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "OSP",
        "path": "OSP",
        "short": "occurrence span code and date",
        "definition": "Definition: A code and the related dates that identify an event that relates to the payment of the claim. For example, Prior Stay Dates which is the from/through dates given by the patient of any hospital stay that ended within 60 days of this hospital or SNF admission.",
        "min": 0,
        "max": "*"
      },
      {
        "id": "OSP.1",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          }
        ],
        "path": "OSP.1",
        "short": "Occurrence Span Code",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/CNE"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0351"
        }
      },
      {
        "id": "OSP.2",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "C"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 8
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "OSP.2",
        "short": "Occurrence Span Start Date",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/DT"
          }
        ]
      },
      {
        "id": "OSP.3",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "C"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 8
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "OSP.3",
        "short": "Occurrence Span Stop Date",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/DT"
          }
        ]
      }
    ]
  }
}