FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/OSP

Packagehl7.v2plus
TypeStructureDefinition
IdOSP
FHIR VersionR5
Sourcehttp://somewhere.org/fhir/uv/v2plus/https://build.fhir.org/ig/HL7/v2ig/StructureDefinition-OSP.html
URLhttp://hl7.org/v2/StructureDefinition/OSP
Version0.0.0
Statusactive
Date2025-07-11T16:45:01+00:00
NameOSP
TitleHL7 v2 OSP Data Type
Authorityhl7
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|
Typehttp://hl7.org/v2/StructureDefinition/OSP
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

StructureDefinition
CNEHL7 v2 CNE Data Type
DTHL7 v2 DT Data Type
complex-data-typeHL7 v2 Complex Data Type
ValueSet
v2-0351hl7VS-occurrenceSpan

Narrative

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

Generated Narrative: StructureDefinition OSP

NameFlagsCard.TypeDescription & Constraintsdoco
.. OSP 0..*V2ComplexDataTypeoccurrence span code and date
... 1 1..1CNEOccurrence Span Code
Binding: hl7VS-occurrenceSpan (required)
... 2 0..1dateOccurrence Span Start Date
... 3 0..1dateOccurrence Span Stop Date

doco Documentation for this format

Source

{
  "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-07-11T16:45:01+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"
          }
        ]
      }
    ]
  }
}