本文整理汇总了PHP中Component::templateId方法的典型用法代码示例。如果您正苦于以下问题:PHP Component::templateId方法的具体用法?PHP Component::templateId怎么用?PHP Component::templateId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Component
的用法示例。
在下文中一共展示了Component::templateId方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.22.2.14'), 'code' => ['@attributes' => ['code' => '10190-7', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Mental Status']], 'title' => 'Mental Status', 'text' => self::Narrative($PortionData)]]];
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Cognitive Status Organizer (V2)
if (count($PortionData['CognitiveStatusOrganizer']) > 0) {
foreach ($PortionData['CognitiveStatusOrganizer'] as $CognitiveStatusOrganizer) {
$Section['component']['section']['entry'][] = LevelEntry\cognitiveStatusOrganizer::Insert($CognitiveStatusOrganizer, $CompleteData);
}
}
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Cognitive Status Observation (V2)
if (count($PortionData['CognitiveStatusObservation']) > 0) {
foreach ($PortionData['CognitiveStatusObservation'] as $CognitiveStatusObservation) {
$Section['component']['section']['entry'][] = LevelEntry\cognitiveStatusObservation::Insert($CognitiveStatusObservation, $CompleteData);
}
}
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Caregiver Characteristics
if (count($PortionData['CaregiverCharacteristics']) > 0) {
foreach ($PortionData['CaregiverCharacteristics'] as $CaregiverCharacteristics) {
$Section['component']['section']['entry'][] = LevelEntry\caregiverCharacteristics::Insert($CaregiverCharacteristics, $CompleteData);
}
}
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Assessment Scale Observation
if (count($PortionData['AssessmentScaleObservation']) > 0) {
foreach ($PortionData['AssessmentScaleObservation'] as $AssessmentScaleObservation) {
$Section['component']['section']['entry'][] = LevelEntry\assessmentScaleObservation::Insert($AssessmentScaleObservation, $CompleteData);
}
}
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Non-Medicinal Supply Activity (V2)
if (count($PortionData['NonMedicinalSupplyActivity']) > 0) {
foreach ($PortionData['NonMedicinalSupplyActivity'] as $NonMedicinalSupplyActivity) {
$Section['component']['section']['entry'][] = LevelEntry\nonMedicinalSupplyActivity::Insert($NonMedicinalSupplyActivity, $CompleteData);
}
}
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Cognitive Abilities Observation (NEW)
if (count($PortionData['CognitiveAbilitiesObservation']) > 0) {
foreach ($PortionData['CognitiveAbilitiesObservation'] as $CognitiveAbilitiesObservation) {
$Section['component']['section']['entry'][] = LevelEntry\cognitiveAbilitiesObservation::Insert($CognitiveAbilitiesObservation, $CompleteData);
}
}
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Mental Status Observation (NEW)
if (count($PortionData['MentalStatusObservation']) > 0) {
foreach ($PortionData['MentalStatusObservation'] as $MentalStatusObservation) {
$Section['component']['section']['entry'][] = LevelEntry\mentalStatusObservation::Insert($MentalStatusObservation, $CompleteData);
}
}
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例2: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.18.2.9'), 'code' => ['@attributes' => ['code' => '59770-8', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Procedure Estimated Blood Loss']], 'title' => 'Procedure Estimated Blood Loss', 'text' => self::Narrative($PortionData)]]];
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例3: Insert
/**
* @param $PortionData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('1.3.6.1.4.1.19376.1.5.3.1.3.4.2'), 'code' => ['@attributes' => ['code' => '10164-2', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'HISTORY OF PRESENT ILLNESS']], 'title' => 'History Of Present Illness', 'text' => self::Narrative($PortionData)]]];
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例4: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => \Component::templateId('1.3.6.1.4.1.19376.1.5.3.1.1.13.2.1'), 'code' => ['@attributes' => ['code' => '10154-3', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'CHIEF COMPLAINT']], 'title' => 'Chief Complaint', 'text' => self::Narrative($PortionData)]]];
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例5: Insert
/**
* @param $PortionData
* @return array|Exception
*/
public static function Insert($PortionData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.22.2.31'), 'code' => ['@attributes' => ['code' => '59773-2', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Procedure Specimens Taken']], 'title' => 'Procedure Specimens Taken', 'text' => self::Narrative($PortionData)]]];
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例6: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.22.2.35'), 'code' => ['@attributes' => ['code' => '10218-6', 'displayName' => 'POSTOPERATIVE DIAGNOSIS', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC']], 'title' => $PortionData['title'], 'text' => self::Narrative($PortionData['Narrated'])]]];
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例7: Insert
/**
* @param $PortionData
* @return array|Exception
*/
public static function Insert($PortionData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.21.2.1'), 'code' => ['@attributes' => ['code' => '61149-1', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Objective Data']], 'title' => 'Objective Data', 'text' => self::Narrative($PortionData['Objective'])]]];
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例8: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.22.2.63'), 'code' => ['@attributes' => ['code' => '8709-8', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Physical findings of Skin']], 'title' => 'Physical findings of Skin', 'text' => self::Narrative($PortionData['PhysicalFindingsOfSkin'])]]];
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Wound Class Observation
if (count($PortionData['WoundsClassObservation']) > 0) {
foreach ($PortionData['WoundsClassObservation'] as $WoundsClassObservation) {
$Section['component']['section']['entry'][] = LevelEntry\woundClassObservation::Insert($WoundsClassObservation, $CompleteData);
}
}
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例9: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.2.5.2'), 'code' => ['@attributes' => ['code' => '61144-2', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Diet and Nutrition']], 'title' => 'Diet and Nutrition', 'text' => self::Narrative($PortionData)]]];
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Nutritional Status Observation (NEW)
if (count($PortionData['NutritionalStatusObservation']) > 0) {
foreach ($PortionData['NutritionalStatusObservation'] as $NutritionalStatusObservation) {
$Section['component']['section']['entry'][] = LevelEntry\nutritionalStatusObservation::Insert($NutritionalStatusObservation, $CompleteData);
}
}
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例10: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.22.2.28'), 'code' => ['@attributes' => ['code' => '59776-5', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Procedure Finding']], 'title' => 'Procedure Finding', 'text' => self::Narrative($PortionData)]]];
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Problem Observation (V2)
if (count($PortionData['ProblemObservation']) > 0) {
foreach ($PortionData['ProblemObservation'] as $ProblemObservation) {
$Section['component']['section']['entry'][] = LevelEntry\problemObservation::Insert($ProblemObservation, $CompleteData);
}
}
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例11: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.22.2.38.2'), 'code' => ['@attributes' => ['code' => '29549-3', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC', 'displayName' => 'Medications Administered']], 'title' => 'Medications Administered', 'text' => self::Narrative($PortionData)]]];
// SHOULD contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Medication Activity (V2)
if (count($PortionData['MedicationActivity']) > 0) {
foreach ($PortionData['MedicationActivity'] as $MedicationActivity) {
$Section['component']['section']['entry'][] = LevelEntry\medicationActivity::Insert($MedicationActivity, $CompleteData);
}
}
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例12: Insert
/**
* @param $PortionData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => ['templateId' => Component::templateId('2.16.840.1.113883.10.20.22.2.21'), 'code' => ['@attributes' => ['code' => '42348-3', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC']], 'title' => 'Advance Directives', 'text' => self::Narrative($PortionData)]]];
// SHALL contain at least one [1..*] entry
// SHALL contain exactly one [1..1] Advance Directive Organizer (NEW)
if (count($PortionData['AdvanceDirectives']) > 0) {
foreach ($PortionData['AdvanceDirectives'] as $AdvanceDirective) {
$Section['component']['section']['entry'][] = ['@attributes' => ['typeCode' => 'DRIV'], LevelEntry\advanceDirectiveOrganizer::Insert($AdvanceDirective, $CompleteData)];
}
}
return $Section;
} catch (Exception $Error) {
return $Error;
}
}
示例13: Insert
/**
* @param $PortionData
* @param $CompleteData
* @return array|Exception
*/
public static function Insert($PortionData, $CompleteData)
{
try {
// Validate first
self::Validate($PortionData);
$Section = ['component' => ['section' => Component::templateId('2.16.840.1.113883.10.20.22.2.10.1.2'), 'code' => ['@attributes' => ['code' => '18776-5', 'displayName' => 'Treatment Plan', 'codeSystem' => '2.16.840.1.113883.6.1', 'codeSystemName' => 'LOINC']], 'title' => 'Treatment Plan', 'text' => self::Narrative($PortionData)]];
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Planned Observation (V2)
if (count($PortionData['PlannedObservation']) > 0) {
foreach ($PortionData['PlannedObservation'] as $PlannedObservation) {
$Section['component']['section']['entry'][] = LevelEntry\plannedObservation::Insert($PlannedObservation, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Planned Encounter (V2)
if (count($PortionData['PlannedEncounter']) > 0) {
foreach ($PortionData['PlannedEncounter'] as $PlannedEncounter) {
$Section['component']['section']['entry'][] = LevelEntry\plannedEncounter::Insert($PlannedEncounter, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Planned Act (V2)
if (count($PortionData['PlannedAct']) > 0) {
foreach ($PortionData['PlannedAct'] as $PlannedAct) {
$Section['component']['section']['entry'][] = LevelEntry\plannedAct::Insert($PlannedAct, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Planned Procedure (V2)
if (count($PortionData['PlannedProcedure']) > 0) {
foreach ($PortionData['PlannedProcedure'] as $PlannedProcedure) {
$Section['component']['section']['entry'][] = LevelEntry\plannedProcedure::Insert($PlannedProcedure, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Planned Substance Administration (V2)
if (count($PortionData['PlannedSubstanceAdministration']) > 0) {
foreach ($PortionData['PlannedSubstanceAdministration'] as $PlannedSubstanceAdministration) {
$Section['component']['section']['entry'][] = LevelEntry\plannedSubstanceAdministration::Insert($PlannedSubstanceAdministration, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Planned Supply (V2)
if (count($PortionData['PlannedSupply']) > 0) {
foreach ($PortionData['PlannedSupply'] as $PlannedSupply) {
$Section['component']['section']['entry'][] = LevelEntry\plannedSupply::Insert($PlannedSupply, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Instruction (V2)
if (count($PortionData['Instruction']) > 0) {
foreach ($PortionData['Instruction'] as $Instruction) {
$Section['component']['section']['entry'][] = LevelEntry\instruction::Insert($Instruction, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Handoff Communication (NEW)
if (count($PortionData['HandoffCommunication']) > 0) {
foreach ($PortionData['HandoffCommunication'] as $HandoffCommunication) {
$Section['component']['section']['entry'][] = LevelEntry\handoffCommunication::Insert($HandoffCommunication, $CompleteData);
}
}
// MAY contain zero or more [0..*] entry
// SHALL contain exactly one [1..1] Nutrition Recommendations (NEW)
if (count($PortionData['NutritionRecommendations']) > 0) {
foreach ($PortionData['NutritionRecommendations'] as $NutritionRecommendations) {
$Section['component']['section']['entry'][] = LevelEntry\nutritionRecommendations::Insert($NutritionRecommendations, $CompleteData);
}
}
return $Section;
} catch (Exception $Error) {
return $Error;
}
}