description: หน่วยบริการสุขภาพ package_name: silth.fhir.th.mophpc1 derivation: constraint name: MophPcOrganizationProvider type: Organization elements: identifier: mustSupport: true index: 0 slicing: rules: open discriminator: - {path: type, type: pattern} min: null slices: hcode: match: type: coding: - {code: hcode, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} schema: short: รหัสสถานพยาบาล 5 หลัก หรือ 9 หลัก index: 1 elements: type: binding: {strength: extensible, valueSet: 'https://terms.sil-th.org/core/ValueSet/vs-th-identifier-type'} pattern: type: CodeableConcept value: coding: - {code: hcode, system: 'https://terms.sil-th.org/core/CodeSystem/cs-th-identifier-type'} index: 2 system: pattern: {type: Uri, value: 'https://terms.sil-th.org/id/th-moph-hcode'} index: 3 value: constraint: hcode-length: {human: รหัสสถานบริการ (HCODE) ควรเป็นรหัส 5 หลัก หรือ 9 หลัก, source: 'https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider', severity: warning, expression: 'value.matches(''^([0-9]{5})$'') or value.matches(''^([0-9]{9})$'')'} index: 4 required: [value, type, system] name: {short: ชื่อสถานพยาบาล, mustSupport: true, index: 5} partOf: type: Reference mustSupport: true refers: ['https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider'] index: 6 package_version: 0.1.1 class: profile kind: resource url: https://fhir-ig.sil-th.org/th/mophpc1/StructureDefinition/mophpc-organization-provider base: http://hl7.org/fhir/StructureDefinition/Organization version: 0.1.1